Difference between revisions of "Template:Employment/Incumbent"

From Wikispooks
Jump to navigation Jump to search
(Created page with "<noinclude>'''This is a sub template of Template:Employment, used to create the picture of the incumbent, if there is one.'''<br/> The first parameter is the employment ti...")
 
(Fix)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<noinclude>'''This is a sub template of [[Template:Employment]], used to create the picture of the incumbent, if there is one.'''<br/>
 
<noinclude>'''This is a sub template of [[Template:Employment]], used to create the picture of the incumbent, if there is one.'''<br/>
The first parameter is the employment title.<br/>
+
The first parameter is the employment title. If unused, it defaults to <nowiki><{{PAGENAME}}</nowiki>.<br/>
 
</br>
 
</br>
 
i.e. <nowiki>{{Employment/Incumbent|President of the European Central Bank}}</nowiki>
 
i.e. <nowiki>{{Employment/Incumbent|President of the European Central Bank}}</nowiki>
</noinclude><includeonly>{{#if: {{#ask: [[Constitutes::Posting]][[Has jobTitle::President of the European Central Bank]] |'''Incumbent''<br/>
+
</noinclude><includeonly>{{#ask:[[Constitutes::Posting]][[Has jobTitle::{{#if: {{{1|}}}|{{{1}}}|{{PAGENAME}}}}]]
since xxx
+
|format=template
}
+
|template=Employment/Incumbent/Output
</includeonly>
+
|limit=1
 +
|sort=Start
 +
|order=descending
 +
|searchlabel=
 +
|link=none}}</includeonly>

Latest revision as of 06:40, 6 October 2016

This is a sub template of Template:Employment, used to create the picture of the incumbent, if there is one.
The first parameter is the employment title. If unused, it defaults to <{{PAGENAME}}.

i.e. {{Employment/Incumbent|President of the European Central Bank}}