Template:Succ: Difference between revisions

From TalossaWiki
Jump to navigation Jump to search
(Succ (heh) now supports multiple terms!)
mNo edit summary
 
Line 3: Line 3:
|-
|-
|width="25%" style="border-right: 1px solid black;"|Preceded by<br />'''{{{n1}}}''' ||width="50%" style="border-right: 1px solid black;"| '''{{{o}}}'''<br />{{{d1}}} - {{#if: {{{d2|}}}|{{{d2}}}|''Present''}}||width="25%"|Succeeded by<br />{{#if: {{{n2|}}}|'''{{{n2}}}'''|''Incumbent''}}
|width="25%" style="border-right: 1px solid black;"|Preceded by<br />'''{{{n1}}}''' ||width="50%" style="border-right: 1px solid black;"| '''{{{o}}}'''<br />{{{d1}}} - {{#if: {{{d2|}}}|{{{d2}}}|''Present''}}||width="25%"|Succeeded by<br />{{#if: {{{n2|}}}|'''{{{n2}}}'''|''Incumbent''}}
|-{{#if: {{{d1a}}}|
|-
{{!}}width="25%" style="border-right: 1px solid black;"{{!}}'''{{{n1a}}}''' {{!}}{{!}}width="50%" style="border-right: 1px solid black;"{{!}} {{{d1a}}} - {{#if: {{{d2a|}}}|{{{d2a}}}|''Present''}}{{!}}{{!}}width="25%"{{!}}{{#if: {{{n2a|}}}|'''{{{n2a}}}'''|''Incumbent''}} |}}
{{#if: {{{d1a|}}} |
|-{{#if: {{{d1b}}}|
{{!}}width="25%" style="border-right: 1px solid black;"{{!}}'''{{{n1a}}}''' {{!}}{{!}} width="50%" style="border-right: 1px solid black;"{{!}} {{{d1a}}} - {{#if: {{{d2a|}}} | {{{d2a}}} | ''Present'' }}{{!}}{{!}}width="25%"{{!}} {{#if: {{{n2a|}}} | '''{{{n2a}}}''' | ''Incumbent''}}
{{!}}width="25%" style="border-right: 1px solid black;"{{!}}'''{{{n1b}}}''' {{!}}{{!}}width="50%" style="border-right: 1px solid black;"{{!}} {{{d1b}}} - {{#if: {{{d2b|}}}|{{{d2b}}}|''Present''}}{{!}}{{!}}width="25%"{{!}}{{#if: {{{n2b|}}}|'''{{{n2b}}}'''|''Incumbent''}} |}}
| }}
|-{{#if: {{{d1c}}}|
|-
{{!}}width="25%" style="border-right: 1px solid black;"{{!}}'''{{{n1c}}}''' {{!}}{{!}}width="50%" style="border-right: 1px solid black;"{{!}} {{{d1c}}} - {{#if: {{{d2c|}}}|{{{d2c}}}|''Present''}}{{!}}{{!}}width="25%"{{!}}{{#if: {{{n2c|}}}|'''{{{n2c}}}'''|''Incumbent''}} |}}
{{#if: {{{d1b|}}} |
|-{{#if: {{{d1d}}}|
{{!}}width="25%" style="border-right: 1px solid black;"{{!}}'''{{{n1b}}}''' {{!}}{{!}} width="50%" style="border-right: 1px solid black;"{{!}} {{{d1b}}} - {{#if: {{{d2b|}}} | {{{d2b}}} | ''Present'' }}{{!}}{{!}}width="25%"{{!}} {{#if: {{{n2b|}}} | '''{{{n2b}}}'''| ''Incumbent''}}
{{!}}width="25%" style="border-right: 1px solid black;"{{!}}'''{{{n1d}}}''' {{!}}{{!}}width="50%" style="border-right: 1px solid black;"{{!}} {{{d1d}}} - {{#if: {{{d2d|}}}|{{{d2d}}}|''Present''}}{{!}}{{!}}width="25%"{{!}}{{#if: {{{n2d|}}}|'''{{{n2d}}}'''|''Incumbent''}} |}}
| }}
|-
{{#if: {{{d1c|}}} |
{{!}} width="25%" style="border-right: 1px solid black;"{{!}}'''{{{n1c}}}''' {{!}}{{!}} width="50%" style="border-right: 1px solid black;"{{!}} {{{d1c}}} - {{#if: {{{d2c|}}} | {{{d2c}}} | ''Present'' }}{{!}}{{!}}width="25%"{{!}} {{#if: {{{n2c|}}} | '''{{{n2c}}}''' | ''Incumbent''}}
| }}
|-
{{#if: {{{d1d|}}} |
{{!}}width="25%" style="border-right: 1px solid black;"{{!}}'''{{{n1d}}}''' {{!}}{{!}} width="50%" style="border-right: 1px solid black;"{{!}} {{{d1d}}} - {{#if: {{{d2d|}}} | {{{d2d}}}| ''Present'' }}{{!}}{{!}}width="25%"{{!}}{{#if: {{{n2d|}}} | '''{{{n2d}}}''' | ''Incumbent''}}
| }}
|}</center><noinclude>
|}</center><noinclude>
===Usage===
===Usage===

Latest revision as of 03:18, 29 July 2019

Preceded by
{{{n1}}}
{{{o}}}
{{{d1}}} - Present
Succeeded by
Incumbent

Usage

This box allows a given page on an individual to specify who came before them in an office, and who follow them. To use it, just add the following code to a person's page:

 {{Succ
 |o=The name of the office, preferably wikilinked (e.g. [[Seneschal]])

 |d1=The date the person entered the office.
 |d2=The date the person left the office.  Leave blank if incumbent.
 |n1=The name of the person who preceded the current subject, preferably wikilinked.
 |n2=The name of the person who succeeded the current subject, preferably wikilinked.  Leave blank if incumbent.
 }}

You can list multiple instances of someone holding the same office as such (max. 5 total terms):

 {{Succ
 |o=The name of the office, preferably wikilinked (e.g. [[Seneschal]])

 |d1=The date the person entered the office.
 |d2=The date the person left the office.  Leave blank if incumbent.
 |n1=The name of the person who preceded the current subject, preferably wikilinked.
 |n2=The name of the person who succeeded the current subject, preferably wikilinked.  Leave blank if incumbent.

 |d1a=Same as above, for the second term (omit if not necessary; will hide the whole block)
 |d2a=Same as above, for the second term
 |n1a=Same as above, for the second term
 |n2a=Same as above, for the second term

 |d1b=Same as above, for the third term (omit if not necessary; will hide the whole block)
 |d2b=Same as above, for the third term
 |n1b=Same as above, for the third term
 |n2b=Same as above, for the third term

 |d1c=Same as above, for the fourth term (omit if not necessary; will hide the whole block)
 |d2c=Same as above, for the fourth term
 |n1c=Same as above, for the fourth term
 |n2c=Same as above, for the fourth term

 |d1d=Same as above, for the fifth term (omit if not necessary; will hide the whole block)
 |d2d=Same as above, for the fifth term
 |n1d=Same as above, for the fifth term
 |n2d=Same as above, for the fifth term
 }}

Offices should be listed first by order of precedent (Seneschal should be above Senator, etc.) and secondly by most recent (Seneschal in 2009 should be above Seneschal in 2001).