Template:CombineDateMapping: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
AnjaJentzsch (talk | contribs) No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
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> | ||
Line 51: | Line 51: | ||
<pre> | <pre> | ||
{{CombineDateMapping | {{CombineDateMapping | ||
| templateProperty1 = | | templateProperty1 = debutdate | ||
| unit1 = | | unit1 = xsd:gMonthDay | ||
| templateProperty2 = | | templateProperty2 = debutyear | ||
| unit2 = | | unit2 = xsd:gYear | ||
| templateProperty3 = | | templateProperty3 = | ||
| unit3 = | | unit3 = | ||
| ontologyProperty = | | ontologyProperty = activeYearsStartDate | ||
}} | }} | ||
</pre> | </pre> |
Latest revision as of 17:16, 6 August 2015
{{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 = debutdate | unit1 = xsd:gMonthDay | templateProperty2 = debutyear | unit2 = xsd:gYear | templateProperty3 = | unit3 = | ontologyProperty = activeYearsStartDate }}