Template:Condition

From DBpedia Mappings
Revision as of 11:21, 8 March 2010 by Admin (Talk | contribs)

Jump to: navigation, 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
  }}
}}