Difference between revisions of "Template:Born and died list"

From blackwiki
Jump to navigation Jump to search
imported>Ravenpuff
(Add a thin margin above list to match the gap between OTD observances and items)
imported>Howcheng
(copy from sandbox)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{hlist |style=margin-top: 0.5em;| {{{1}}} ({{#switch: {{{2}}} |b={{abbr|b.|born}} |d={{abbr|d.|died}}}} {{{3}}}) | {{{4}}} ({{#switch: {{{5}}} |b={{abbr|b.|born}} |d={{abbr|d.|died}}}} {{{6}}})| {{{7}}} ({{#switch: {{{8}}} |b={{abbr|b.|born}} |d={{abbr|d.|died}}}} {{{9}}}) }}
+
{{hlist|style=margin-top: 0.5em;|{{{1}}} ({{SelAnnivAbbr|{{{2}}}|{{{3}}}}})|{{#if: {{{4|}}}|{{{4}}} ({{SelAnnivAbbr|{{{5}}}|{{{6}}}}})|}}|{{#if: {{{7|}}}|{{{7}}} ({{SelAnnivAbbr|{{{8}}}|{{{9}}}}})}}}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Latest revision as of 18:03, 15 August 2020

50px Template documentation[view] [edit] [history] [purge]

This template properly formats the list of births and deaths at Selected anniversaries templates for the Main Page.

Usage

This template accepts 9 unnamed parameters, three groups of a link to the article in bold, an abbreviation for event on this date, and the year of the event.

{{Born and died list| '''[[ARTICLENAME]]''' | ABBREVIATION | YEAR | '''[[ARTICLENAME]]''' | ABBREVIATION | YEAR | '''[[ARTICLENAME]]''' | ABBREVIATION | YEAR }}
|Abbreviation|Year(s)| Resulting output
|b|1985| Template:SelAnnivAbbr
|b.or|1085; 1086| Template:SelAnnivAbbr/sandbox
|d|2020| Template:SelAnnivAbbr
|d.or|1085; 1086| Template:SelAnnivAbbr/sandbox
|dis|2020| Template:SelAnnivAbbr
|bur|2020| Template:SelAnnivAbbr
|int|2020| Template:SelAnnivAbbr
|bd|1985; 2020| Template:SelAnnivAbbr

Example

{{Born and died list | '''[[Abu Taghlib]]''' |d|979| '''[[Oliver Wendell Holmes Sr.]]''' |b|1809| '''[[Ingrid Bergman]]''' |bd|1915; 1982}}