Difference between revisions of "Template:Teleporter2"
m (test (template not ready yet)) |
m (test (template not ready yet)) |
||
Line 1: | Line 1: | ||
<noinclude>This template is a little tricky. It contains a function checking | <noinclude> | ||
====Info==== | |||
This template is a little tricky. It contains a function checking whether the data is displayed on a Teleporter page (namespace 'Teleporter'). Depending on the result it either generates a Teleporter facts table or a table row to be used together with [[Template:Teleporter_Table_Header]].<br />The design for the TP facts table has not be done yet, feel free to contribute ;)<br /> | |||
<br /> | <br /> | ||
<br /></noinclude> | ====Usage==== | ||
To use it on a teleporter page please copy the following code and fill in data after the equals signs: | |||
<pre><section begin=teleporter /> | |||
{{Teleporter2 | |||
|Teleporter_Name= City of Dreams | |||
|Continent= - | |||
|Area= City of Dreams Area | |||
|Estate= - | |||
|Longitude= 136229 | |||
|Latitude= 84842 | |||
|Height= 237 | |||
|Auctioneer= 1 | |||
|Storage_Facility= 3 | |||
|Ad_Terminal= 1 | |||
|Manufacturing_Terminal= 1 | |||
|Repair_Terminal= 2 | |||
|Society_Terminal= 2 | |||
|Trade_Terminal= 4 | |||
|Vehicle_Commissioning_Terminal= 1 | |||
|Revival_Point= 1 | |||
|PVP_Ring= 1 | |||
|Automated_Gun_Turret= - | |||
|Global_Adscreen= 3 | |||
|Version_Update= | |||
|Remarks= Rocktropia's busiest place, many terminals inside the Club NEVERDIE buildings | |||
}} | |||
<section end=teleporter /> | |||
</pre> | |||
<br /> | |||
====Template code====</noinclude> | |||
{{#switch: {{NAMESPACE}} | {{#switch: {{NAMESPACE}} | ||
Line 10: | Line 41: | ||
{{!}}- | {{!}}- | ||
! style="text-align:left"{{!}} Teleporter Name | ! style="text-align:left"{{!}} Teleporter Name | ||
{{!}}style="text-align:left" align=left {{!}} [[Teleporter:{{{Teleporter_Name}}}|{{{Teleporter_Name}}}]] | {{!}}style="text-align:left" align=left {{!}} [[Teleporter:{{{Teleporter_Name}}}|{{{Teleporter_Name|{{PAGENAME}}}}}]] | ||
{{!}}- | {{!}}- |
Revision as of 13:19, 30 June 2010
Info
This template is a little tricky. It contains a function checking whether the data is displayed on a Teleporter page (namespace 'Teleporter'). Depending on the result it either generates a Teleporter facts table or a table row to be used together with Template:Teleporter_Table_Header.
The design for the TP facts table has not be done yet, feel free to contribute ;)
Usage
To use it on a teleporter page please copy the following code and fill in data after the equals signs:
<section begin=teleporter /> {{Teleporter2 |Teleporter_Name= City of Dreams |Continent= - |Area= City of Dreams Area |Estate= - |Longitude= 136229 |Latitude= 84842 |Height= 237 |Auctioneer= 1 |Storage_Facility= 3 |Ad_Terminal= 1 |Manufacturing_Terminal= 1 |Repair_Terminal= 2 |Society_Terminal= 2 |Trade_Terminal= 4 |Vehicle_Commissioning_Terminal= 1 |Revival_Point= 1 |PVP_Ring= 1 |Automated_Gun_Turret= - |Global_Adscreen= 3 |Version_Update= |Remarks= Rocktropia's busiest place, many terminals inside the Club NEVERDIE buildings }} <section end=teleporter />
Template code
|- class="sortbottom" valign="center" |style="text-align:left" align=left | [[{{{Teleporter_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; color:DimGray" | ? |style="text-align:center" | ? |style="text-align:center; color:DimGray" | ? |style="text-align:center; color:LimeGreen" | ? |style="text-align:center; color:Gold" | ? |style="text-align:center; color:DodgerBlue" | ? |style="text-align:center; color:DarkRed" | ? |style="text-align:center; color:Red" | ? |style="text-align:center" | ? |style="text-align:center; color:DimGray" | ? |style="text-align:center" | ? |style="text-align:center; color:DimGray" | [[{{{Version_Update}}}]] |style="text-align:left" align=left | {{{Remarks}}}