Template:DateIntervalMapping: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
No edit summary |
AnjaJentzsch (talk | contribs) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{|class="wikitable" | <includeonly>{|class="wikitable" | ||
! style="text-align:left" colspan="2" | Date Interval Mapping | ! style="text-align:left" colspan="2" | Date Interval Mapping <small>([[Template:DateIntervalMapping|<span style="cursor:help;">help</span>]])</small> | ||
|- | |- | ||
| width="200px" | template property | | width="200px" | template property | ||
Line 6: | Line 6: | ||
|- | |- | ||
| start date ontology property | | start date ontology property | ||
| {{#if:{{{startDateOntologyProperty|}}}|[[OntologyProperty:{{#replace:{{{startDateOntologyProperty}}}|:| | | {{#if:{{{startDateOntologyProperty|}}}|[[OntologyProperty:{{#replace:{{{startDateOntologyProperty}}}|:|%2F}}|{{{startDateOntologyProperty}}}]]|<span style="color:red">please define a start date ontology property</span>}} | ||
|- | |- | ||
| end date ontology property | | end date ontology property | ||
| {{#if:{{{endDateOntologyProperty|}}}|[[OntologyProperty:{{#replace:{{{endDateOntologyProperty}}}|:| | | {{#if:{{{endDateOntologyProperty|}}}|[[OntologyProperty:{{#replace:{{{endDateOntologyProperty}}}|:|%2F}}|{{{endDateOntologyProperty}}}]]|<span style="color:red">please define an end date ontology property</span>}} | ||
|} | |}</includeonly> | ||
<noinclude>'''<nowiki>{{DateIntervalMapping}}</nowiki>''' maps a template property containing date intervals to a start date and end date ontology property. | |||
=== Usage === | |||
<pre> | |||
{{DateIntervalMapping | |||
| templateProperty = | |||
| startDateOntologyProperty = | |||
| endDateOntologyProperty = | |||
}} | |||
</pre> | |||
=== Meanings === | |||
* '''templateProperty''' | |||
* '''startDateOntologyProperty''' | |||
* '''endDateOntologyProperty''' | |||
=== Example === | |||
The property mapping from the template property active years to the ontology properties activeYearsStartYear and activeYearsEndYear: | |||
<pre> | |||
{{DateIntervalMapping | |||
| templateProperty = active years | |||
| startDateOntologyProperty = activeYearsStartYear | |||
| endDateOntologyProperty = activeYearsEndYear | |||
}} | |||
</pre> | |||
</noinclude> |
Latest revision as of 09:36, 12 March 2010
{{DateIntervalMapping}} maps a template property containing date intervals to a start date and end date ontology property.
Usage
{{DateIntervalMapping | templateProperty = | startDateOntologyProperty = | endDateOntologyProperty = }}
Meanings
- templateProperty
- startDateOntologyProperty
- endDateOntologyProperty
Example
The property mapping from the template property active years to the ontology properties activeYearsStartYear and activeYearsEndYear:
{{DateIntervalMapping | templateProperty = active years | startDateOntologyProperty = activeYearsStartYear | endDateOntologyProperty = activeYearsEndYear }}