Template:Creatures infobox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
BTGamepedia>AlyMar1994
(Created page with "{| class="infobox" style="font-size:85%;width:256px !important;padding:0; background: #151e28; border-radius:7px;" |- ! class="infobox2" colspan="2" style="text-align:center !...")
 
BTGamepedia>AlyMar1994
No edit summary
Line 1: Line 1:
{| class="infobox" style="font-size:85%;width:256px !important;padding:0; background: #151e28; border-radius:7px;"
<includeonly>
|-
<infobox>
! class="infobox2" colspan="2" style="text-align:center !important;background-color:#212c3a; margin:0; font-size:120%;padding:0.25em; border-radius:4px;" | {{{name|{{PAGENAME}}}}}
  <title name="title"><default>{{PAGENAME}}</default></title>
|-
<image source="image" />
| colspan="2" style="padding:0.5em;text-align:center !important;" | [[File:{{{image|Image_Coming_Soon.jpg}}}|{{{imagewidth|180}}}px]]{{#if: {{{image2|}}} |<br />
<data source="type"><label>Type</label></data>
[[File:{{{image2|}}}|{{{imagewidth2|180}}}px]] |}}
  <data source="caption"><label>Caption</label></data>
|-
<data source="damage"><label>Damage</label></data>
! class="infobox2" colspan="2" style{{=}}"text-align:center !important;margin:0;padding:0.25em; font-family: 'Courier New'; border-bottom:1px solid #aaa; " {{!}} Stats
<data source="speed"><label>Speed</label></data>
|-
</infobox>
| style="width:40%;font-size:105%;" | Type
</includeonly><noinclude>
| style="width:60%;" | {{#switch: {{{type}}} |weapon=[[:Category:Weapons|Weapon]]|tool=[[:Category:Tools|Tool]]|gear=[[:Category:Gear|Gear]]|#default=General [[:Category:Items|Item]]}}
This is an infobox template designed specifically for characters and targets Use '''<nowiki>{{InfoboxCharacter}}</nowiki>''' to call it. For easy usage, copy and paste the following into the editing window, and fill in all known information:
|-
<pre>
| style="font-size:105%;" | {{#switch: {{{type}}} |weapon=Ammunition|tool=Fuel|gear=Equipment|#default={{{ammotype|Ammunition}}}}}{{{ammo style guide|}}}
{{Creatures infobox
| {{{ammo}}}{{#switch: {{{type}}} |weapon=<br />
| type    =
{{!}}-
| caption =
{{!}} style="font-size:105%;" {{!}} Ammo Capacity
| damage  =
{{!}} {{{ammocount}}}}}{{#if: {{{cost|}}} |<br />
| speed  =
{{!}}-
{{!}} style="font-size:105%;" {{!}} Cost
{{!}} {{{cost}}} Credits|}}{{#if: {{{ammocost|}}} | <br />
{{!}}-
{{!}} style="font-size:105%;" {{!}} {{#switch: {{{type}}} |weapon=Ammo|tool=Fuel|gear=Equipment|#default={{{type}}}}} Cost
{{!}} {{{ammocost|}}} Credits|}}
|-
{{#if: {{{noreq|}}} | |! class="infobox2" colspan="2" style{{=}}"text-align:center !important;margin:0;padding:0.25em; font-family: 'Courier New'; border-bottom:1px solid #aaa; " {{!}} Skill Requirements{{#if: {{{weapons|}}} | <br />
{{!}}-
{{!}} style="width:55%;font-size:105%;" {{!}} '''[[Skills#Weapons|Weapons]]'''
{{!}} style="width:45%;" {{!}} '''{{{weapons}}}%'''
|}}{{#if: {{{construction|}}} | <br />
{{!}}-
{{!}} style="width:55%;font-size:105%;" {{!}} '''[[Skills#Construction|Construction]]'''
{{!}} style="width:45%;" {{!}} '''{{{construction}}}%'''
|}} {{#if: {{{electrical engineering|}}} | <br />
{{!}}-
{{!}} style="width:55%;font-size:105%;" {{!}} '''[[Skills#Electrical Engineering|Electrical Engineering]]'''
{{!}} style="width:45%;" {{!}} '''{{{electrical engineering}}}%'''
|}}{{#if: {{{handicap|}}} | <br />
{{!}}-
{{!}} style="width:55%;color:rgb(136, 0, 0);font-size:105%;" {{!}} '''Insufficient Skill Handicap'''
{{!}} style="width:45%;vertical-align:middle;" {{!}} '''{{{handicap}}}'''
|}}
}}
}}
|}
</pre>
<includeonly>{{#if: {{{nocat|}}} | |[[Category:{{#switch: {{{type}}} |weapon=Weapons|tool=Tools|gear=Gear|#default=Items}}]]}}</includeonly>
Note that unfilled parameters will not be displayed.
<noinclude>{{clr}}
</noinclude>
{{doc}}</noinclude>

Revision as of 04:28, 12 August 2015

This is an infobox template designed specifically for characters and targets Use {{InfoboxCharacter}} to call it. For easy usage, copy and paste the following into the editing window, and fill in all known information:

{{Creatures infobox
| type    =
| caption =
| damage  =
| speed   =
}}

Note that unfilled parameters will not be displayed.