Difference between revisions of "Template:Vehicle"
m (→Usage) |
m |
||
Line 117: | Line 117: | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} | ! style="text-align:left"{{!}} Max Structural Integrity | ||
{{!}}style="text-align:left;" {{!}} {{{Max_Structural_Integrity|?}}} | {{!}}style="text-align:left;" {{!}} {{{Max_Structural_Integrity|?}}} | ||
Line 123: | Line 123: | ||
! style="text-align:left"{{!}} Protection Penetration | ! style="text-align:left"{{!}} Protection Penetration | ||
{{!}}style="text-align:left" {{!}} {{{Protection_Penetration|?}}} | {{!}}style="text-align:left" {{!}} {{{Protection_Penetration|?}}} | ||
{{!}}- | {{!}}- |
Revision as of 19:40, 29 September 2010
HEAVILY UNDER CONSTRUCTION! - Don't care about it!
Info
This template is a little tricky. It contains a function checking whether the data is displayed on an Item page (namespace 'Item'). Depending on the result it either generates a vehicle facts table or a table row to be used together with Template:Vehicle_Table_Header.
The design for the vehicle facts table has not be done yet, feel free to contribute ;)
Usage
To use it on a vehicle page please copy the following code and fill in data to the right of the equals signs:
<section begin=stats /> {{Vehicle |Vehicle_Name= |Type= |Seats= |Storage_Count= |Storage_Payload= |Combat= |Max_TT_Value= |Condition_Limit= |Weight= |Item_Points= |Fuel_Consumption_Active= |Fuel_Consumption_Passive= |Wheel_Grip= |Engine_Power= |Max_Speed= |Spawned_Weight= |Max_Structural_Integrity= |Protection_Penetration= |Protection_Impact= |Protection_Burn= |Protection_Cold= |Protection_Cut= |Protection_Stab= |Protection_Shrapnel= |Protection_Acid= |Protection_Electric= |Durability= |Version_Update= }} <section end=stats />
Template code
|- class="sortbottom" valign="center" |style="text-align:left" align=left | [[Item:{{{Vehicle_Name}}}|{{{Vehicle_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" | ? |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" | ?