Difference between revisions of "Template:G2NG"

From ATLAS Wiki
Jump to: navigation, search
m
m
Line 4: Line 4:
 
| where = generic = "{{{1|}}}"
 
| where = generic = "{{{1|}}}"
 
| fields = nongeneric
 
| fields = nongeneric
  +
| named args = yes
  +
| delimiter = "\n"
 
}}</includeonly>
 
}}</includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 12:47, 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}} }}

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