Difference between revisions of "Template:S-new/doc"
From eRepublik Official Wiki
(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 instead of tem...") |
(small corrections) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}}{{-}}{{TOCright}} | {{Documentation subpage}}{{-}}{{TOCright}} | ||
− | This template creates a succession box column to be used with [[Template: | + | This template creates a succession box column to be used with [[Template:Start]] and [[Template:End]], preferably instead of template [[Template:S-bef]]. |
==Usage== | ==Usage== | ||
− | The format is <code><nowiki>{{</nowiki>s-new|reason=''text''}}</code>, where ''text'' is replaced by the text to be displayed. If reason is not used, predefined value is ''New title''. | + | The format is <code><nowiki>{{</nowiki>s-new|reason=''text''}}</code>, where ''text'' is replaced by the text to be displayed. If ''reason'' is not used, the predefined value is ''New title''. |
; Parameters | ; Parameters | ||
Line 34: | Line 34: | ||
==Examples== | ==Examples== | ||
<pre style="width:95%; overflow:auto;"> | <pre style="width:95%; overflow:auto;"> | ||
− | {{ | + | {{start}} |
{{s-new}} | {{s-new}} | ||
− | {{ | + | {{end}} |
</pre> | </pre> | ||
− | {{ | + | {{start}} |
{{s-new}} | {{s-new}} | ||
− | {{ | + | {{end}} |
<pre style="width:95%; overflow:auto;"> | <pre style="width:95%; overflow:auto;"> | ||
− | {{ | + | {{start}} |
{{s-new | award | reason= created by [[Bob Boblo]]}} | {{s-new | award | reason= created by [[Bob Boblo]]}} | ||
− | {{ | + | {{end}} |
</pre> | </pre> | ||
− | {{ | + | {{start}} |
{{s-new | award | reason= created by [[Bob Boblo]]}} | {{s-new | award | reason= created by [[Bob Boblo]]}} | ||
− | {{ | + | {{end}} |
<pre style="width:95%; overflow:auto;"> | <pre style="width:95%; overflow:auto;"> | ||
− | {{ | + | {{start}} |
{{s-new | reason = [[Andycro|Sysop andycro]]}} | {{s-new | reason = [[Andycro|Sysop andycro]]}} | ||
− | {{ | + | {{end}} |
</pre> | </pre> | ||
− | {{ | + | {{start}} |
{{s-new | reason = [[Andycro|Sysop andycro]]}} | {{s-new | reason = [[Andycro|Sysop andycro]]}} | ||
− | {{ | + | {{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;"> | ||
− | {{ | + | {{start}} |
{{s-new | award | reason= created by [[Bob Boblo]]}} | {{s-new | award | reason= created by [[Bob Boblo]]}} | ||
{{s-ttl | title = Worst spammer}} | {{s-ttl | title = Worst spammer}} | ||
{{s-non | reason = Award not given <br> in the second edition}} | {{s-non | reason = Award not given <br> in the second edition}} | ||
− | {{ | + | {{end}} |
</pre> | </pre> | ||
− | {{ | + | {{start}} |
{{s-new | award | reason= created by [[Bob Boblo]]}} | {{s-new | award | reason= created by [[Bob Boblo]]}} | ||
{{s-ttl | title = Worst spammer}} | {{s-ttl | title = Worst spammer}} | ||
{{s-non | reason = Award not given <br> in the second edition}} | {{s-non | reason = Award not given <br> in the second edition}} | ||
− | {{ | + | {{end}} |
− | + | ||
− | + | ||
− | + |
Latest revision as of 05:24, 7 January 2024
This documentation subpage contains instructions, categories, or other information for technical reasons.
To view the Template page itself, see Template:S-new.
To view the Template page itself, see Template:S-new.
This template creates a succession box column to be used with Template:Start and Template:End, preferably instead of template Template:S-bef.
Usage
The format is {{s-new|reason=text}}
, where text is replaced by the text to be displayed. If reason is not used, the predefined value is New title.
- Parameters
- reason (optional) — Adds a title line beneath a predecessor's name to designate a change in title
- Usage
{{s-new | reason= |}}
- Predefined parameters
There are also some predefined parameters:
- award = New award
- creation = New creation
- division = New division
- branch = New branch
- first = First
- loss = Loss of title
- minister = New ministerial post
- office = New office
- party = New political party
- regiment = New regiment
- parliament = New parliament
- squadron = New squadron
- #default = New title
- Usage
{{s-new | award |}}
Examples
{{start}} {{s-new}} {{end}}
New title |
{{start}} {{s-new | award | reason= created by [[Bob Boblo]]}} {{end}}
New award created by Bob Boblo
|
{{start}} {{s-new | reason = [[Andycro|Sysop andycro]]}} {{end}}
New title |
Classic example of the succession box template
{{start}} {{s-new | award | reason= created by [[Bob Boblo]]}} {{s-ttl | title = Worst spammer}} {{s-non | reason = Award not given <br> in the second edition}} {{end}}
New award created by Bob Boblo
|
Worst spammer | Award not given in the second edition |