Template:Condition: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
No edit summary
No edit summary
Line 21: Line 21:
}}
}}
</table><blockquote>{{#if:{{{mapping|}}}|{{{mapping}}}}}</blockquote></includeonly>
</table><blockquote>{{#if:{{{mapping|}}}|{{{mapping}}}}}</blockquote></includeonly>
<noinclude>'''<nowiki>{{Condition}}</nowiki>'''s are cases of a <nowiki>{{ConditionalMapping}}</nowiki>. They define the template property conditions and their result on the template mapping.
=== Usage ===
<pre>
{{Condition
| templateProperty =
| operator        =
| value            =
| mapping          =
}}
</pre>
<pre>
{{Condition
| otherwise
| mapping  =
}}
</pre>
=== Meanings ===
* '''templateProperty''':
* '''operator''':
* '''value''':
* '''mapping''':
* '''otherwise''':
=== Example ===
<pre>
{{Condition
| templateProperty = 1
| operator        = equals
| value            = River
| mapping          =
  {{TemplateMapping
  | mapToClass = River
  }}
}}
</pre>
<pre>
{{Condition
| otherwise
| mapping          =
  {{TemplateMapping
  | mapToClass = Island
  }}
}}
</pre>
</noinclude>

Revision as of 11:21, 8 March 2010

{{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
  }}
}}