(Created page with "= Usage = <pre>{{ConcatImage|file name|size}}</pre> Takes a file name and produces a <code>CONCAT</code> statement which selects the field in a cargo query but produces an image of <code>size</code>. Size defaults to <code>64x64px</code> This is useful in selecting images directly based on column values: <pre> {{#cargo_query: tables=item |fields={{ConcatImage|name}} }} </pre> Would produce: {{#cargo_query: tables=item |fields={{ConcatImage|name}} }} Underling code:...") |
(No difference)
|
Revision as of 07:34, 14 August 2023
Usage
{{ConcatImage|file name|size}}
Takes a file name and produces a CONCAT
statement which selects the field in a cargo query but produces an image of size
. Size defaults to 64x64px
This is useful in selecting images directly based on column values:
{{#cargo_query: tables=item |fields={{ConcatImage|name}} }}
Would produce:
,
, File:Alien AI Core.png,
,
,
,
,
,
,
,
,
,
, File:Blight AI Core.png,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
, File:Datakey.png,
,
,
, File:ELAIN's AI Core.png,
,
,
,
,
,
,
,
,
,
, File:HIGGS's AI Core.png,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
, File:MultiCube.png,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
, File:Silica sand.png,
,
,
,
,
,
,
,
,
,
Underling code:
CONCAT( '[[File:', {{{1}}}, '.png|{{{2|64x64px}}}|link=', {{{1}}}, ']]')</includeonly>