Template:BTD4 track info: Difference between revisions

mNo edit summary
Pymonkibot (talk | contribs)
m Text replacement - "info-sub" to "subtable"
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{|class="info"
<includeonly>{|class="info"
!class="head"|{{{name M|{{{name F|}}}}}}
!class="head"|{{{name iOS|{{{name F|}}}}}}
|-
|-
|<tabs>
|<tabs>
{{#if:{{{image iOS|}}}|<tab name="iOS">
{{#if:{{{image iOS|}}}|<tab name="iOS">
{|class="info-sub main centered-cells"
{|class="subtable main centered-cells"
|{{#ifexist:File:{{{image iOS|???}}}|[[File:{{{image iOS}}}|250px]]|[[File:missing image.png|250px]]}}
|{{#ifexist:File:{{{image iOS|???}}}|[[File:{{{image iOS}}}|250px]]|[[File:missing image.png|250px]]}}
|}
|}
</tab>}}{{#if:{{{image HD|}}}|<tab name="HD">
</tab>}}{{#if:{{{image HD|}}}|<tab name="HD">
{|class="info-sub main centered-cells"
{|class="subtable main centered-cells"
|{{#ifexist:File:{{{image HD|???}}}|[[File:{{{image HD}}}|250px]]|[[File:missing image.png|250px]]}}
|{{#ifexist:File:{{{image HD|???}}}|[[File:{{{image HD}}}|250px]]|[[File:missing image.png|250px]]}}
|}
|}
</tab>}}{{#if:{{{image A|}}}|<tab name="Android">
</tab>}}{{#if:{{{image A|}}}|<tab name="Android">
{|class="info-sub main centered-cells"
{|class="subtable main centered-cells"
|{{#ifexist:File:{{{image A|???}}}|[[File:{{{image A}}}|250px]]|[[File:missing image.png|250px]]}}
|{{#ifexist:File:{{{image A|???}}}|[[File:{{{image A}}}|250px]]|[[File:missing image.png|250px]]}}
|}
|}
</tab>}}{{#if:{{{image F|}}}|<tab name="Flash">
</tab>}}{{#if:{{{image F|}}}|<tab name="Flash">
{|class="info-sub main centered-cells"
{|class="subtable main centered-cells"
|{{#ifexist:File:{{{image F|???}}}|[[File:{{{image F}}}|250px]]|[[File:missing image.png|250px]]}}
|{{#ifexist:File:{{{image F|???}}}|[[File:{{{image F}}}|250px]]|[[File:missing image.png|250px]]}}
|}</tab>}}</tabs>
|}</tab>}}</tabs>
{|class="info-sub"
{|class="subtable"
!Difficulty
!Difficulty
|colspan="2"|{{{difficulty|}}}
|colspan="2"|{{#if:{{{difficulty A|}}}<!--
-->|[[{{{difficulty A|}}}]] (Android)<br>[[{{{difficulty|}}}]] (other versions)<!--
-->|[[{{{difficulty|}}}]]}}
|}
|}
{|class="info-sub" style="text-align:center"
{|class="subtable" style="text-align:center"
!Entrances
!Entrances
!Exits
!Exits
Line 36: Line 38:
{{#invoke:BTD4 track info|main|path labels={{{path labels|}}}|path lengths F={{{path lengths F|}}}|path lengths iOS={{{path lengths iOS|}}}|path lengths HD={{{path lengths HD|}}}|path lengths A={{{path lengths A|}}}}}
{{#invoke:BTD4 track info|main|path labels={{{path labels|}}}|path lengths F={{{path lengths F|}}}|path lengths iOS={{{path lengths iOS|}}}|path lengths HD={{{path lengths HD|}}}|path lengths A={{{path lengths A|}}}}}
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd4_tracks
|}{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btd4_tracks
|id_F={{{id F|}}}
|id_F ={{{id F|}}}
|id_E={{{id E|}}}
|id_E ={{{id E|}}}
|id_iOS={{{id iOS|}}}
|id_iOS={{{id iOS|}}}
|id_A  ={{{id A|}}}
|id_A  ={{{id A|}}}
|id_DSi={{{id DSi|}}}
|id_C  ={{{id C|}}}


|name_F  ={{{name F|}}}
|name_F  ={{{name F|}}}
|name_M   ={{{name M|}}}
|name_iOS ={{{name iOS|}}}
|name_A   ={{{name A|}}}
|image_F  ={{{image F|}}}
|image_F  ={{{image F|}}}
|image_iOS={{{image iOS|}}}
|image_iOS={{{image iOS|}}}
|image_HD ={{{image HD|}}}
|image_HD ={{{image HD|}}}
|image_A  ={{{image A|}}}
|image_A  ={{{image A|}}}
|image_DSi={{{image DSi|}}}
|image_C  ={{{image C|}}}


|introduced_F  ={{{introduced F|}}}
|introduced_F  ={{{introduced F|}}}
Line 55: Line 58:
|introduced_A  ={{{introduced A|}}}
|introduced_A  ={{{introduced A|}}}


|difficulty={{{difficulty|}}}
|difficulty ={{{difficulty|}}}
|entrances ={{{entrances|}}}
|difficulty_A={{{difficulty A|}}}
|exits     ={{{exits|}}}
|entrances   ={{{entrances|}}}
|junctions ={{{junctions|}}}
|exits       ={{{exits|}}}
|water     ={{{water|No}}}
|junctions   ={{{junctions|}}}
|water       ={{{water|No}}}


|path_labels    ={{{path labels|}}}
|path_labels    ={{{path labels|}}}
Line 67: Line 71:
|path_lengths_A  ={{{path lengths A|}}}
|path_lengths_A  ={{{path lengths A|}}}
}}<!--
}}<!--
-->{{#if:{{{id iOS|}}}|[[Category:Tracks in BTD4 (mobile)]]}}<!--
-->{{#if:{{{id C|}}}|[[Category:Tracks in BTD4 (DSi)]]}}<!--
-->{{#if:{{{id F|}}}|[[Category:Tracks in BTD4 (Flash)]]}}<!--
-->{{#if:{{{id F|}}}|[[Category:Tracks in BTD4 (Flash)]]}}<!--
-->{{#if:{{{id E|}}}|[[Category:Tracks in BTD4 Expansion]]}}<!--
-->{{#if:{{{id E|}}}|[[Category:Tracks in BTD4 Expansion]]}}<!--
-->{{#if:{{{id iOS|}}}|[[Category:Tracks in BTD4 (mobile)]]}}<!--
-->[[Category:{{{difficulty|}}} maps]]{{#if:{{{difficulty A|}}}|[[Category:{{{difficulty A|}}} maps]]}}}}{{#seo:
-->{{#if:{{{id DSi|}}}|[[Category:Tracks in BTD4 (DSi)]]}}<!--
-->}}{{#seo:
|image={{#if:{{{image iOS|}}}|{{{image iOS|}}}|{{#if:{{{image F|}}}|{{{image F}}}}}}}
|image={{#if:{{{image iOS|}}}|{{{image iOS|}}}|{{#if:{{{image F|}}}|{{{image F}}}}}}}
|keywords=BTD4 {{{name|}}}
|keywords=BTD4 {{{name iOS|{{{name F|}}}}}}
}}</includeonly><noinclude>{{#cargo_declare:_table=btd4_levels
}}</includeonly><noinclude>{{#cargo_declare:_table=btd4_tracks
|id_F=String
|id_F =String
|id_E=String
|id_E =String
|id_iOS=String
|id_iOS=String
|id_A  =String
|id_A  =String
|id_DSi=String
|id_C  =String


|name_F  =String
|name_F  =String
Line 87: Line 91:
|image_HD =File
|image_HD =File
|image_A  =File
|image_A  =File
|image_DSi=File
|image_C  =File


|introduced_F  =String
|introduced_F  =String
Line 94: Line 98:
|introduced_A  =String
|introduced_A  =String


|difficulty=String
|difficulty =String
|entrances =Integer
|difficulty_A=String
|exits     =Integer
|entrances   =Integer
|junctions =Integer
|exits       =Integer
|water     =Boolean
|junctions   =Integer
|water       =Boolean


|path_labels    =List (,) of String
|path_labels    =List (,) of String