Difference between revisions of "Template:Creature2"
Line 114: | Line 114: | ||
| #default ={{!}}- class="sortbottom" valign="center" | | #default ={{!}}- class="sortbottom" valign="center" | ||
{{!}}style="text-align:left" {{!}} [[Creature:{{{Name}}}|{{{Name}}}]] | {{!}}style="text-align:left" {{!}} [[Creature:{{{Name}}}|{{{Name}}}]] | ||
{{!}}style="text-align:center" {{!}} [[Category:{{{Class|Class}}}]] | {{!}}style="text-align:center" {{!}} [[Category:{{{Class}}}|{{{Class|{{PAGENAME}}}}}]] | ||
{{!}}style="text-align:center" {{!}} {{{Stab|?}}} | {{!}}style="text-align:center" {{!}} {{{Stab|?}}} | ||
{{!}}style="text-align:center" {{!}} {{{Cut|?}}} | {{!}}style="text-align:center" {{!}} {{{Cut|?}}} |
Revision as of 08:55, 27 May 2011
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.
The design for the TP facts table has not be done yet, feel free to contribute ;)
Usage
To use it on a creature page please copy the following code and fill in data after the equals signs:
<section begin=creature /> {{Creature2 |Name= - |Class= - |Stab= - |Cut= - |Impact= - |Penetration= - |Shrapnel= - |Burn= - |Cold= - |Aid= - |Electric= - |Movement= - |Combat= - |Attacks= - |Range= - |Aggression= - |Tamable= - |Sweatable= - |Remarks= - }} <section end=creature />
Template code
|- class="sortbottom" valign="center" |style="text-align:left" | [[Creature:{{{Name}}}|{{{Name}}}]] |style="text-align:center" | [[Category:{{{Class}}}|Creature2]] |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" | ?