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

Template:S-prec/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:S-prec
This is the template sandbox page for Template:S-prec (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 3,200 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

This template creates a header to be used with succession boxes for orders of precedence. No years are entered in these boxes, so the "years" field may be omitted when this header is used.

Contents

  • 1 Usage
    • 1.1 Without parameter
    • 1.2 With parameter
  • 2 Example
  • 3 See also

Usage

edit

Without parameter

edit

The template defaults to

Order of precedence
if no parameter is given. In the following table, the first column contains the header and the second column shows the template call used to create it.
Order of precedence {{s-prec}}

With parameter

edit

The format is {{s-prec|parameter}}, where parameter is replaced by one of the parameter names shown in the following table. The first column displays the header and the second column contains the parameter name.

Order of precedence in England and Wales ew
Order of precedence in Scotland sc
Orders of precedence in the United Kingdom uk
Order of precedence ph-pres
Order of precedence in Northern Ireland ni
U.S. order of precedence (ceremonial) usa
U.S. presidential line of succession us-pres

Example

edit

From the Charles, Prince of Wales article:

{{s-start}}
{{s-prec|uk}}
{{s-bef | before = [[Prince Philip, Duke of Edinburgh|The Duke of Edinburgh]]}}
{{s-ttl | title  = [[Orders of precedence in the United Kingdom|Gentlemen]]}}
{{s-aft | after  = [[William, Prince of Wales]]}}
{{s-end}}
Orders of precedence in the United Kingdom
Preceded by
The Duke of Edinburgh
Gentlemen Succeeded by
William, Prince of Wales

See also

edit

Documentation for creating succession boxes can be found at Template:S-start.

The above documentation is transcluded from Template:S-prec/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-prec/sandbox&oldid=1301573573"
Last edited on 20 July 2025, at 15:05

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 20 July 2025, at 15:05 (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