Template:Generic cargo list: Difference between revisions

From Blooncyclopedia, the independent Bloons knowledge base
Jump to navigation Jump to search
m trying to improve how the table looks on narrow viewports
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="{{{class|}}} {{#if:{{{center extra cols|}}}|gcl-center-extra-cols}} {{#if:{{{responsive|}}}|gcl-responsive-cargo-list}}">{{#cargo_query:tables={{{tables|{{{table|}}}}}}
<includeonly><div class="{{{class|}}} {{#if:{{{center extra cols|}}}|gcl-center-extra-cols}} {{#if:{{{responsive|}}}|gcl-responsive-cargo-list}}">{{#cargo_query:tables={{{tables|{{{table|}}}}}}
|fields=CONCAT("<div class='gcl-flex'><div>[[File:", {{{image field|image}}}, "|{{{image size|50x50px}}}|link=", {{{link field|_pageName}}}, "|", {{{name field|name}}}, "]]</div><div>",
|fields=CONCAT("<div class='gcl-flex'><div width='50px'>[[File:", {{{image field|image}}}, "|{{{image size|50x50px}}}|link=", {{{link field|_pageName}}}, "|", {{{name field|name}}}, "]]</div><div>",
{{#if:{{{no description|}}}|CONCAT("'''[[", {{{link field|_pageName}}}, "|", {{{name field|name}}}, "]]'''") = {{{col 2 name|Name}}}|CONCAT("'''[[", {{{link field|_pageName}}}, "|", {{{name field|name}}}, "]]'''<br>", COALESCE({{{description field|description}}}, "")), "</div></div>") = {{{col 1 name|Icon}}}}}<!--
{{#if:{{{no description|}}}<!--
-->|CONCAT(IF({{{link field|_pageName}}} = "{{FULLPAGENAME}}",
CONCAT("'''", {{{name field|name}}}, "'''"),
CONCAT("'''[[", {{{link field|_pageName}}}, "|", {{{name field|name}}}, "]]'''")),
"</div></div>")) = {{{col 1 name|Item}}}<!--
-->|CONCAT(IF({{{link field|_pageName}}} = "{{FULLPAGENAME}}",
CONCAT("'''", {{{name field|name}}}, "'''"),
CONCAT("'''[[", {{{link field|_pageName}}}, "|", {{{name field|name}}}, "]]'''")),
"<br>", COALESCE({{{description field|description}}}, ""), "</div></div>")) = {{{col 1 name|Item}}}}}<!--
-->{{#if:{{{extra col 1|}}}|, {{{extra col 1}}}}}<!--
-->{{#if:{{{extra col 1|}}}|, {{{extra col 1}}}}}<!--
-->{{#if:{{{extra col 2|}}}|, {{{extra col 2}}}}}<!--
-->{{#if:{{{extra col 2|}}}|, {{{extra col 2}}}}}<!--
Line 15: Line 23:


COALESCE(IF({{{introduced field|introduced}}} = "Firstlook test" OR introduced = "Full Playable test", CONCAT("[[{{{introduced col game name|}}} ", {{{introduced field|introduced}}}, "|", {{{introduced field|introduced}}}, "]]"),
COALESCE(IF({{{introduced field|introduced}}} = "Firstlook test" OR introduced = "Full Playable test", CONCAT("[[{{{introduced col game name|}}} ", {{{introduced field|introduced}}}, "|", {{{introduced field|introduced}}}, "]]"),
CONCAT("[[{{{introduced col game name|}}} v", {{{introduced field|introduced}}}, "|Version ", {{{introduced field|introduced}}}, "]]")),
CONCAT("[[Update history:{{{introduced col game name|}}}/Version ", {{{introduced field|introduced}}}, "|Version ", {{{introduced field|introduced}}}, "]]")),
"Launch")=Introduced}}
"Launch")=Introduced}}


Line 24: Line 32:
|limit  ={{{limit|}}}
|limit  ={{{limit|}}}
|format=table
|format=table
}}</div></includeonly><noinclude>{{/doc}}
}}</div></includeonly><noinclude>{{/doc}}</noinclude><templatestyles src="Generic cargo list/style.css"/>
 
{{BCS card list|exclusive=Ezili|exclude others=y}}</noinclude><templatestyles src="Generic cargo list/style.css"/>

Latest revision as of 07:29, 5 June 2026

Template:Generic cargo list/doc