Template:CalculateMapping: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
No edit summary |
AnjaJentzsch (talk | contribs) No edit summary |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><table class="wikitable"> | <includeonly><table class="wikitable"> | ||
<tr><th style="text-align:left" colspan="2">Calculate Mapping <small>([[ | <tr><th style="text-align:left" colspan="2">Calculate Mapping <small>([[Template:CalculateMapping|<span style="cursor:help;">help</span>]])</small> | ||
</th></tr> | </th></tr> | ||
{{#if:{{{operation|}}}|<tr> | {{#if:{{{operation|}}}|<tr> | ||
Line 12: | Line 12: | ||
{{#if:{{{unit1|}}}|<tr> | {{#if:{{{unit1|}}}|<tr> | ||
<td width="200px">template property unit 1</td> | <td width="200px">template property unit 1</td> | ||
<td width="350px">{{{unit1}}}</td> | <td width="350px">[[Datatype:{{{unit1}}}|{{{unit1}}}]]</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{templateProperty2|}}}|<tr> | {{#if:{{{templateProperty2|}}}|<tr> | ||
Line 20: | Line 20: | ||
{{#if:{{{unit2|}}}|<tr> | {{#if:{{{unit2|}}}|<tr> | ||
<td width="200px">template property unit 2</td> | <td width="200px">template property unit 2</td> | ||
<td width="350px">{{{unit2}}}</td> | <td width="350px">[[Datatype:{{{unit2}}}|{{{unit2}}}]]</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{ontologyProperty|}}}|<tr> | {{#if:{{{ontologyProperty|}}}|<tr> | ||
<td> ontology property</td> | <td> ontology property</td> | ||
<td>[[OntologyProperty:{{#replace:{{{ontologyProperty}}}|:| | <td>[[OntologyProperty:{{#replace:{{{ontologyProperty}}}|:|%2F}}|{{{ontologyProperty}}}]]</td> | ||
</tr>}} | </tr>}} | ||
</table></includeonly> | </table></includeonly> | ||
'''{{ | <noinclude>'''<nowiki>{{CalculateMapping}}</nowiki>''' maps two template properties to one ontology property by calculating one value from both template property values using a given operation. | ||
=== Usage === | === Usage === | ||
Line 38: | Line 38: | ||
| templateProperty2 = | | templateProperty2 = | ||
| unit2 = | | unit2 = | ||
| ontologyProperty = | |||
}} | }} | ||
</pre> | </pre> | ||
=== Meanings === | |||
* '''operation''': mathematical operation. Currently supported operation: add. | |||
* '''templateProperty1''' | |||
* '''unit1''' | |||
* '''templateProperty2''' | |||
* '''unit2''' | |||
* '''ontologyProperty''' | |||
=== Example === | |||
<pre> | |||
{{CalculateMapping | |||
| operation = | |||
| templateProperty1 = | |||
| unit1 = | |||
| templateProperty2 = | |||
| unit2 = | |||
| ontologyProperty = | |||
}} | |||
</pre> | |||
</noinclude> |
Latest revision as of 16:36, 12 March 2010
{{CalculateMapping}} maps two template properties to one ontology property by calculating one value from both template property values using a given operation.
Usage
{{CalculateMapping | operation = | templateProperty1 = | unit1 = | templateProperty2 = | unit2 = | ontologyProperty = }}
Meanings
- operation: mathematical operation. Currently supported operation: add.
- templateProperty1
- unit1
- templateProperty2
- unit2
- ontologyProperty
Example
{{CalculateMapping | operation = | templateProperty1 = | unit1 = | templateProperty2 = | unit2 = | ontologyProperty = }}