Difference between revisions of "Template:Births and deaths by year for decade"
imported>Pppery (Repetition -> Template:for loop) |
imported>Pppery (Fix expression error) |
||
Line 15: | Line 15: | ||
{{Transclude births|{{{1|}}}0}} | {{Transclude births|{{{1|}}}0}} | ||
}} | }} | ||
− | {{for loop|call=Transclude births|{{{1|}}}1|{{{1|}}}2|{{{1|}}}3|{{{1|}}}4|{{{1|}}}5|{{{1|}}}6|{{{1|}}}7|{{{1|}}}8|{{1|}}}9}} | + | {{for loop| |
+ | |call=Transclude births|{{{1|}}}1|{{{1|}}}2|{{{1|}}}3|{{{1|}}}4|{{{1|}}}5|{{{1|}}}6|{{{1|}}}7|{{{1|}}}8|{{{1|}}}9}} | ||
== Deaths == | == Deaths == | ||
{{transcluding articles | {{transcluding articles | ||
Line 32: | Line 33: | ||
{{Transclude deaths|{{{1|}}}0}} | {{Transclude deaths|{{{1|}}}0}} | ||
}} | }} | ||
− | {{for loop|call=Transclude | + | {{for loop| |
+ | |call=Transclude deaths|{{{1|}}}1|{{{1|}}}2|{{{1|}}}3|{{{1|}}}4|{{{1|}}}5|{{{1|}}}6|{{{1|}}}7|{{{1|}}}8|{{{1|}}}9}} | ||
<noinclude> | <noinclude> | ||
{{documentation |content= | {{documentation |content= |
Revision as of 19:11, 23 June 2017
Births
Template:Transcluding articles
Lua error: expandTemplate: template "Transclude births" does not exist.
Deaths
Template:Transcluding articles
Lua error: expandTemplate: template "Transclude deaths" does not exist.

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:Transcluding articles Template:Transclude births Lua error: expandTemplate: template "Transclude births" does not exist.
Deaths
Template:Transcluding articles Template:Transclude deaths Lua error: expandTemplate: template "Transclude deaths" does not exist.
References
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Subpages of this template. |