Template:SetSMW/FromField/doc

From Fallen London Wiki (Staging)

This helper template receives the variable {{#var:FromField}} (not a parameter!!!) from an action template (something like {{Action}} or {{Social Actions}}) and sets the Property:From Card/Storylet in Semantic Mediawiki appropriately.

The template is intended for use in other templates only. The else parameter allows to add categories if the variable 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/FromField
|From field formatted={{{From field formatted|}}}
}}
{{SetSMW/FromField
|From field formatted={{{From field formatted|}}}
|else=[[Category:Social Actions with Unknown From page]]
}}

No description.

Template parameters

ParameterDescriptionTypeStatus
From Field formattedFrom Field formatted

"From Field formatted" parameter from other template

Example
{{{From Field formatted|}}} (note the | in the end)
Unknownoptional
Wikitext if variable is emptyelse

Default
[[Category:Actions with Unknown From page]]
Example
[[Category:Social Actions with Unknown From page]]
Unknownoptional