Difference between revisions of "Template:S-ttl"

From eRepublik Official Wiki
Jump to: navigation, search
m
 
(cat added; documentation added)
 
Line 1: Line 1:
 
<includeonly>|width="40%" style="text-align: center;" rowspan="{{{rows|1}}}"|'''{{{title}}}<nowiki></nowiki>'''{{#if:{{{rank|}}}|<br/><small>Holding ''{{{rank|}}}'' rank</small>|}}{{#if:{{{district|}}}|<br/><small>'''''Representative for {{{district}}}'''''</small>|}}{{#if:{{{dynasty|}}}|<br/>''{{{dynasty}}}''|}}{{#if:{{{creation|}}}|<br/>''{{{creation}}}''|}}{{#if:{{{years|}}}|<br />{{{years}}}|}}{{#if:{{{regent1|}}}|<br/>''with {{{regent1}}}''|}} {{#if:{{{years1|}}}| <small>'' ({{{years1}}})''</small>|}}{{#if:{{{regent2|}}}|<br/>''{{{regent2}}}''|}} {{#if:{{{years2|}}}| <small>'' ({{{years2}}})''</small>|}}{{#if:{{{regent3|}}}|<br/>''{{{regent3}}}''|}} {{#if:{{{years3|}}}| <small>'' ({{{years3}}})''</small>|}}{{#if:{{{regent4|}}}|<br/>''{{{regent4}}}''|}} {{#if:{{{years4|}}}| <small>'' ({{{years4}}})''</small>|}}{{#if:{{{regent5|}}}|<br/>''{{{regent5}}}''|}} {{#if:{{{years5|}}}| <small>'' ({{{years5}}})''</small>|}}{{#if:{{{regent6|}}}|<br/>''{{{regent6}}}''|}} {{#if:{{{years6|}}}| <small>'' ({{{years6}}})''</small>|}}{{#if:{{{regent7|}}}|<br/>''{{{regent7}}}''|}} {{#if:{{{years7|}}}| <small>'' ({{{years7}}})''</small>|}}{{#if:{{{regent8|}}}|<br/>''{{{regent8}}}''|}} {{#if:{{{years8|}}}| <small>'' ({{{years8}}})''</small>|}}{{#if:{{{alongside|}}}|<br/><small>Served alongside: '''{{{alongside}}}'''</small>|}}{{#if:{{{with|}}}|<br/><small>With: '''{{{with}}}{{#if:{{{with2|}}}|<br/>{{{with2}}}|}}{{#if:{{{with3|}}}|<br/>{{{with3}}}|}}{{#if:{{{with4|}}}|<br/>{{{with4}}}|}}{{#if:{{{with5|}}}|<br/>{{{with5}}}|}}{{#if:{{{with6|}}}|<br/>{{{with6}}}|}}{{#if:{{{with7|}}}|<br/>{{{with7}}}|}}{{#if:{{{with8|}}}|<br/>{{{with8}}}|}}{{#if:{{{with9|}}}|<br/>{{{with9}}}|}}{{#if:{{{with10|}}}|<br/>{{{with10}}}|}}{{#if:{{{with11|}}}|<br/>{{{with11}}}|}}{{#if:{{{with12|}}}|<br/>{{{with12}}}|}}{{#if:{{{with13|}}}|<br/>{{{with13}}}|}}{{#if:{{{with14|}}}|<br/>{{{with14}}}|}}{{#if:{{{with15|}}}|<br/>{{{with15}}}|}}'''</small>|}}{{#if:{{{lords|}}}|<br/><small>''Member of the [[House of Lords]]''<br/>''({{{lords}}})''</small>|}}</includeonly><noinclude>
 
<includeonly>|width="40%" style="text-align: center;" rowspan="{{{rows|1}}}"|'''{{{title}}}<nowiki></nowiki>'''{{#if:{{{rank|}}}|<br/><small>Holding ''{{{rank|}}}'' rank</small>|}}{{#if:{{{district|}}}|<br/><small>'''''Representative for {{{district}}}'''''</small>|}}{{#if:{{{dynasty|}}}|<br/>''{{{dynasty}}}''|}}{{#if:{{{creation|}}}|<br/>''{{{creation}}}''|}}{{#if:{{{years|}}}|<br />{{{years}}}|}}{{#if:{{{regent1|}}}|<br/>''with {{{regent1}}}''|}} {{#if:{{{years1|}}}| <small>'' ({{{years1}}})''</small>|}}{{#if:{{{regent2|}}}|<br/>''{{{regent2}}}''|}} {{#if:{{{years2|}}}| <small>'' ({{{years2}}})''</small>|}}{{#if:{{{regent3|}}}|<br/>''{{{regent3}}}''|}} {{#if:{{{years3|}}}| <small>'' ({{{years3}}})''</small>|}}{{#if:{{{regent4|}}}|<br/>''{{{regent4}}}''|}} {{#if:{{{years4|}}}| <small>'' ({{{years4}}})''</small>|}}{{#if:{{{regent5|}}}|<br/>''{{{regent5}}}''|}} {{#if:{{{years5|}}}| <small>'' ({{{years5}}})''</small>|}}{{#if:{{{regent6|}}}|<br/>''{{{regent6}}}''|}} {{#if:{{{years6|}}}| <small>'' ({{{years6}}})''</small>|}}{{#if:{{{regent7|}}}|<br/>''{{{regent7}}}''|}} {{#if:{{{years7|}}}| <small>'' ({{{years7}}})''</small>|}}{{#if:{{{regent8|}}}|<br/>''{{{regent8}}}''|}} {{#if:{{{years8|}}}| <small>'' ({{{years8}}})''</small>|}}{{#if:{{{alongside|}}}|<br/><small>Served alongside: '''{{{alongside}}}'''</small>|}}{{#if:{{{with|}}}|<br/><small>With: '''{{{with}}}{{#if:{{{with2|}}}|<br/>{{{with2}}}|}}{{#if:{{{with3|}}}|<br/>{{{with3}}}|}}{{#if:{{{with4|}}}|<br/>{{{with4}}}|}}{{#if:{{{with5|}}}|<br/>{{{with5}}}|}}{{#if:{{{with6|}}}|<br/>{{{with6}}}|}}{{#if:{{{with7|}}}|<br/>{{{with7}}}|}}{{#if:{{{with8|}}}|<br/>{{{with8}}}|}}{{#if:{{{with9|}}}|<br/>{{{with9}}}|}}{{#if:{{{with10|}}}|<br/>{{{with10}}}|}}{{#if:{{{with11|}}}|<br/>{{{with11}}}|}}{{#if:{{{with12|}}}|<br/>{{{with12}}}|}}{{#if:{{{with13|}}}|<br/>{{{with13}}}|}}{{#if:{{{with14|}}}|<br/>{{{with14}}}|}}{{#if:{{{with15|}}}|<br/>{{{with15}}}|}}'''</small>|}}{{#if:{{{lords|}}}|<br/><small>''Member of the [[House of Lords]]''<br/>''({{{lords}}})''</small>|}}</includeonly><noinclude>
I will change the above titles to more relevant-to-erepublik ones very soon (e.g Congressman, President etc) :) [[User:John F Baker|John F Baker]] 20:14, 14 September 2010 (UTC)
+
{{Documentation}}[[Category:Succession Templates]]</noinclude>
<br>See [[Template:s-start]] for further information
+
</noinclude>
+

Latest revision as of 18:21, 11 April 2020

[edit] [purge]

Documentation


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

Usage

The format is {{s-ttl|title=text |rank=text | dynasty=text | creation=text | years= text| regent1=text| alongside=text | with=text | lords=text }}, where text is replaced by the text to be displayed.

Parameters
  • title (required) — Adds a title line; mandatory to be added
  • rank (optional) — Adds a line beneath title parameter with Holding "text" rank
  • dynasty (optional) — Adds a line beneath rank parameter with "text"
  • creation (optional) — Adds a line beneath dynasty parameter with "text"
  • years (optional) — Adds a line beneath creation parameter with "text"; preferably time period
  • regent1 (optional) — Adds a line beneath years parameter with with "text"
  • alongside (optional) — Adds a line beneath regent1 parameter with Served alongside: "text"
  • with (optional) — Adds a line beneath alongside parameter with with "text"
  • lords (optional) — Adds two line beneath with parameter with top line being Member of the House of Lords and bottom line being ("text")

Any optional parameter not used means that the used parameter moves up.

Usage
{{s-ttl | title= | rank=  | dynasty= | creation=  | years= | regent1=  | alongside= | with=  | lords= }}

Examples

{{start}}
{{s-ttl | title = [[Commander]] of [[ZDRUG]] | rank= General | alongside= [[andycro]] }}
{{end}}
Commander of ZDRUG
Holding General rank
Served alongside: andycro
{{start}}
{{s-ttl | title = [[Commander]] of [[ZDRUG]] | years= Day 980 - 1111 | alongside= andycro | with= 7 soldiers }}
{{end}}
Commander of ZDRUG
Day 980 - 1111
Served alongside: andycro
With: 7 soldiers
{{start}}
{{s-ttl | title = First Lord | lords= [[Relic]] | years= Day 980 - 1111 }}
{{end}}
First Lord
Day 980 - 1111
Member of the House of Lords
(Relic)

Classic example of the succession box template

{{start}}
{{s-bef | before = [[Andycro]]}}
{{s-ttl | title = [[Party president]] of the [[Hrvatski Liberalni Demokrati]] | years = March 16, 2011 - April 15, 2011}}
{{s-aft | after = '''Busynurse1510'''}}       
{{end}}
Preceded by
Andycro
Party president of the Hrvatski Liberalni Demokrati
March 16, 2011 - April 15, 2011
Succeeded by
Busynurse1510