ATLAS Wiki
m
m
Line 1: Line 1:
<includeonly>{{#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:00, 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:DelimiterTemplate:Sandbox/G2NG/QueryTemplate
{{G2NG|delimiter=&#124;|Coal}} {Template:DelimiterTemplate:Sandbox/G2NG/QueryTemplate
{{ItemList|listtype=none| {{G2NG|Coal}} }}
  • [[File:{{#vardefine delimiter|{Template DelimiterTemplate Sandbox/G2NG/QueryTemplate.png|20px]] [[{{#vardefine:delimiter|{Template:DelimiterTemplate:Sandbox/G2NG/QueryTemplate]]

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