Warning
This is an unofficial archive of PsychonautWiki as of 2025-08-11T15:14:44Z. Content on this page may be outdated, incomplete, or inaccurate. Please refer to the original page for the most up-to-date information.

Template:S-bef/doc

From PsychonautWiki Archive
Revision as of 20:46, 19 May 2014 by >PJosepherum (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Usage

The format is {{s-bef|before=|parameter}}, where parameter is replaced by one of the parameter names shown in the following table. The use of a parameter is optional.

as — Adds a title line beneath a predecessor's name to designate a change in title.

This template allows for multiple row-spans using the parameter |rows=| between the template name and the first parameter.

Example

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

Template:S-bef Template:S-ttl Template:S-aft Template:S-end

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

S-bef

<templatedata> {

   "description": "Single first-column succession box column for predecessors.",
   "params": {
       "before": {
           "label": "before",
           "description": "Predecessor",
           "type": "string",
           "required": true
       },
       "before2": {
           "label": "before2",
           "description": "Second predecessor",
           "type": "string",
           "required": false
       },
       "before3": {
           "label": "before3",
           "description": "Third predecessor",
           "type": "string",
           "required": false
       },
       "before4": {
           "label": "before4",
           "description": "Forth predecessor",
           "type": "string",
           "required": false
       },
       "before5": {
           "label": "before5",
           "description": "Fifth predecessor",
           "type": "string",
           "required": false
       },
       "as": {
           "label": "as",
           "description": "Adds a title line beneath a predecessor's name to designate a change in title.",
           "type": "string",
           "required": false
       },
       "rows": {
           "label": "rows",
           "description": "Number of table rows to span",
           "type": "string",
           "required": false
       }
   }

} </templatedata>

See also

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