Template:ConditionalMapping: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
No edit summary
No edit summary
Line 6: Line 6:
<blockquote>{{{defaultMappings}}}</blockquote>
<blockquote>{{{defaultMappings}}}</blockquote>
</includeonly>
</includeonly>
<noinclude>'''<nowiki>{{ConditionalMapping}}</nowiki>''' maps templates to ontology classes. In comparison to <nowiki>{{TemplateMapping}}</nowiki> the mapping can be made dependent on template properties and their values.
=== Usage ===
<pre>
{{ConditionalMapping
| cases          =
| defaultMappings =
}}
</pre>
=== Meanings ===
* '''cases''':
* '''defaultMappings''':
=== Example ===
<pre>
{{ConditionalMapping
| cases =
  {{Condition
  ...
  }}
  ...
  {{Condition
  | otherwise
  ...
  }}
| defaultMappings =
  {{PropertyMapping
  ...
  }}
  ...
}}
</pre>
</noinclude>

Revision as of 11:16, 8 March 2010

{{ConditionalMapping}} maps templates to ontology classes. In comparison to {{TemplateMapping}} the mapping can be made dependent on template properties and their values.

Usage

{{ConditionalMapping
| cases           =
| defaultMappings =
}}

Meanings

  • cases:
  • defaultMappings:

Example

{{ConditionalMapping
| cases =
  {{Condition 
  ... 
  }}

  ...

  {{Condition
  | otherwise
  ...
  }}

| defaultMappings =
  {{PropertyMapping
  ... 
  }}
  ...
}}