ATLAS Wiki
m
m
 
(10 intermediate revisions by the same user not shown)
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 = G2NG/QueryTemplate
 
| where = generic = "{{{1|}}}"
 
| where = generic = "{{{1|}}}"
 
| fields = nongeneric
 
| fields = nongeneric
  +
| named args = yes
}}</includeonly>
 
<noinclude>
+
}}</includeonly><noinclude>
 
{{Doc}}
 
{{Doc}}
 
[[Category:Cargo query templates]]
 
[[Category:Cargo query templates]]

Latest revision as of 14:11, 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}} Anthracite,Graphite,Lignite,Nitre,Peat,Sulfur
{{G2NG|delimiter=&#124;|Coal}} Anthracite|Graphite|Lignite|Nitre|Peat|Sulfur
{{ItemList|listtype=none| {{G2NG|Coal}} }}

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