Difference between revisions of "Template:S-new/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 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:S-start]] and [[Template:S-end]], preferably instead of template [[Template:S-bef]].
+
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;">
{{s-start}}
+
{{start}}
 
{{s-new}}
 
{{s-new}}
{{s-end}}
+
{{end}}
 
</pre>
 
</pre>
  
{{s-start}}
+
{{start}}
 
{{s-new}}
 
{{s-new}}
{{s-end}}
+
{{end}}
  
 
<pre style="width:95%; overflow:auto;">
 
<pre style="width:95%; overflow:auto;">
{{s-start}}
+
{{start}}
 
{{s-new | award | reason= created by [[Bob Boblo]]}}   
 
{{s-new | award | reason= created by [[Bob Boblo]]}}   
{{s-end}}
+
{{end}}
 
</pre>
 
</pre>
  
{{s-start}}
+
{{start}}
 
{{s-new | award | reason= created by [[Bob Boblo]]}}   
 
{{s-new | award | reason= created by [[Bob Boblo]]}}   
{{s-end}}
+
{{end}}
  
 
<pre style="width:95%; overflow:auto;">
 
<pre style="width:95%; overflow:auto;">
{{s-start}}
+
{{start}}
 
{{s-new | reason = [[Andycro|Sysop andycro]]}}
 
{{s-new | reason = [[Andycro|Sysop andycro]]}}
{{s-end}}
+
{{end}}
 
</pre>
 
</pre>
  
{{s-start}}
+
{{start}}
 
{{s-new | reason = [[Andycro|Sysop andycro]]}}
 
{{s-new | reason = [[Andycro|Sysop andycro]]}}
{{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-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}}
{{s-end}}
+
{{end}}
 
</pre>
 
</pre>
  
{{s-start}}
+
{{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}}
{{s-end}}
+
{{end}}
 
+
==Learn more how to use succession box template ==
+
[[Template:S-start]]
+

Latest revision as of 05:24, 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-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