Jump to content

User:YBG/Living officeholders row/doc

From Wikipedia, the free encyclopedia

Note This describes a userspace draft intended to be implemented as {{Living officeholders row}} and subtemplates. I am no longer working on this version, instead I'm working on an alternative implementation, see {{User:YBG/Living officeholders}}, intended to be implemented as {{Living officeholders}}

Usage[edit]

{{ Living officeholders row | Job=<job> | fmt=<fmt> | evt1=<evt1> | evt2=<evt2> | <#1> | <#2> | ... | <#10> }}

where

  • |job= specifies the office to facilitate looking up the correct data.
    = us-p, usvp for rows in tables in the articles about the Living presidents and vice presidents of the United States.
    = aupm, sepm, nzpm, ukpm (not yet implemented) for the Living prime ministers of Australia, New Zealand, Sweden, and the UK.
  • |fmt=: specifies the date format
  • |evt1=: positive (negative) number for an accession (death) at the start of the period
  • |evt2=: positive (negative) number for an accession (death) at the end of the period (optional, defaults to today)
  • |ev1a=, |ev2a=: (optional) positive number for the mid-term accession following death of an officeholder
  • |span=: (optional) text to override the calculated time span; used for the first of the two July 4, 1826 deaths
  • |1=, |2=, ... |10=: optionally signed numbers representing officeholders alive during the period

Overview of pages[edit]

The pages involved in this system include:

  1. The generic template and subtemplates (update when changing format):
    {{User:YBG/Living officeholders row}}
    {{User:YBG/Living officeholders row/box}}
    {{User:YBG/Living officeholders row/plusminus}}
  2. The office-specific data template (update when officeholder data changes):
    {{User:YBG/Living officeholders row/us-p}}
    {{User:YBG/Living officeholders row/usvp}}
  3. The article space pages (update when officeholder data changes):
    Living presidents of the United States
    Living vice presidents of the United States

Maintenance[edit]

Here are general instructions for each anticipated type of maintenance activity:

  1. A Living officeholder (#N) dies
    • Modify {{.../<office>}} by adding the death date and description
    • Modify [[Living <officeholder>s]] by adding |evt2=-N to the last row and then appending a new row with |evt1=-N
  2. A new officeholder (#N) assumes office
    • Modify {{.../<office>}} by adding a new block for the new officeholder
    • Modify [[Living <officeholder>s]] by adding |evt2=+N to the last row and then appending a new row with |evt1=+N
  3. Expand the system for a new type of officeholder
    • Create {{.../<office>}} for the new office with name and event information for all officeholders
    • Modify {{.../testcases}} by adding a new section to display all of the data for the new office type.
    • Create or modify the page in article space [[Living <officeholder>s]] for the new office with general information plus the header, footer and one call to {{User:YBG/Living officeholders row}} for each chronological period
  4. Modify the format of all templates
  5. Modify the colors or style of the officeholder boxes
  6. Implement an idiosyncratic format for some but not all offices

Structure[edit]

This system of subtemplates includes: