Difference between revisions of "Template:SetProp/doc"
From Salem Wiki
m (→Syntax: adding parameters) |
m (→Examples: refering) |
||
Line 21: | Line 21: | ||
==Examples== | ==Examples== | ||
− | + | See the example(s) in the documentation of {{t|SetProp/single}}, this template just passes known properties with their values to it. | |
<includeonly>[[Category:Templates|{{PAGENAME}}]]<!-- Any categories for the template itself --> | <includeonly>[[Category:Templates|{{PAGENAME}}]]<!-- Any categories for the template itself --> | ||
[[Category:Templates/©TriMoon™|{{SUBPAGENAME}}]] | [[Category:Templates/©TriMoon™|{{SUBPAGENAME}}]] | ||
</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | </includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Revision as of 04:56, 27 June 2012
Description
- This is a wrapper-template that calls {{SetProp/single}} to automatically set property values.
- It has a fixed-set of properties it supports, and can be expanded when needed in code...
Syntax
- Type the below code somewhere on a page:
{{SetProp |propname=propvalues |propname=propvalues |... }}
- It supports this optional named-parameter:
- sep
- The default separator used in the propvalues to separate single-values from each other.
- It defaults to a comma ','
- sep
- It currently supports these properties:
- IsGameMenu
- IsinGameMenu ⇐ Default separator is a ^ when no over-ride is used in sep, be careful this property can use a comma in its valid value!
- RequiresTech
- RequiresObj
Examples
See the example(s) in the documentation of {{SetProp/single}}, this template just passes known properties with their values to it.