Difference between revisions of "Template:Vehicle"

From EntropiaPlanets Wiki - Entropia Universe Guides Wiki Info
m (Created page with "<noinclude> 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 a...")
 
m
 
(19 intermediate revisions by the same user not shown)
Line 4: Line 4:


====Info====
====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]].<br />The design for the vehicle 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 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]].<br />The design for the vehicle facts table has not been done yet, feel free to contribute ;)<br />
<br />
<br />
====Usage====
====Usage====
To use it on a vehicle page please copy the following code and fill in data after the equals signs:
To use it on a vehicle page please copy and paste the following code and fill in data to the right of the equals signs:
<pre><section begin=teleporter />
<pre><section begin=stats />
{{Teleporter2
{{Vehicle
|Teleporter_Name= for example City of Dreams
|Vehicle_Name=                       
|Continent= for example Amethera
|Type=
|Area= for example City of Dreams Area
|Seats=
|Estate= -
|Attachment_slots=
|Longitude= for example 136229
|Mountable_Weapons=
|Latitude= for example 84842
|Max_TT_Value=
|Height= for example 237
|Condition_Limit=
|Auctioneer= a single number like 1
|Weight=
|Storage_Facility= ?
|Item_Points=
|Ad_Terminal= ?
|Fuel_Consumption_Active=
|Manufacturing_Terminal= ?
|Fuel_Consumption_Passive=
|Repair_Terminal= ?
|Wheel_Grip=
|Society_Terminal= ?
|Engine_Power=
|Trade_Terminal= ?
|Max_Speed=
|Vehicle_Commissioning_Terminal= ?
|Spawned_Weight=
|Revival_Point= ?
|Max_Structural_Integrity=
|PVP_Ring= ?
|Protection_Penetration=
|Automated_Gun_Turret= ?
|Protection_Impact=
|Global_Adscreen= ?
|Protection_Burn=
|Broadcaster= ?
|Protection_Cold=
|Version_Update= ?
|Protection_Cut=
|Remarks= very brief, just a few words please
|Protection_Stab=
|Protection_Shrapnel=
|Protection_Acid=
|Protection_Electric=
|Durability=
|Capacity_(items)=
|Max_weight=
|Version_Update=
}}
}}
<section end=teleporter />
<section end=stats />
</pre>
</pre>
<br />
<br />
Line 40: Line 48:
{{#switch: {{NAMESPACE}}
{{#switch: {{NAMESPACE}}


<!--THE FOLLOWING PART WILL BE DISPLAYED ON A TELEPORTER PAGE-->
<!--THE FOLLOWING PART WILL BE DISPLAYED ON AN ITEM PAGE-->
 
| Item ={{{!}}class="wikitable" border=1                       
{{!}}-
! style="text-align:left"{{!}} Vehicle
{{!}}style="text-align:left" align=left {{!}} [[Item:{{{Vehicle_Name}}}|{{{Vehicle_Name|{{PAGENAME}}}}}]]
 
{{!}}-
! style="text-align:left"{{!}} Type
{{!}}style="text-align:left" {{!}} {{{Type|?}}}
 
{{!}}-
! style="text-align:left"{{!}} Seats
{{!}}style="text-align:left" {{!}} {{{Seats|?}}}
 
{{!}}-
! style="text-align:left"{{!}} Attachment slots
{{!}}style="text-align:left" {{!}} {{{Attachment_slots|?}}}
 
{{!}}-
! style="text-align:left"{{!}} Mountable Weapons
{{!}}style="text-align:left" {{!}} {{{Mountable_Weapons|?}}}


| Item ={{{!}}class="wikitable" border=1
{{!}}-
{{!}}-
! style="text-align:left"{{!}} Teleporter Name
! style="text-align:left"{{!}} Max TT Value
{{!}}style="text-align:left" align=left {{!}} [[Teleporter:{{{Teleporter_Name}}}|{{{Teleporter_Name|{{PAGENAME}}}}}]]
{{!}}style="text-align:left" {{!}} {{{Max_TT_Value|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Continent
! style="text-align:left"{{!}} Markup
{{!}}style="text-align:left" {{!}} {{{Continent|?}}}
{{!}}style="text-align:left" {{!}} ? %


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Area
! style="text-align:left"{{!}} Condition Limit
{{!}}style="text-align:left" {{!}} {{#ifexist: {{{Area}}} | [[{{{Area}}}]] | {{{Area|?}}} }}
{{!}}style="text-align:left" {{!}} {{{Condition_Limit|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Estate
! style="text-align:left"{{!}} Weight
{{!}}style="text-align:left" {{!}} {{#ifexist: {{{Estate}}} | [[{{{Estate}}}]] | {{{Estate|?}}} }}
{{!}}style="text-align:left;" {{!}} {{{Weight|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Longitude
! style="text-align:left"{{!}} Item Points
{{!}}style="text-align:left" {{!}} {{{Longitude|?}}}
{{!}}style="text-align:left" {{!}} {{{Item_Points|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Latitude
! style="text-align:left"{{!}} Fuel Consumption (Active)
{{!}}style="text-align:left" {{!}} {{{Latitude|?}}}
{{!}}style="text-align:left;" {{!}} {{{Fuel_Consumption_Active|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Height
! style="text-align:left"{{!}} Fuel Consumption (Passive)
{{!}}style="text-align:left" {{!}} {{{Height|?}}}
{{!}}style="text-align:left;" {{!}} {{{Fuel_Consumption_Passive|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Auctioneer
! style="text-align:left"{{!}} Wheel Grip
{{!}}style="text-align:left" {{!}} {{{Auctioneer|?}}}
{{!}}style="text-align:left;" {{!}} {{{Wheel_Grip|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Storage Facility
! style="text-align:left"{{!}} Engine Power
{{!}}style="text-align:left; color:DimGray" {{!}} {{{Storage_Facility|?}}}
{{!}}style="text-align:left;" {{!}} {{{Engine_Power|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Ad Terminal
! style="text-align:left"{{!}} Max Speed
{{!}}style="text-align:left" {{!}} {{{Ad_Terminal|?}}}
{{!}}style="text-align:left;" {{!}} {{{Max_Speed|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Manufacturing Terminal
! style="text-align:left"{{!}} Spawned Weight
{{!}}style="text-align:left; color:DimGray" {{!}} {{{Manufacturing_Terminal|?}}}
{{!}}style="text-align:left;" {{!}} {{{Spawned_Weight|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Repair Terminal
! style="text-align:left"{{!}} Max Structural Integrity
{{!}}style="text-align:left; color:LimeGreen" {{!}} {{{Repair_Terminal|?}}}
{{!}}style="text-align:left;" {{!}} {{{Max_Structural_Integrity|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Society Terminal
! style="text-align:left"{{!}} Protection Penetration
{{!}}style="text-align:left; color:Gold" {{!}} {{{Society_Terminal|?}}}
{{!}}style="text-align:left" {{!}} {{{Protection_Penetration|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Trade Terminal
! style="text-align:left"{{!}} Protection Impact
{{!}}style="text-align:left; color:DodgerBlue" {{!}} {{{Trade_Terminal|?}}}
{{!}}style="text-align:left" {{!}} {{{Protection_Impact|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Vehicle Commissioning Terminal
! style="text-align:left"{{!}} Protection Burn
{{!}}style="text-align:left; color:DarkRed" {{!}} {{{Vehicle_Commissioning_Terminal|?}}}
{{!}}style="text-align:left" {{!}} {{{Protection_Burn|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Revival Point
! style="text-align:left"{{!}} Protection Cold
{{!}}style="text-align:left; color:Red" {{!}} {{{Revival_Point|?}}}
{{!}}style="text-align:left" {{!}} {{{Protection_Cold|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} PVP Ring
! style="text-align:left"{{!}} Protection Cut
{{!}}style="text-align:left" {{!}} {{{PVP_Ring|?}}}
{{!}}style="text-align:left" {{!}} {{{Protection_Cut|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Automated Gun Turret
! style="text-align:left"{{!}} Protection Stab
{{!}}style="text-align:left; color:DimGray" {{!}} {{{Automated_Gun_Turret|?}}}
{{!}}style="text-align:left" {{!}} {{{Protection_Stab|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Global Adscreen
! style="text-align:left"{{!}} Protection Shrapnel
{{!}}style="text-align:left" {{!}} {{{Global_Adscreen|?}}}
{{!}}style="text-align:left" {{!}} {{{Protection_Shrapnel|?}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Broadcaster
! style="text-align:left"{{!}} Protection Acid
{{!}}style="text-align:left" {{!}} {{{Broadcaster|?}}}
{{!}}style="text-align:left" {{!}} {{{Protection_Acid|?}}}
 
{{!}}-
! style="text-align:left"{{!}} Protection Electric
{{!}}style="text-align:left" {{!}} {{{Protection_Electric|?}}}
 
{{!}}-
! style="text-align:left"{{!}} Capacity (items)
{{!}}style="text-align:left" align=left {{!}} {{{Capacity_(items)}}}
 
{{!}}-
! style="text-align:left"{{!}} Max weight
{{!}}style="text-align:left" align=left {{!}} {{{Max_weight}}}


{{!}}-
{{!}}-
! style="text-align:left"{{!}} Version Update
! style="text-align:left"{{!}} Version Update
{{!}}style="text-align:left; color:DimGray" {{!}} {{#ifeq: {{{Version_Update}}} | | ? | [[{{{Version_Update}}}]] }}
{{!}}style="text-align:left" align=left {{!}} {{{Version_Update}}}


{{!}}-
! style="text-align:left"{{!}} Remarks
{{!}}style="text-align:left" align=left {{!}} {{{Remarks}}}
{{!}}}
{{!}}}


Line 135: Line 172:


  | #default ={{!}}- class="sortbottom" valign="center"
  | #default ={{!}}- class="sortbottom" valign="center"
{{!}}style="text-align:left" align=left {{!}} [[Teleporter:{{{Teleporter_Name}}}|{{{Teleporter_Name}}}]]
{{!}}style="text-align:left" align=left {{!}} [[Item:{{{Vehicle_Name}}}|{{{Vehicle_Name}}}]]
{{!}}style="text-align:center" {{!}} {{{Continent|?}}}
{{!}}style="text-align:center" {{!}} {{{Type|?}}}
{{!}}style="text-align:center" {{!}} {{#ifexist: {{{Area}}} | [[{{{Area}}}]] | {{{Area|?}}} }}
{{!}}style="text-align:center" {{!}} {{{Seats|?}}}
{{!}}style="text-align:center" {{!}} {{#ifexist: {{{Estate}}} | [[{{{Estate}}}]] | {{{Estate|?}}} }}
{{!}}style="text-align:center" {{!}} {{{Attachment_slots|?}}}
{{!}}style="text-align:center" {{!}} {{{Longitude|?}}}
{{!}}style="text-align:center" {{!}} {{{Mountable_Weapons|?}}}
{{!}}style="text-align:center" {{!}} {{{Latitude|?}}}
{{!}}style="text-align:center" {{!}} {{{Max_TT_Value|?}}}
{{!}}style="text-align:center" {{!}} {{{Height|?}}}
{{!}}style="text-align:center" {{!}} ? %
{{!}}style="text-align:center" {{!}} {{{Auctioneer|?}}}
{{!}}style="text-align:center" {{!}} {{{Condition_Limit|?}}}
{{!}}style="text-align:center; color:DimGray" {{!}} {{{Storage_Facility|?}}}
{{!}}style="text-align:center" {{!}} {{{Weight|?}}}
{{!}}style="text-align:center" {{!}} {{{Ad_Terminal|?}}}
{{!}}style="text-align:center" {{!}} {{{Item_Points|?}}}
{{!}}style="text-align:center; color:DimGray" {{!}} {{{Manufacturing_Terminal|?}}}
{{!}}style="text-align:center" {{!}} {{{Fuel_Consumption_Active|?}}}
{{!}}style="text-align:center; color:LimeGreen" {{!}} {{{Repair_Terminal|?}}}
{{!}}style="text-align:center" {{!}} {{{Fuel_Consumption_Passive|?}}}
{{!}}style="text-align:center; color:Goldenrod" {{!}} {{{Society_Terminal|?}}}
{{!}}style="text-align:center" {{!}} {{{Wheel_Grip|?}}}
{{!}}style="text-align:center; color:DodgerBlue" {{!}} {{{Trade_Terminal|?}}}
{{!}}style="text-align:center" {{!}} {{{Engine_Power|?}}}
{{!}}style="text-align:center; color:DarkRed" {{!}} {{{Vehicle_Commissioning_Terminal|?}}}
{{!}}style="text-align:center" {{!}} {{{Max_Speed|?}}}
{{!}}style="text-align:center; color:Red" {{!}} {{{Revival_Point|?}}}
{{!}}style="text-align:center" {{!}} {{{Spawned_Weight|?}}}
{{!}}style="text-align:center" {{!}} {{{PVP_Ring|?}}}
{{!}}style="text-align:center" {{!}} {{{Max_Structural_Integrity|?}}}
{{!}}style="text-align:center; color:DimGray" {{!}} {{{Automated_Gun_Turret|?}}}
{{!}}style="text-align:center" {{!}} {{{Protection_Penetration|?}}}
{{!}}style="text-align:center" {{!}} {{{Global_Adscreen|?}}}
{{!}}style="text-align:center" {{!}} {{{Protection_Impact|?}}}
{{!}}style="text-align:center" {{!}} {{{Broadcaster|?}}}
{{!}}style="text-align:center" {{!}} {{{Protection_Burn|?}}}
{{!}}style="text-align:center; color:DimGray" {{!}} {{#ifeq: {{{Version_Update}}} | | {{{Version_Update}}} | [[{{{Version_Update}}}]] }}
{{!}}style="text-align:center" {{!}} {{{Protection_Cold|?}}}
{{!}}style="text-align:left" align=left {{!}} {{{Remarks}}}
{{!}}style="text-align:center" {{!}} {{{Protection_Cut|?}}}
{{!}}style="text-align:center" {{!}} {{{Protection_Stab|?}}}
{{!}}style="text-align:center" {{!}} {{{Protection_Shrapnel|?}}}
{{!}}style="text-align:center" {{!}} {{{Protection_Acid|?}}}
{{!}}style="text-align:center" {{!}} {{{Protection_Electric|?}}}
{{!}}style="text-align:center" {{!}} {{{Durability|?}}}
{{!}}style="text-align:center" {{!}} {{{Capacity_(items)|?}}}
{{!}}style="text-align:center" {{!}} {{{Max_weight|?}}}
{{!}}style="text-align:center" {{!}} {{{Version_Update|?}}}
}}
}}

Latest revision as of 19:04, 2 December 2010


HEAVILY UNDER CONSTRUCTION! - Don't care about it!

Info[edit]

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 been done yet, feel free to contribute ;)

Usage[edit]

To use it on a vehicle page please copy and paste the following code and fill in data to the right of the equals signs:

<section begin=stats />
{{Vehicle
|Vehicle_Name=                         
|Type=
|Seats=
|Attachment_slots=
|Mountable_Weapons=
|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=
|Capacity_(items)=
|Max_weight=
|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" | ? |style="text-align:center" | ?