Difference between revisions of "Template:S-vac/doc"

From eRepublik Official Wiki
Jump to: navigation, search
(Created page with "{{Documentation subpage}}{{-}}{{TOCright}} This template creates a succession box column to be used with Template:S-start and Template:S-end, preferably replaces templ...")
 
(small corrections)
 
Line 1: Line 1:
 
{{Documentation subpage}}{{-}}{{TOCright}}
 
{{Documentation subpage}}{{-}}{{TOCright}}
This template creates a succession box column to be used with [[Template:S-start]] and [[Template:S-end]], preferably replaces templates [[Template:S-bef]] and [[Template:S-aft]].
+
This template creates a succession box column to be used with [[Template:Start]] and [[Template:End]], preferably replaces templates [[Template:S-bef]] and [[Template:S-aft]].
  
 
==Usage==
 
==Usage==
Line 20: Line 20:
 
==Examples==
 
==Examples==
 
<pre style="width:95%; overflow:auto;">
 
<pre style="width:95%; overflow:auto;">
{{s-start}}
+
{{start}}
 
{{s-vac}}
 
{{s-vac}}
{{s-end}}
+
{{end}}
 
</pre>
 
</pre>
  
{{s-start}}
+
{{start}}
 
{{s-vac}}
 
{{s-vac}}
{{s-end}}
+
{{end}}
  
 
<pre style="width:95%; overflow:auto;">
 
<pre style="width:95%; overflow:auto;">
{{s-start}}
+
{{start}}
 
{{s-vac|reason=no one to fill it}}
 
{{s-vac|reason=no one to fill it}}
{{s-end}}
+
{{end}}
 
</pre>
 
</pre>
  
{{s-start}}
+
{{start}}
 
{{s-vac|reason=no one to fill it}}
 
{{s-vac|reason=no one to fill it}}
{{s-end}}
+
{{end}}
  
 
<pre style="width:95%; overflow:auto;">
 
<pre style="width:95%; overflow:auto;">
{{s-start}}
+
{{start}}
 
{{s-vac|last=Alien|as=big boss}}
 
{{s-vac|last=Alien|as=big boss}}
{{s-end}}
+
{{end}}
 
</pre>
 
</pre>
  
{{s-start}}
+
{{start}}
 
{{s-vac|last=Alien|as=big boss}}
 
{{s-vac|last=Alien|as=big boss}}
{{s-end}}
+
{{end}}
  
 
==Classic example of the succession box template ==
 
==Classic example of the succession box template ==
 
<pre style="width:95%; overflow:auto;">
 
<pre style="width:95%; overflow:auto;">
{{s-start}}
+
{{start}}
 
{{s-vac | lastunknown = [[Andycro]]}}
 
{{s-vac | lastunknown = [[Andycro]]}}
{{s-ttl | title = [[Party president]] of the [[Australian Independents]] | years = March 15, 2011 - April 15, 2011}}
+
{{s-ttl | title = [[Party president]] of the [[Hrvatski Liberalni Demokrati]] | years = March 16, 2011 - April 15, 2011}}
 
{{s-vac | next = Busynurse1510 | as = interim}}
 
{{s-vac | next = Busynurse1510 | as = interim}}
{{s-end}}
+
{{end}}
 
</pre>
 
</pre>
  
{{s-start}}
+
{{start}}
 
{{s-vac | lastunknown = [[Andycro]]}}
 
{{s-vac | lastunknown = [[Andycro]]}}
{{s-ttl | title = [[Party president]] of the [[Australian Independents]] | years = March 15, 2011 - April 15, 2011}}
+
{{s-ttl | title = [[Party president]] of the [[Hrvatski Liberalni Demokrati]] | years = March 16, 2011 - April 15, 2011}}
 
{{s-vac | next = Busynurse1510 | as = interim}}
 
{{s-vac | next = Busynurse1510 | as = interim}}
{{s-end}}
+
{{end}}
 
+
==Learn more how to use succession box template ==
+
[[Template:S-start]]
+

Latest revision as of 05:32, 7 January 2024

edit

Edit-copy green.png Documentation subpage

This documentation subpage contains instructions, categories, or other information for technical reasons.
To view the Template page itself, see Template:S-vac.


This template creates a succession box column to be used with Template:Start and Template:End, preferably replaces templates Template:S-bef and Template:S-aft.

Usage

The format is {{s-vac|additionalparamater=text|as=text}}, where text is replaced by the text to be displayed.

Additional parameters (only one can be used)
  • reason (optional) — Reason of vacancy
  • last (optional) — Adds a line "Title last held by" and a name has to be added (e.g. last=andycro)
  • next (optional) — Adds a line "Title next held by" and a name has to be added (e.g. next=andycro)
  • lastunknown (optional) — Adds a line "Last known title holder" and a name has to be added (e.g. lastunknown=andycro)
  • nextunknown (optional) — Adds a line "Next known title holder" and a name has to be added (e.g. nextunknown=andycro)
  • as (optional; can be added with one of the previous ones or as a standalone) — Adds a title line beneath a predecessor's name to designate a change in title and a reason has to be added (e.g. as=interim)
Usage
{{s-vac | reason= | as= }}

Examples

{{start}}
{{s-vac}}
{{end}}
Vacant
{{start}}
{{s-vac|reason=no one to fill it}}
{{end}}
Vacant
no one to fill it
{{start}}
{{s-vac|last=Alien|as=big boss}}
{{end}}
Vacant
Title last held by
Alien
as big boss

Classic example of the succession box template

{{start}}
{{s-vac | lastunknown = [[Andycro]]}}
{{s-ttl | title = [[Party president]] of the [[Hrvatski Liberalni Demokrati]] | years = March 16, 2011 - April 15, 2011}}
{{s-vac | next = Busynurse1510 | as = interim}}
{{end}}
Vacant
Last known title holder:
Andycro
Party president of the Hrvatski Liberalni Demokrati
March 16, 2011 - April 15, 2011
Vacant
Title next held by
Busynurse1510
as interim