Template:Generic cargo list: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| (5 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 width= | |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}}}, "]]'''</div></div>") = {{{col 1 name|Item}}}|CONCAT("'''[[", {{{link field|_pageName}}}, "|", {{{name field|name}}}, "]]'''<br>", COALESCE({{{description field|description}}}, "" | {{#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|}}} | CONCAT("[[Update history:{{{introduced col game name|}}}/Version ", {{{introduced field|introduced}}}, "|Version ", {{{introduced field|introduced}}}, "]]")), | ||
"Launch")=Introduced}} | "Launch")=Introduced}} | ||