Template:Generic cargo list: Difference between revisions

mNo edit summary
mNo edit summary
 
(4 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>{{#cargo_query:tables={{{tables|{{{table|}}}}}}
|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>",
|fields=CONCAT("<div class='flex-left-icon-wrapper'>[[File:", {{{image field|image}}}, "|{{{image size|50px}}}|link=", {{{link field|_pageName}}}, "|", {{{name field|name}}}, "]]<div>",
{{#if:{{{no description|}}}<!--
{{#if:{{{no description|}}}<!--
-->|CONCAT("'''[[", {{{link field|_pageName}}}, "|", {{{name field|name}}}, "]]'''</div></div>")) = {{{col 1 name|Item}}}<!--
-->|CONCAT(IF({{{link field|_pageName}}} = "{{FULLPAGENAME}}",
-->|CONCAT("'''[[", {{{link field|_pageName}}}, "|", {{{name field|name}}}, "]]'''<br>", COALESCE({{{description field|description}}}, ""), "</div></div>")) = {{{col 1 name|Item}}}}}<!--
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 17: 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 25: Line 31:
|join on ={{{join on|}}}
|join on ={{{join on|}}}
|limit  ={{{limit|}}}
|limit  ={{{limit|}}}
|default ={{{default|No results.}}}
|format=table
|format=table
}}</div></includeonly><noinclude>{{/doc}}</noinclude><templatestyles src="Generic cargo list/style.css"/>
|intro=<div class="{{{class|}}} {{#if:{{{center extra cols|}}}|gcl-center-extra-cols}} {{#if:{{{responsive|}}}|gcl-responsive-cargo-list}}">
|outro=</div>
}}</includeonly><noinclude>{{/doc}}</noinclude><templatestyles src="Generic cargo list/style.css"/>