Jump to content

Template:Lifespan: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
simplify error condition/msg; trap additional errors w. custom messaging.
rm. test cases
Line 74: Line 74:
|#default={{age|{{{birth|{{{b}}}}}}|2|2|{{{death|{{{d}}}}}}|1|1}}
|#default={{age|{{{birth|{{{b}}}}}}|2|2|{{{death|{{{d}}}}}}|1|1}}
}}}}&#160;years}}}}}}}}|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter <strong><span style="color:green">death/d</span></strong>&#32;is missing, mislabeled, or empty&#32;&#91;&#8288;[[Template:Lifespan#death|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;<!--[[Category:Template Lifespan errors|{{FULLPAGENAME}}]]-->}}|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter <strong><span style="color:green">birth/b</span></strong>&#32;is missing, mislabeled, or empty&#32;&#91;&#8288;[[Template:Lifespan#birth|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;<!--[[Category:Template Lifespan errors|{{FULLPAGENAME}}]]-->}}{{#ifeq: {{{brackets|{{{bkt}}}}}}|nb||&#8288;)}}</includeonly><!--End {{lifespan}}--><noinclude>
}}}}&#160;years}}}}}}}}|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter <strong><span style="color:green">death/d</span></strong>&#32;is missing, mislabeled, or empty&#32;&#91;&#8288;[[Template:Lifespan#death|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;<!--[[Category:Template Lifespan errors|{{FULLPAGENAME}}]]-->}}|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter <strong><span style="color:green">birth/b</span></strong>&#32;is missing, mislabeled, or empty&#32;&#91;&#8288;[[Template:Lifespan#birth|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;<!--[[Category:Template Lifespan errors|{{FULLPAGENAME}}]]-->}}{{#ifeq: {{{brackets|{{{bkt}}}}}}|nb||&#8288;)}}</includeonly><!--End {{lifespan}}--><noinclude>
{{lifespan |b={{#time: Y|-50 years}} |d=uncertain |ay=abd |err=y}}

{{lifespan |b={{#time: Y|-50 years}} |d=uncertain |ay=bbd |err=y}}

{{lifespan |b={{#time: Y|-50 years}} |d=uncertain |ay=bbd |sfx=ad |err=y}}

{{lifespan |b={{#time: Y|-50 years}} |d={{#time: Y|-10 years}} |ay=bbd |sfx=ad |err=y}}

{{lifespan |b={{#time: Y|-50 years}} |d=uncertain |ar=y |err=y}}

{{lifespan |b={{#time: Y|-50 years}} |d=uncertain |ar=y |sfx=ad |err=y}}

{{lifespan |b={{#time: Y|-50 years}} |d={{#time: Y|-10 years}} |ar=y |sfx=ad |err=y}}

{{lifespan |b={{#time: Y|-50 years}} |d=uncertain |ca=died |err=y}}

{{lifespan |b={{#time: Y|-50 years}} |d=uncertain |ca=born |err=y}}

{{lifespan |b={{#time: Y|-50 years}} |d={{#time: Y|-10 years}} |err=y}}<noinclude>
{{lifespan |b={{#time: Y|-50 years}} |d={{#time: Y|-10 years}} |err=y}}<noinclude>
{{documentation}}
{{documentation}}

Revision as of 22:40, 26 December 2024

(⁠1975–2015⁠)