Difference between revisions of "Template:Armor2"
Line 37: | Line 37: | ||
</pre> | </pre> | ||
<br /> | <br /> | ||
====Template code====</noinclude> | ====Template code====</noinclude> | ||
{{#switch: {{NAMESPACE}} | {{#switch: {{NAMESPACE}} | ||
<!--THE FOLLOWING PART WILL BE DISPLAYED ON A armor PAGE--> | <!--THE FOLLOWING PART WILL BE DISPLAYED ON A armor PAGE--> | ||
| | |||
| Armor ={{{!}}class="wikitable" border=1 | |||
{{!}}- | {{!}}- | ||
! style="text-align:left; width:150px"{{!}} Name | ! style="text-align:left; width:150px"{{!}} Name | ||
{{!}}style="text-align:left; width:150px" align=left {{!}} [[armor:{{{Name}}}|{{{Name|{{PAGENAME}}}}}]] | {{!}}style="text-align:left; width:150px" align=left {{!}} [[armor:{{{Name}}}|{{{Name|{{PAGENAME}}}}}]] | ||
{{!}}- | {{!}}- | ||
! style="text-align:left; width:150px"{{!}} Picture | ! style="text-align:left; width:150px"{{!}} Picture | ||
{{!}}style="text-align:left; width:150px" align=left {{!}} [[File:Moblist_thumb_{{{Name|none}}}.png|148px]] | {{!}}style="text-align:left; width:150px" align=left {{!}} [[File:Moblist_thumb_{{{Name|none}}}.png|148px]] | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Class | ! style="text-align:left"{{!}} Class | ||
{{!}}style="text-align:left" {{!}} {{{Class|?}}} | {{!}}style="text-align:left" {{!}} {{{Class|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Stab | ! style="text-align:left"{{!}} Stab | ||
{{!}}style="text-align:left" {{!}} {{{Stab|?}}} | {{!}}style="text-align:left" {{!}} {{{Stab|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Cut | ! style="text-align:left"{{!}} Cut | ||
{{!}}style="text-align:left" {{!}} {{{Cut|?}}} | {{!}}style="text-align:left" {{!}} {{{Cut|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Impact | ! style="text-align:left"{{!}} Impact | ||
{{!}}style="text-align:left" {{!}} {{{Impact|?}}} | {{!}}style="text-align:left" {{!}} {{{Impact|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Penetration | ! style="text-align:left"{{!}} Penetration | ||
{{!}}style="text-align:left" {{!}} {{{Penetration|?}}} | {{!}}style="text-align:left" {{!}} {{{Penetration|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Shrapnel | ! style="text-align:left"{{!}} Shrapnel | ||
{{!}}style="text-align:left" {{!}} {{{Shrapnel|?}}} | {{!}}style="text-align:left" {{!}} {{{Shrapnel|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Burn | ! style="text-align:left"{{!}} Burn | ||
{{!}}style="text-align:left" {{!}} {{{Burn|?}}} | {{!}}style="text-align:left" {{!}} {{{Burn|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Cold | ! style="text-align:left"{{!}} Cold | ||
{{!}}style="text-align:left" {{!}} {{{Cold|?}}} | {{!}}style="text-align:left" {{!}} {{{Cold|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Acid | ! style="text-align:left"{{!}} Acid | ||
{{!}}style="text-align:left" {{!}} {{{Acid|?}}} | {{!}}style="text-align:left" {{!}} {{{Acid|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Electric | ! style="text-align:left"{{!}} Electric | ||
{{!}}style="text-align:left" {{!}} {{{Electric|?}}} | {{!}}style="text-align:left" {{!}} {{{Electric|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Movement | ! style="text-align:left"{{!}} Movement | ||
{{!}}style="text-align:left" {{!}} {{{Movement|?}}} | {{!}}style="text-align:left" {{!}} {{{Movement|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Combat | ! style="text-align:left"{{!}} Combat | ||
{{!}}style="text-align:left" {{!}} {{{Combat|?}}} | {{!}}style="text-align:left" {{!}} {{{Combat|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Attacks | ! style="text-align:left"{{!}} Attacks | ||
{{!}}style="text-align:left" {{!}} {{{Attacks|?}}} | {{!}}style="text-align:left" {{!}} {{{Attacks|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Range | ! style="text-align:left"{{!}} Range | ||
{{!}}style="text-align:left" {{!}} {{{Range|?}}} | {{!}}style="text-align:left" {{!}} {{{Range|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Aggression | ! style="text-align:left"{{!}} Aggression | ||
{{!}}style="text-align:left" {{!}} {{{Aggression|?}}} | {{!}}style="text-align:left" {{!}} {{{Aggression|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Tamable | ! style="text-align:left"{{!}} Tamable | ||
{{!}}style="text-align:left" {{!}} {{{Tamable|?}}} | {{!}}style="text-align:left" {{!}} {{{Tamable|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Sweatable | ! style="text-align:left"{{!}} Sweatable | ||
{{!}}style="text-align:left" {{!}} {{{Sweatable|?}}} | {{!}}style="text-align:left" {{!}} {{{Sweatable|?}}} | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Remarks | ! style="text-align:left"{{!}} Remarks | ||
{{!}}style="text-align:left" {{!}} {{{Remarks|?}}} | {{!}}style="text-align:left" {{!}} {{{Remarks|?}}} | ||
{{!}}} | {{!}}} | ||
<!--THE FOLLOWING PART WILL BE DISPLAYED ON ANY OTHER PAGE--> | <!--THE FOLLOWING PART WILL BE DISPLAYED ON ANY OTHER PAGE--> | ||
| #default ={{!}}- class="sortbottom" valign="center" | | #default ={{!}}- class="sortbottom" valign="center" | ||
{{!}}style="text-align:center" {{!}} [[File:Moblist_thumb_{{{Name|none}}}.png|30px]] | {{!}}style="text-align:center" {{!}} [[File:Moblist_thumb_{{{Name|none}}}.png|30px]] | ||
{{!}}style="text-align:left" {{!}} [[ | {{!}}style="text-align:left" {{!}} [[Armor:{{{Name}}}|{{{Name}}}]] | ||
{{!}}style="text-align:center" {{!}} {{{Class|?}}} | {{!}}style="text-align:center" {{!}} {{{Class|?}}} | ||
{{!}}style="text-align:center" {{!}} {{{Stab|?}}} | {{!}}style="text-align:center" {{!}} {{{Stab|?}}} |
Revision as of 18:02, 3 July 2011
Info
This template is a little tricky. It contains a function checking whether the data is displayed on a armor page (namespace 'Tarmor'). Depending on the result it either generates a armor facts table or a table row to be used together with Template:armor_Table_Header.
The design for the TP facts table has not be done yet, feel free to contribute ;)
Usage
To use it on a armor page please copy the following code and fill in data after the equals signs:
<section begin=armor /> {{armor2 |Name= - |Class= - |Stab= - |Cut= - |Impact= - |Penetration= - |Shrapnel= - |Burn= - |Cold= - |Acid= - |Electric= - |Movement= - |Combat= - |Attacks= - |Range= - |Aggression= - |Tamable= - |Sweatable= - |Remarks= - }} <section end=armor />
Template code
|- class="sortbottom" valign="center" |style="text-align:center" | File:Moblist thumb none.png |style="text-align:left" | [[Armor:{{{Name}}}|{{{Name}}}]] |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ? |style="text-align:center" | ?