Difference between revisions of "Template:SetProp/single/doc"
From Salem Wiki
< Template:SetProp | single
m (→Description: adding info) |
m (→Syntax: adding info) |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
− | :Type the below code somewhere | + | :Type the below code somewhere oin your code: <code><nowiki>{{SetProp/single|prop=|val=}}</nowiki></code> |
− | < | + | :It accepts these named-parameters: |
+ | :*'''prop''' | ||
+ | :*:Mandatory; The name of the property to set | ||
+ | :*'''val''' | ||
+ | :*:Mandatory; A sequence of values to assign to the property, one-at-a-time. | ||
+ | :*'''sep''' | ||
+ | :*:Optional; The separator used between the values in the sequence of '''val'''. | ||
+ | :*:Defaults to a comma '''',''''. | ||
+ | |||
==Examples== | ==Examples== | ||
# | # |
Revision as of 03:53, 27 June 2012
Description
- This template is used to automate calls to
{{#set:}}
- It uses
{{#arraymap:}}
as a wrapper to split and inject arguments.
Syntax
- Type the below code somewhere oin your code:
{{SetProp/single|prop=|val=}}
- It accepts these named-parameters:
- prop
- Mandatory; The name of the property to set
- val
- Mandatory; A sequence of values to assign to the property, one-at-a-time.
- sep
- Optional; The separator used between the values in the sequence of val.
- Defaults to a comma ','.
- prop