Difference between revisions of "Template:SetProp/doc"

From Salem Wiki
Jump to: navigation, search
m (→‎Syntax: updated with info on Boolean types.)
m (→‎Supported propname's: added new propnames)
Line 21: Line 21:
 
:*[[Property:RequiresTech|RequiresTech]]
 
:*[[Property:RequiresTech|RequiresTech]]
 
:*[[Property:RequiresObj|RequiresObj]]
 
:*[[Property:RequiresObj|RequiresObj]]
 +
:*[[Property:RepairedWith|RepairedWith]]
 
:*[[Property:IsLiftable|IsLiftable]] / [[Property:IsLiftableWhenEmpty|IsLiftableWhenEmpty]]  ('''Boolean''')
 
:*[[Property:IsLiftable|IsLiftable]] / [[Property:IsLiftableWhenEmpty|IsLiftableWhenEmpty]]  ('''Boolean''')
  

Revision as of 05:08, 28 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 ','

Supported propname's

Some properties are fit to assign multiple values to using a sep, but those of type Boolean are obviously not...

It currently supports these properties:

Examples

See the example(s) in the documentation of {{SetProp/single}}, this template just passes known properties with their values to it.