Template:ConditionalMapping: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
(DisclaimerMapping doesn't take parameters anymore) |
(removed == ConditionalMapping == --- it adds an edit link to the mapping page, but when I click the edit link, I get to this template page. Weird.) |
||
Line 1: | Line 1: | ||
<includeonly>{{DisclaimerMapping}} | <includeonly>{{DisclaimerMapping}} | ||
<h3>Conditions</h3> | <h3>Conditions</h3> | ||
{{{cases}}} | {{{cases}}} |
Revision as of 20:49, 27 April 2012
{{ConditionalMapping}} maps templates to ontology classes. In comparison to a TemplateMapping the mapping can be defined depending on template properties and their values.
Usage
{{ConditionalMapping | cases = | defaultMappings = }}
Meanings
- cases: Cases define conditions on template properties and their values and can change the default mapping, like the ontology class the template is mapped to and the ontology properties the template properties are mapped to. The cases template property should contain a list of Condition templates.
- defaultMappings: The default mapping defines the default template property mappings using PropertyMapping etc.. The default ontology class the template is mapped to has to be defined by an otherwise condition.
Example
{{ConditionalMapping | cases = {{Condition ... }} ... {{Condition | operator = otherwise ... }} | defaultMappings = {{PropertyMapping ... }} ... }}