Difference between revisions of "Template:Job"

From Wikispooks
Jump to navigation Jump to search
(title)
(start to add a suboject)
Line 1: Line 1:
<noinclude>[[category:Semantic Templates]]{{TemplateProblem|As of April 2014, this was the most ambitious SMW template on the site. It is not fully functional due to issues surrounding [[WikiSpooks:Semantic_Mediawiki#Limitations |reification]]. It can however use used as is to provide human readable data and its current failure to represent it proper semantically may be addressable in due course.}}
+
<noinclude>[[category:Semantic Templates]]<!-- {{TemplateProblem|As of April 2014, this was the most ambitious SMW template on the site. It is not fully functional due to issues surrounding [[WikiSpooks:Semantic_Mediawiki#Limitations |reification]]. It can however use used as is to provide human readable data and its current failure to represent it proper semantically may be addressable in due course.}}-->
 
'''This template is for use in the |employment category of Wikispooks pages about people''', intended to be used once per stint of employment.<br/>
 
'''This template is for use in the |employment category of Wikispooks pages about people''', intended to be used once per stint of employment.<br/>
 
'''Usage:'''
 
'''Usage:'''
Line 6: Line 6:
 
|{{BLUE|employer}}=Pagename of the employer ''([[Property:Has employer]])''
 
|{{BLUE|employer}}=Pagename of the employer ''([[Property:Has employer]])''
 
|{{BLUE|title}}=Pagename of the job, e.g. [[US President]]
 
|{{BLUE|title}}=Pagename of the job, e.g. [[US President]]
 +
|{{GREEN|deputy}}=Comma separated list of pagename(s) of the deputies
 
|start= Date it began [Not semantically represented as yet]
 
|start= Date it began [Not semantically represented as yet]
 
|end= Date it ended [Not semantically represented as yet]
 
|end= Date it ended [Not semantically represented as yet]
Line 11: Line 12:
 
}}
 
}}
 
</poem>
 
</poem>
</noinclude><includeonly>{{#if: {{{employer|}}}|[[Has employer::{{{employer|}}}|}}{{#if: {{{start|}}}{{{end|}}}|({{FormatDate|{{{start|}}}|{{{end|}}}}})}} {{{detail|}}}</includeonly>
+
</noinclude><includeonly>{{#if: {{{employer|}}}|[[Has employer::{{{employer|}}}|}}
 +
{{#subobject:
 +
|Constitutes={{{title|}}}
 +
|Has employer={{{employer|}}}
 +
|Has name={{{PAGENAME}}}
 +
|Start={{{start|}}}
 +
|End={{{end|}}}
 +
|Has deputy={{{deputy|}}}
 +
|Description={{{description|}}}
 +
}}
 +
<!--
 +
{{#if: {{{start|}}}{{{end|}}}|({{FormatDate|{{{start|}}}|{{{end|}}}}})}} {{{detail|}}}
 +
-->
 +
</includeonly>

Revision as of 06:09, 3 May 2014

This template is for use in the |employment category of Wikispooks pages about people, intended to be used once per stint of employment.
Usage:

{{job
|employer=Pagename of the employer (Property:Has employer)
|title=Pagename of the job, e.g. US President
|deputy=Comma separated list of pagename(s) of the deputies
|start= Date it began [Not semantically represented as yet]
|end= Date it ended [Not semantically represented as yet]
|description=Human readable clarification
}}