• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:S-aft/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:S-aft
This is the template sandbox page for Template:S-aft (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 226,000 pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.

This template creates a single third-column succession box column to be used with succession boxes.

Contents

  • 1 Usage
    • 1.1 Parameter names
    • 1.2 Usage
    • 1.3 Output (raw)
    • 1.4 Output (as table cell)
    • 1.5 Output (in succession box, rows=2)
  • 2 Example
  • 3 TemplateData
  • 4 See also

Usage

edit

The format is {{tlx|s-aft|after{{=}]text|parameters}}, where text is replaced by the text to be displayed and parameters is replaced by one or more of the optional parameter names shown below.

Parameter names

edit
  • after (required) – Name of successor
  • after2 (optional) – Second successor
  • after3 (optional) – Third successor
  • after4 (optional) – Fourth successor
  • after5 (optional) – Fifth successor
  • as (optional) – Adds a title line beneath a successor's name to designate a change in title
  • rows (optional) – Number of table rows to span

Usage

edit
{{S-aft | after= | after2= | after3= | after4= | after5= | as= | rows= }}

Output (raw)

edit
| style="width: 30%; text-align: center;" rowspan="{{{rows}}}"| Succeeded by
{{{after}}}
{{{after2}}}
{{{after3}}}
{{{after4}}}
{{{after5}}}
as {{{as}}}

|-

Output (as table cell)

edit
Succeeded by
{{{after}}}
{{{after2}}}
{{{after3}}}
{{{after4}}}
{{{after5}}}
as {{{as}}}

Output (in succession box, rows=2)

edit
Preceded by
{{{before}}}
{{{title}}} Succeeded by
{{{after}}}
{{{after2}}}
{{{after3}}}
{{{after4}}}
{{{after5}}}
as {{{as}}}
Preceded by
{{{before}}}
{{{title}}}

Example

edit

From the Louis XIV of France article:

{{s-start}}
{{s-reg}}
{{s-bef | before = [[Louis XIII of France|Louis XIII]]}}
{{s-ttl | title = [[List of French monarchs|King of France]] and [[List of Navarrese monarchs|Navarre]] | years = 14 May 1643 – 1 September 1715}}
{{s-aft | after = [[Louis XV of France|Louis XV]]}}
{{s-end}}
Regnal titles
Preceded by
Louis XIII
King of France and Navarre
14 May 1643 – 1 September 1715
Succeeded by
Louis XV

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:S-aft in articles based on its TemplateData.

TemplateData for S-aft

A single third-column succession box for successors.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
afterafter

Name of successor.

Stringrequired
after2after2

Second successor.

Stringoptional
after3after3

Third successor.

Stringoptional
after4after4

Forth successor.

Stringoptional
after5after5

Fifth successor.

Stringoptional
asas

Adds a title line beneath a successor's name to designate a change in title.

Stringoptional
rowsrows

Number of table rows to span

Stringoptional

See also

edit

Documentation for creating succession boxes can be found at Template:s-start/doc.

The above documentation is transcluded from Template:S-aft/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:S-aft/sandbox&oldid=1171054541"
Last edited on 18 August 2023, at 19:39

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 18 August 2023, at 19:39 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop