Template:Condition
From Mediawiki1
Jump to navigationJump to search
{{Condition}}s are cases of a {{ConditionalMapping}}. They define the template property conditions and their result on the template mapping.
Usage
{{Condition | templateProperty = | operator = | value = | mapping = }}
{{Condition | otherwise | mapping = }}
Meanings
- templateProperty:
- operator:
- value:
- mapping:
- otherwise:
Example
{{Condition | templateProperty = 1 | operator = equals | value = River | mapping = {{TemplateMapping | mapToClass = River }} }}
{{Condition | otherwise | mapping = {{TemplateMapping | mapToClass = Island }} }}