Template:Condition

From DBpedia Mappings
Revision as of 11:21, 8 March 2010 by Admin (talk | contribs)
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
  }}
}}