Jump to content

Template:Lifespan: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Undid revision 1265355351 by 98.7.84.118 (talk) self-rvt
fix
Line 1: Line 1:
<!--Begin {{lifespan}}--><includeonly>{{#switch: {{{brackets|{{{bkt}}}}}}|age|nb=|full|#default=(&#8288;}}{{#if: {{{birth|{{{b|}}}}}}|{{#if: {{{death|{{{d|}}}}}}|{{#if: {{{err|}}}|{{#ifeq: {{{err}}}|y|{{#if: {{{prefix|{{{pfx|}}}}}}|{{#switch: {{{prefix|{{{pfx}}}}}}|y|tt|nt=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">prefix/pfx</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#prefix|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{ca|}}}|{{#switch: {{{ca}}}|born|died|both=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">ca</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#ca|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{or|}}}|{{#switch: {{{or}}}|born|died|both=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">or</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#or|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{suffix|{{{sfx|}}}}}}|{{#switch: {{{suffix|{{{sfx}}}}}}|ad|b-a|b-c|ce|bc|bce=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">suffix/sfx</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#suffix|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{age-label|{{{al|}}}}}}|{{#if: {{{age-range|{{{ar|}}}}}}||{{#if: {{{age-yrs|{{{ay|}}}}}}||&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter <strong><span style="color:green">age-label/al</span>&#32;</strong>&#32;requires parameter&#32;<strong><span style="color:green">age-range/ar</span></strong> or parameter <strong><span style="color:green">age-year/ay</span></strong>&#32;&#91;&#8288;[[Template:Lifespan#age-label|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#switch: {{{age-label|{{{al}}}}}}|nl|nolabel|aged|dur|duration=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">age-label/al</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#age-label|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{age-range|{{{ar|}}}}}}|{{#ifeq: {{{age-range|{{{ar}}}}}}|y||&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">age-range/ar</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#age-range|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{age-yrs|{{{ay|}}}}}}|{{#if: {{{or|}}}|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter <strong><span style="color:green">age-yrs/ay</span>&#32;</strong>&#32;cannot be used with parameter&#32;<strong><span style="color:green">or</span></strong>&#32;&#91;&#8288;[[Template:Lifespan#age-yrs|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}{{#if: {{{age-range|{{{ar|}}}}}}|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameters <strong><span style="color:green">age-yrs/ay</span>&#32;</strong>&#32;and&#32;<strong><span style="color:green">age-range/ar</span></strong>&#32;are mutually exclusive&#32;&#91;&#8288;[[Template:Lifespan#age-yrs|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}{{#switch: {{{age-yrs|{{{ay}}}}}}|abd|bbd=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">age-yrs/ay</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#age-yrs|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{label|{{{l|}}}}}}|{{#switch: {{{label|{{{l}}}}}}|lc|uc=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">label/l</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#label|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">err</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#err|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{label|{{{l|}}}}}}|{{#if: {{{prefix|{{{pfx|}}}}}}|{{#ifeq: {{{err}}}|y|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter <strong><span style="color:green">label/l</span>&#32;</strong>&#32;cannot be used with parameter&#32;<strong><span style="color:green">prefix/pfx</span></strong>&#32;&#91;&#8288;[[Template:Lifespan#label|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}|{{#switch: {{{label|{{{l|}}}}}}|lc=lifespan:&#160;|uc=Lifespan:&#160;}}}}}}{{#switch: {{{prefix|{{{pfx}}}}}}|y|tt={{abbr|b.|born}}&#8201;|nt=b.&#8201;}}{{#switch: {{{ca}}}
<!--Begin {{lifespan}}--><includeonly>{{#switch: {{{brackets|{{{bkt}}}}}}|age|nb=|full|#default=(&#8288;}}{{#if: {{{birth|{{{b|}}}}}}|{{#if: {{{death|{{{d|}}}}}}|{{#if: {{{err|}}}|{{#ifeq: {{{err}}}|y|{{#if: {{{prefix|{{{pfx|}}}}}}|{{#switch: {{{prefix|{{{pfx}}}}}}|y|tt|nt=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">prefix/pfx</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#prefix|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{ca|}}}|{{#switch: {{{ca}}}|born|died|both=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">ca</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#ca|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}{{#switch: {{{YV}}}|{{#ifeq: {{{birth|{{{b}}}}}}|{{YEAR|{{padleft:{{{birth|{{{b}}}}}}|4|0}}}}||&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">ca</span></strong>&#32;requires numerical birth/death year-value&#32;&#91;&#8288;[[Template:Lifespan#ca|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}|{{#ifeq: {{{death|{{{d}}}}}}|{{YEAR|{{padleft:{{{death|{{{d}}}}}}|4|0}}}}||&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">ca</span></strong>&#32;requires numerical birth/death year-value&#32;&#91;&#8288;[[Template:Lifespan#ca|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}}}{{#if: {{{or|}}}|{{#switch: {{{or}}}|born|died|both=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">or</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#or|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{suffix|{{{sfx|}}}}}}|{{#switch: {{{suffix|{{{sfx}}}}}}|ad|b-a|b-c|ce|bc|bce=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">suffix/sfx</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#suffix|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{age-label|{{{al|}}}}}}|{{#if: {{{age-range|{{{ar|}}}}}}||{{#if: {{{age-yrs|{{{ay|}}}}}}||&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter <strong><span style="color:green">age-label/al</span>&#32;</strong>&#32;requires parameter&#32;<strong><span style="color:green">age-range/ar</span></strong> or parameter <strong><span style="color:green">age-year/ay</span></strong>&#32;&#91;&#8288;[[Template:Lifespan#age-label|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#switch: {{{age-label|{{{al}}}}}}|nl|nolabel|aged|dur|duration=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">age-label/al</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#age-label|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{age-range|{{{ar|}}}}}}|{{#ifeq: {{{age-range|{{{ar}}}}}}|y||&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">age-range/ar</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#age-range|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{age-yrs|{{{ay|}}}}}}|{{#if: {{{or|}}}|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter <strong><span style="color:green">age-yrs/ay</span>&#32;</strong>&#32;cannot be used with parameter&#32;<strong><span style="color:green">or</span></strong>&#32;&#91;&#8288;[[Template:Lifespan#age-yrs|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}{{#if: {{{age-range|{{{ar|}}}}}}|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameters <strong><span style="color:green">age-yrs/ay</span>&#32;</strong>&#32;and&#32;<strong><span style="color:green">age-range/ar</span></strong>&#32;are mutually exclusive&#32;&#91;&#8288;[[Template:Lifespan#age-yrs|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}{{#switch: {{{age-yrs|{{{ay}}}}}}|abd|bbd=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">age-yrs/ay</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#age-yrs|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{label|{{{l|}}}}}}|{{#switch: {{{label|{{{l}}}}}}|lc|uc=|#default=&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">label/l</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#label|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter&#32;<strong><span style="color:green">err</span></strong>&#32;has invalid value&#32;&#91;&#8288;[[Template:Lifespan#err|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}}}{{#if: {{{label|{{{l|}}}}}}|{{#if: {{{prefix|{{{pfx|}}}}}}|{{#ifeq: {{{err}}}|y|&#32;<span style="color:red"><strong>!</strong>&#160;{{tlx|lifespan}}:&#32;Parameter <strong><span style="color:green">label/l</span>&#32;</strong>&#32;cannot be used with parameter&#32;<strong><span style="color:green">prefix/pfx</span></strong>&#32;&#91;&#8288;[[Template:Lifespan#label|info]]&#8288;&#93;&#160;<strong>!</strong></span>&#32;}}|{{#switch: {{{label|{{{l|}}}}}}|lc=lifespan:&#160;|uc=Lifespan:&#160;}}}}}}{{#switch: {{{prefix|{{{pfx}}}}}}|y|tt={{abbr|b.|born}}&#8201;|nt=b.&#8201;}}{{#switch: {{{ca}}}
|born|both={{#ifeq: {{{birth|{{{b}}}}}}|{{YEAR|{{padleft:{{{birth|{{{b}}}}}}|4|0}}}}|{{circa}}&#8201;}}}}{{#switch: {{{birth|{{{b}}}}}}
|born|both={{#ifeq: {{{birth|{{{b}}}}}}|{{YEAR|{{padleft:{{{birth|{{{b}}}}}}|4|0}}}}|{{circa}}&#8201;}}}}{{#switch: {{{birth|{{{b}}}}}}
|{{YEAR|{{padleft:{{{birth|{{{b}}}}}}|4|0}}}}
|{{YEAR|{{padleft:{{{birth|{{{b}}}}}}|4|0}}}}

Revision as of 14:37, 26 December 2024

(⁠1975–2015⁠)