Template:SetSMW/ID/doc

From Fallen London Wiki (Staging)

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.

Template parameters

ParameterDescriptionTypeStatus
IDID

ID parameter from other template

Example
{{{ID|}}} (note the | in the end)
Unknownrequired
Wikitext if ID is emptyelse

usually a subcategory of [[Category:Unknown ID]]

Default
[[Category:Actions with Unknown ID]]
Example
[[Category:Items with Unknown ID]]
Unknownsuggested