Difference between revisions of "Template:Armor2"

From EntropiaPlanets Wiki - Entropia Universe Guides Wiki Info
Line 1: Line 1:
<noinclude>
<noinclude>
====Info====
====Info====
This template is a little   tricky. It contains a function checking whether the data is displayed on a Creature page (namespace 'TCreature'). Depending on the result it   either generates a Creature facts table or a table row to be used   together with [[Template:Creature_Table_Header]].<br />The design for the TP facts table has not be done yet, feel free to contribute ;)<br />
 
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]].<br />The design for the TP facts table has not be done yet, feel free to contribute ;)<br />
<br />
<br />
====Usage====
====Usage====
To use it on a creature page please copy the following code and fill in data after the equals signs:
To use it on a armor page please copy the following code and fill in data after the equals signs:
<pre><section begin=creature />
<pre><section begin=armor />
{{Creature2
{{armor2
|Name= -
|Name= -
|Class= -
|Class= -
Line 27: Line 29:
|Remarks= -
|Remarks= -
}}
}}
<section end=creature />
<section end=armor />
</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 CREATURE PAGE-->
| armor ={{{!}}class="wikitable" border=1
 
| Creature ={{{!}}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 {{!}} [[Creature:{{{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" {{!}} [[Creature:{{{Name}}}|{{{Name}}}]]
{{!}}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 17:53, 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" | ?