Template:CalculateMapping: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
No edit summary
No edit summary
 
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>

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