Difference between revisions of "Template:Infobox officeholder/short description"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(test for office= and make term_start optional (in lieu of testing for it))
imported>Rummskartoffel
(It's better to check for term_start than just making it optional: e.g. "MP from to 1998" would make no sense. Also removed {{plain text}} since that's taken care of in the main template already (see sandbox).)
Line 1: Line 1:
<includeonly>{{#if: {{{office|}}}| {{#if: {{{order|}}} | {{plain text|{{{order}}}}} {{plain text|{{{office}}}}} | {{#if: {{{term_end|}}} | {{plain text|{{{office}}}}} from {{YEAR|{{plain text|{{{term_start|}}}}}}} to {{YEAR|{{plain text|{{{term_end}}}}}}} | {{plain text|{{{office}}}}} }} }} }}</includeonly><noinclude>{{documentation|content=This template is used by {{t|{{ROOTPAGENAME}}}} to generate automatic [[wp:short description|short description]]s.}}
+
<includeonly>{{#if: {{{office|}}} | {{#if: {{{order|}}} | {{{order}}} {{{office}}} | {{#if: {{{term_end|}}} | {{#if: {{{term_start|}}} | {{{office}}} from {{YEAR|{{{term_start|}}}}} to {{YEAR|{{{term_end}}}}} | {{{office}}} }} | {{{office}}} }} }} }}</includeonly><noinclude>{{documentation|content=This template is used by {{t|{{ROOTPAGENAME}}}} to generate automatic [[wp:short description|short description]]s.}}
 
</noinclude>
 
</noinclude>

Revision as of 20:15, 21 January 2021

Template documentation

This template is used by Template:T to generate automatic short descriptions.