Template:BTDB upgrade info: Difference between revisions

Pymonkibot (talk | contribs)
m Text replacement - "<div class="info">" to "<div class="info subtable-container">"
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
--><tabs><tab name="Multiplatform">
--><tabs><tab name="Multiplatform">
{|class="subtable main centered"
{|class="subtable main centered"
|[[File:{{{image M}}}|200px|Portrait of {{{name M}}}]]
|[[File:{{{image M}}}|100px|Portrait of {{{name M}}}]]
|-
|-
|class="flex-left-icon-wrapper"|[[File:{{{icon M}}}|50px|Icon of {{{name M}}}]]{{{description M}}}
|class="flex-left-icon-wrapper"|[[File:{{{icon M}}}|50px|Icon of {{{name M}}}]]{{{description M}}}
Line 10: Line 10:
{{#if:{{{image F|}}}|<tab name="Flash">
{{#if:{{{image F|}}}|<tab name="Flash">
{{{!}}class="subtable main centered"
{{{!}}class="subtable main centered"
{{!}}[[File:{{{image F}}}|200px|Portrait of {{{name F}}}]]
{{!}}[[File:{{{image F}}}|100px|Portrait of {{{name F}}}]]
{{!}}-
{{!}}-
{{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon F}}}|50px|Icon of {{{name F}}}]]{{{description F}}}
{{!}}class="flex-left-icon-wrapper"{{!}}[[File:{{{icon F}}}|50px|Icon of {{{name F}}}]]{{{description F}}}
Line 25: Line 25:
}}
}}
|}<div class="foot">{{#cargo_query:table=btdb_upgrades
|}<div class="foot">{{#cargo_query:table=btdb_upgrades
|fields=CONCAT(IF(tier<{{{tier|0}}}, "<div style='float:left'>[[", "<div style='float:right'>[["), _pageName, "{{!}}", IF(tier>{{{tier|0}}}, CONCAT(name_M, " →]]"), CONCAT("← ", name_M, "]]")), "</div>") = text
|fields=CONCAT(IF(tier<{{{tier|0}}}, "<div style='float:left'>[[", "<div style='float:right'>[["), _pageName, "{{!}}", IF(tier>={{{tier|0}}}, CONCAT(name_M, " →]]"), CONCAT("← ", name_M, "]]")), "</div>") = text


|where=tower = "{{{tower|???}}}" AND path = {{{path|0}}} AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1) AND NOT unused
|where={{#if:{{{prev|}}}{{{next|}}}|name_M="{{{prev|???}}}" OR name_M="{{{next|???}}}"|tower = "{{{tower|???}}}" AND path = {{{path|0}}} AND (tier = {{{tier|0}}} - 1 OR tier = {{{tier|0}}} + 1)}}
|delimiter=
|delimiter=
}}</div></div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btdb_upgrades
}}</div></div>{{#ifeq:{{NAMESPACENUMBER}}|0|{{#cargo_store:_table=btdb_upgrades