Template:Pope list begin/doc



A suite of three templates used to construct tables for the lists in List of popes. The three templates are:
 * pope list begin – creates table headings; one per table
 * pope list item – table data; one template for each row
 * pope list end – closes the table markup

pope list begin
is required for each table. The template takes one required parameter:
 * title – required; this parameter is used to create a table caption for those who use screen readers and for accessibility. The caption is not displayed but is present.

pope list item
One or more template is required for each table. The template takes eight parameters, none of which are required:
 * num – sequence number for this pope; rendered centered in the column
 * pont – pontificate; date range of this pope's pontificate
 * portrait – image of this pope
 * name – papal name
 * pers-name – name that this pope was known by before becoming pope
 * nationality – this pope's nationality
 * birthplace – this pope's birthplace; rendered at 85% of normal font size
 * ages – ages at start/end of papacy; rendered at 85% of normal font size
 * notes – notes; rendered at 85% of normal font size

The parameter names for this template are not required except when the value includes '='. The positional order is:

When it is necessary to insert an interregnum between the pontificates of two popes, use these parameters:
 * yes – limits the number of parameters supported; sets default values for num, portrait, combines columns 4–7, and darkens the row's background
 * pont – pontificate; date range of this pope's pontificate
 * notes – notes; rendered at 85% of normal font size

Parameter names for this use of the template are not required except for interregnum and when the value includes '='. The positional order is:

yes may be placed anywhere within the template without effecting the interpretation of the positional parameters.

pope list end
is required for each table. The template takes no parameters.

Examples
Typical use:

technical details
This template includes a table caption ( using wikimarkup;  using html markup) for accessibility. The caption is hidden from sighted readers by setting the element's opacity to 0. Because the caption is still present but hidden, the excess blank space between the bottom of the preceding text and the top of the table is reduced by setting the table's top margin to. {{#ifeq:{{SUBPAGENAME}}|sandbox | |