ATLAS Wiki
(Created page with "<!--<includeonly>-->{{#cargo_query:tables=GenericResources | format = template | template = Sandbox/G2NG/QueryTemplate | where = generic = "{{{1|}}}" | fields = nongeneric }}<...")
 
m
Line 1: Line 1:
<!--<includeonly>-->{{#cargo_query:tables=GenericResources
+
<includeonly>{{#cargo_query:tables=GenericResources
 
| format = template
 
| format = template
 
| template = Sandbox/G2NG/QueryTemplate
 
| template = Sandbox/G2NG/QueryTemplate
 
| where = generic = "{{{1|}}}"
 
| where = generic = "{{{1|}}}"
 
| fields = nongeneric
 
| fields = nongeneric
  +
}}</includeonly>
}}<!--</includeonly><noinclude>{{Doc}}[[Category:Cargo query templates]]</noinclude>-->
 
  +
<noinclude>
  +
{{Doc}}
  +
[[Category:Cargo query templates]]
  +
</noinclude>

Revision as of 12:27, 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}} }}
  • [[File:Template Sandbox/G2NG/QueryTemplate.png|20px]] [[Template:Sandbox/G2NG/QueryTemplate]]

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