Difference between revisions of "Template:G2NG"

From ATLAS Wiki
Jump to: navigation, search
m
m
Line 5: Line 5:
 
| fields = nongeneric
 
| fields = nongeneric
 
| named args = yes
 
| named args = yes
}}</includeonly><noinclude>{{Doc}}[[Category:Cargo query templates]]</noinclude>
+
}}</includeonly><noinclude>
  +
{{Doc}}
  +
[[Category:Cargo query templates]]
  +
</noinclude>

Revision as of 13:24, 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).