Template:SetSMW/ID
This helper template receives the {{{ID}}}
parameter from a game object template (something like {{Storylet}}, {{Action}}, {{Item}}, {{Quality}}) and sets the ID(s) in Semantic Mediawiki appropriately.
The template is intended for use in other templates only. The else
parameter allows to add categories if the ID is empty.
Note: If you add visible text there, it will appear in the article, so it is suggested to only use "invisible" wikitext like adding categories, variables or properties.
Examples:
{{SetSMW/ID|ID={{{ID|}}} }}
{{SetSMW/ID|ID = {{{ID|}}} | else = [[Category:Items with Unknown ID]]}}
This helper template receives the {{{ID}}} parameter from a game object template (something like {{Storylet}}, {{Action}}, {{Item}}, {{Quality}}) and sets the ID(s) in Semantic Mediawiki appropriately.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | ID | ID parameter from other template
| Unknown | required |
Wikitext if ID is empty | else | usually a subcategory of [[Category:Unknown ID]]
| Unknown | suggested |