Template:CombineDateMapping: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
No edit summary
No edit summary
Line 8: Line 8:
{{#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 16: Line 16:
{{#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:{{{templateProperty3|}}}|<tr>
{{#if:{{{templateProperty3|}}}|<tr>
Line 24: Line 24:
{{#if:{{{unit3|}}}|<tr>
{{#if:{{{unit3|}}}|<tr>
<td width="200px">template property unit 3</td>
<td width="200px">template property unit 3</td>
<td width="350px">{{{unit3}}}</td>
<td width="350px">[[Datatype:{{{unit3}}}|{{{unit3}}}]]</td>
</tr>}}
</tr>}}
{{#if:{{{ontologyProperty|}}}|<tr>
{{#if:{{{ontologyProperty|}}}|<tr>

Revision as of 17:31, 12 March 2010

{{CombineDateMapping}} maps up to three template properties containing date values to ontology properties. It can combine several values to one date value.

Usage

{{CombineDateMapping
| templateProperty1 = 
| unit1             = 
| templateProperty2 = 
| unit2             = 
| templateProperty3 = 
| unit3             = 
| ontologyProperty  = 
}}

Example

{{CombineDateMapping
| templateProperty1 = 
| unit1             = 
| templateProperty2 = 
| unit2             = 
| templateProperty3 = 
| unit3             = 
| ontologyProperty  = 
}}