Template:SetProp/RequiredBy auto/doc
From Salem Wiki
< Template:SetProp | RequiredBy auto
Revision as of 08:32, 2 July 2012 by ©TriMoon™ (talk | contribs) (→Description: using PropVals/List RequiredBy with 'template=n')
Description
- This helper-template is used, by {{SetProp}}, to automatically create a reverse-relationship, between the Properties RequiresObj, RepairedWith or RequiresTech of pages, with the current page.
- It does this by using the SMW-Query in the helper-template {{PropVals/List RequiredBy|template=n}}.
- If it finds any results, then it sets Property:RequiredBy for the current page using these results as value.
- It uses
{{#arraymap:}}
as a wrapper to inject these values in{{#set:RequiredBy=<value>}}
.
Syntax
- Type the below code somewhere in {{SetProp}} or any-other code:
{{SetProp/RequiredBy auto |page={{{SUBPAGENAME}}} |sep={{{sep|,}}} }}