Template:S-prec/doc

{{Documentation subpage}}

{{High-use|demo={{ROOTPAGENAME}}}}

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.

Usage

= Without parameter =

The template defaults to {{s-start}}

{{s-prec}}

{{s-end}} 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.

{{s-start}}

{{s-prec}}

| {{s-prec}}

{{s-end}}

= With parameter =

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.

{{s-start}}

{{s-prec|ew}}

| ew

{{s-prec|sc}}

| sc

{{s-prec|uk}}

| uk

{{s-prec|ph-pres}}

| ph-pres

{{s-prec|ni}}

| ni

{{s-prec|usa}}

| usa

{{s-prec|us-pres}}

| us-pres

{{s-end}}

Example

From the Charles, Prince of Wales article:

{{s-start}}

{{s-prec|uk}}

{{s-bef | before = The Duke of Edinburgh}}

{{s-ttl | title = Gentlemen}}

{{s-aft | after = William, Prince of Wales}}

{{s-end}}

{{s-start}}

{{s-prec|uk}}

{{s-bef | before = The Duke of Edinburgh}}

{{s-ttl | title = Gentlemen}}

{{s-aft | after = William, Prince of Wales}}

{{s-end}}

See also

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

{{Sandbox other||

{{PAGENAME}}

}}