ATLAS Wiki
m
m
Line 1: Line 1:
<includeonly>{{#vardefine:delimiter|{{{delimiter|}}{{#cargo_query:tables=GenericResources
+
<includeonly>{{#vardefine:delimiter | {{{delimiter|}}} }}{{#cargo_query:tables=GenericResources
 
| format = template
 
| format = template
 
| template = Sandbox/G2NG/QueryTemplate
 
| template = Sandbox/G2NG/QueryTemplate

Revision as of 13:08, 1 August 2020

Template-info.png Documentation

G2NG: Generic to non-generic

Returns a comma-separated string with non-generic variants of a generic resource by querying Special:CargoTables/GenericResources.

Examples

Input Output
{{G2NG|Coal}} Template:Sandbox/G2NG/QueryTemplate
{{G2NG|delimiter=&#124;|Coal}} Template:Sandbox/G2NG/QueryTemplate
{{ItemList|listtype=none| {{G2NG|Coal}} }}
  • [[File:Template Sandbox/G2NG/QueryTemplate.png|20px]] [[Template:Sandbox/G2NG/QueryTemplate]]

Note: ASCII number 124 is | (pipe/vertical bar).