ATLAS Wiki
m
m
Line 2: Line 2:
 
| format = template
 
| format = template
 
| template = Sandbox/G2NG/QueryTemplate
 
| template = Sandbox/G2NG/QueryTemplate
  +
| delimiter = "\n"
 
| where = generic = "{{{1|}}}"
 
| where = generic = "{{{1|}}}"
 
| fields = nongeneric
 
| fields = nongeneric

Revision as of 12:28, 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=||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).