Difference between revisions of "Template:Births and deaths by year for decade/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Wugapodes
(no need for looping templates)
imported>Certes
(Sync, rudely overwriting tests by User:Wugapodes. Please revert if still needed.)
Line 1: Line 1:
== Births ==
+
{{for nowiki|
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}1|0|y}} ===
+
|<nowiki>== {{ucfirst:{{{1}}}}} ==
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}1|0|y}}|Births}}
+
{{preprocess|{{((}}transcluding articles
 
+
  {{!}} {{#ifeq:{{{year}}}|0|{{void|There is no AD year 0}}|{{dr|y|y|{{{year}}}0|0|n{{#ifexpr:{{{year}}}<=10|a}}}}}}
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}2|0|y}} ===
+
  {{!}} {{for loop|{{!}}|call=dr|pc1n=1|pc1v=y|pc2n=2|pc2v=y|pc3n=3|pc3v={{{year}}}0|pc4n=5|pc4v={{#ifexpr:{{{year}}}<10|na|n}}|pv=4|1|2|3|4|5|6|7|8|9}}
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}2|0|y}}|Births}}
+
{{))}}}}
 
+
{{#ifeq:{{{year}}}|0|{{void|There is no AD year 0}}|
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}3|0|y}} ===
+
{{Transclude {{{1}}}|{{{year}}}0}}
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}3|0|y}}|Births}}
+
}}
 
+
{{for loop|
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}4|0|y}} ===
+
|call=Transclude {{{1}}}|{{{year}}}1|{{{year}}}2|{{{year}}}3|{{{year}}}4|{{{year}}}5|{{{year}}}6|{{{year}}}7|{{{year}}}8|{{{year}}}9}}
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}4|0|y}}|Births}}
+
</nowiki>|births|deaths|year={{{1|0}}}}}
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}5|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}5|0|y}}|Births}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}6|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}6|0|y}}|Births}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}7|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}7|0|y}}|Births}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}8|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}8|0|y}}|Births}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}9|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}9|0|y}}|Births}}
 
 
 
===AD {{dr-logno|{{#expr:{{{decade|{{{1|0}}}}}}+1}}0|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{#expr:{{{decade|{{{1|0}}}}}}+1}}0|0|y}}|Births}}
 
 
 
== Deaths ==
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}1|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}1|0|y}}|Deaths}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}2|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}2|0|y}}|Deaths}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}3|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}3|0|y}}|Deaths}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}4|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}4|0|y}}|Deaths}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}5|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}5|0|y}}|Deaths}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}6|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}6|0|y}}|Deaths}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}7|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}7|0|y}}|Deaths}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}8|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}8|0|y}}|Deaths}}
 
 
 
===AD {{dr-logno|{{{decade|{{{1|0}}}}}}9|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{{decade|{{{1|0}}}}}}9|0|y}}|Deaths}}
 
 
 
===AD {{dr-logno|{{#expr:{{{decade|{{{1|0}}}}}}+1}}0|0|y}} ===
 
{{#section-h:AD {{dr-logno|{{#expr:{{{decade|{{{1|0}}}}}}+1}}0|0|y}}|Deaths}}
 
 
<noinclude>
 
<noinclude>
 
{{documentation |content=
 
{{documentation |content=

Revision as of 11:45, 21 September 2019

Births

Template:Preprocess

Lua error: expandTemplate: template "Transclude births" does not exist.

Deaths

Template:Preprocess

Lua error: expandTemplate: template "Transclude deaths" does not exist.


Template documentation

Usage

Invoked with a decade as single argument, for example {{Transclude deaths|82}} for the 820s, the template compiles the list of births and deaths from each year article of the decade, by transcluding their "Births" and "Deaths" sections. Empty or non-existent sections are not transcluded. Year numbers are prepended to the transcluded contents with bold pseudo-headers, in order to avoid overloading the transcluding page's table of contents.

Negative years use the BC suffix, years 1–100 use the AD prefix, and years above 100 use the plain year number.

Example: the 70s AD

Births

Template:Preprocess Template:Transclude births Lua error: expandTemplate: template "Transclude births" does not exist.

Deaths

Template:Preprocess Template:Transclude deaths Lua error: expandTemplate: template "Transclude deaths" does not exist.

References