Jump to content

Template:Lifespan: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m
ce.
Line 1: Line 1:
<!--Begin {{lifespan}}--><includeonly>{{#switch: {{{brackets|{{{bkt}}}}}}|age|nb=|full|#default=(}}{{#if: {{{birth|{{{b|}}}}}}|{{#if: {{{death|{{{d|}}}}}}|{{#if: {{{err|}}}|{{#ifeq: {{{err}}}|y|{{#if: {{{prefix|{{{pfx|}}}}}}|{{#ifeq: {{{prefix|{{{pfx}}}}}}|y||&#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;Parameter <strong><span style="color:green">age-yrs/ay</span>&#32;</strong>&#32;cannot be used with parameter&#32;<strong><span style="color:green">age-range/ar</span></strong>&#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;}}}}}}{{#ifeq: {{{prefix|{{{pfx}}}}}}|y|{{abbr|b.|born}}&#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|}}}}}}|{{#ifeq: {{{prefix|{{{pfx}}}}}}|y||&#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;Parameter <strong><span style="color:green">age-yrs/ay</span>&#32;</strong>&#32;cannot be used with parameter&#32;<strong><span style="color:green">age-range/ar</span></strong>&#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;}}}}}}{{#ifeq: {{{prefix|{{{pfx}}}}}}|y|{{abbr|b.|born}}&#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}}}}
Line 73: Line 73:
|b-c={{age|-{{{birth|{{{b}}}}}}|2|2|{{{death|{{{d}}}}}}|1|1}}
|b-c={{age|-{{{birth|{{{b}}}}}}|2|2|{{{death|{{{d}}}}}}|1|1}}
|#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||)}}</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={{#time: Y|-10 years}} |err=y}}
{{lifespan |b={{#time: Y|-50 years}} |d={{#time: Y|-10 years}} |err=y}}


Line 189: Line 189:
* Parameter {{bxtn|[[#age-label|age-label]]}} (label for the age component, alias {{bxtn|al}}) requires parameter {{bxtn|age-yrs}} or parameter {{bxtn|age-range}}.
* Parameter {{bxtn|[[#age-label|age-label]]}} (label for the age component, alias {{bxtn|al}}) requires parameter {{bxtn|age-yrs}} or parameter {{bxtn|age-range}}.


Parameter options may have additional specific requirements, constraints and conditions.
Parameters and parameter options may have additional specific requirements, constraints and conditions.


===Description<!--This section is linked from within this page ([[MOS:HEAD]]).-->===
===Description<!--This section is linked from within this page ([[MOS:HEAD]]).-->===
Line 228: Line 228:
====Era suffix====
====Era suffix====


* {{bxtn|{{vanchor|suffix}}}}, alias {{bxtn|sfx}}: Use to display an era suffix, preceded by a [[thin space]], after the date span (i.e. after the last death-year) or, when the span straddles eras, after the birth and death date(s) separately; the implied default era is AD/CE across all dates. See {{em|Note}} [[#!sfx-strad|below]] for an unhandled exception.
* {{bxtn|{{vanchor|suffix}}}}, alias {{bxtn|sfx}}: Use to display an era suffix, preceded by a [[thin space]], after the date span (i.e. after the last death-year) or, when the span straddles eras, after the birth- and death- year(s) separately. The implied default era is AD/CE across all dates. As there is no handling of [[Astronomical year numbering|astronomical dates]] BC/AD suffixes and BCE/CE suffixes display identical date spans. See {{em|Note}} [[#!sfx-strad|below]] for an unhandled exception.
:{{em|Options:}}
:{{em|Options:}}
:{{blist|{{para|suffix|ad|code=y}} or {{para|suffix|ce|code=y}}{{snd}} set to explicitly state the default date span era as "AD" or "CE"; &#91;[[#sfxx1|example]]&#93;
:{{blist|{{para|suffix|ad|code=y}} or {{para|suffix|ce|code=y}}{{snd}} set to explicitly state the default date span era as "AD" or "CE"; &#91;[[#sfxx1|example]]&#93;
Line 234: Line 234:
|{{para|suffix|b-a|code=y}}{{snd}} set when the date span straddles eras and the BC/AD notation is used. The birth-year(s) will be followed by the suffix "BC"; death-year(s) will be followed by suffix "AD"; &#91;[[#sfxx2|example]]&#93;
|{{para|suffix|b-a|code=y}}{{snd}} set when the date span straddles eras and the BC/AD notation is used. The birth-year(s) will be followed by the suffix "BC"; death-year(s) will be followed by suffix "AD"; &#91;[[#sfxx2|example]]&#93;
|{{para|suffix|b-c|code=y}}{{snd}} set when the date span straddles eras and the BCE/CE notation is used. The birth-year(s) will be followed by the suffix "BCE"; death-year(s) will be followed by suffix "CE".}}
|{{para|suffix|b-c|code=y}}{{snd}} set when the date span straddles eras and the BCE/CE notation is used. The birth-year(s) will be followed by the suffix "BCE"; death-year(s) will be followed by suffix "CE".}}
:{{em|Note:|id=!sfx-strad}} Era straddles {{em|between}} birth years or {{em|between}} death years are not handled. For example, the span {{nobr|[ {{xt|10&#8201;BC or 5&#8201;AD{{snd}} 10&#8201;AD}} ]}} cannot be rendered by the template.
:{{em|Note:|id=!sfx-strad}} Era straddles {{em|between}} birth years or {{em|between}} death years are not handled. For example, the span:{{br}}{{spaces|5}}{{nobr|[ {{xt|10&#8201;BC or 5&#8201;AD{{snd}} 10&#8201;AD}} ]}}{{br}}cannot be rendered by the template.


====The age component====
====The age component====


Optional. When used the subject's final age or age range(s) will be auto-calculated, and displayed after the date span (or [[#suffix|the suffix]] if any).{{efn|name=ac}} Also inserted as preceding elements: A comma ( {{bxtn|,}} ) and space, and the editable default static text "aged" as the age component's label; if [[#brackets|the brackets]] are set around only the age component ({{para|brackets|age|plain=y}}) no comma is inserted. The trailing static text "years" is also inserted before [[#brackets|the closing bracket]] or as the last visible template element. When any birth-year is the same as a death-year, the static text "less than a year" will be displayed instead of the numerical age/range boundary. The component requires year values for all date parameters. In certain cases the age result may be ambiguous, undefinable, or impossible, see {{em|Note}} [[#!ac-strad|below]].
Optional, requires all date parameters to have numerical year values. When used the subject's final age or age range(s) will be auto-calculated, and displayed after the date span (or [[#suffix|the suffix]] if any).{{efn|name=ac}} Also inserted as preceding elements: A comma ( {{bxtn|,}} ) and space, and the editable default static text "aged" as the age component's label; if [[#brackets|the brackets]] are set around only the age component ({{para|brackets|age|plain=y}}) no comma is inserted. The trailing static text "years" is also inserted before [[#brackets|the closing bracket]] or as the last visible template element. When any birth-year is the same as a death-year, the static text "less than a year" will be displayed instead of the numerical age/range boundary. The component does not normally handle or display "0" (zero) years; [[Astronomical year numbering|astronomical dates]] are not supported. In certain cases the age result may be ambiguous, undefinable, or impossible, see {{em|Note}} [[#!ac-strad|below]].


* {{bxtn|{{vanchor|age-label}}}}, alias {{bxtn|al}}: Label for the age component. Requires one of parameters {{bxtn|age-range}} or {{bxtn|age-yrs}}. Any or none of the options below may be selected; non-valid input is silently ignored. If error-handling parameter {{bxtn|[[#err|err]]}} is used relevant messages will be displayed when in error.
* {{bxtn|{{vanchor|age-label}}}}, alias {{bxtn|al}}: Label for the age component. Requires one of parameters {{bxtn|age-range}} or {{bxtn|age-yrs}}. Any or none of the options below may be selected; non-valid input is silently ignored. If error-handling parameter {{bxtn|[[#err|err]]}} is used relevant messages will be displayed when in error.
Line 252: Line 252:
|The static text "less than a year" will be displayed as the minimum range value when alternative years are included and any death/end year is the same as any birth/start year (subject to date parameter constraints); when there are no alternative years the text will display as the only range value; &#91;[[#alx|example]]&#93;}}
|The static text "less than a year" will be displayed as the minimum range value when alternative years are included and any death/end year is the same as any birth/start year (subject to date parameter constraints); when there are no alternative years the text will display as the only range value; &#91;[[#alx|example]]&#93;}}
:{{em|Note:|id=!ac-strad}} When the date span(s) have [[#suffix|suffixes]] that straddle eras (BC-to-AD or BCE-to-CE) {{em|and}} parameter {{para|or|both|plain=y}}, the range may not be correctly rendered. For example, the lifespans below fail both the range calculation and [[#Date spans: birth- and death-year, alternative birth- and death-year|the constraints]] of date parameters:
:{{em|Note:|id=!ac-strad}} When the date span(s) have [[#suffix|suffixes]] that straddle eras (BC-to-AD or BCE-to-CE) {{em|and}} parameter {{para|or|both|plain=y}}, the range may not be correctly rendered. For example, the lifespans below fail both the range calculation and [[#Date spans: birth- and death-year, alternative birth- and death-year|the constraints]] of date parameters:
**<code><nowiki>{{lifespan|b=10|d=5|or=both|b2=15|d2=15|sfx=b-a|ar=y}}</nowiki></code>
::{{blist|<code><nowiki>{{lifespan|b=10|d=5|</nowiki>{{!bxt|1=or=both}}<nowiki>|b2=15|d2=15|</nowiki>{{!bxt|1=sfx=b-a}}<nowiki>|ar=y}}</nowiki></code>{{br}}{{spaces|5}}{{!xt|{{lifespan|b=10|d=5|or=both|b2=15|d2=15|sfx=b-a|ar=y}}}}
::{{!xt|{{lifespan|b=10|d=5|or=both|b2=15|d2=15|sfx=b-a|ar=y}}}}
|<code><nowiki>{{lifespan|b=10|d=5|</nowiki>{{!bxt|1=or=both}}<nowiki>|b2=15|d2=20|</nowiki>{{!bxt|1=sfx=b-a}}<nowiki>|ar=y}}</nowiki></code>{{br}}{{spaces|5}}{{!xt|{{lifespan|b=10|d=5|or=both|b2=15|d2=20|sfx=b-a|ar=y}}}}}}
**<code><nowiki>{{lifespan|b=10|d=5|or=both|b2=15|d2=20|sfx=b-a|ar=y}}</nowiki></code>
::{{!xt|{{lifespan|b=10|d=5|or=both|b2=15|d2=20|sfx=b-a|ar=y}}}}


* {{bxtn|{{vanchor|age-yrs}}}}, alias {{bxtn|ay}}: Use when the subject's exact or circa age is known. Select one of the options below; any other input will be ignored, or will produce an error message if error-handling parameter {{bxtn|[[#err|err]]}} is used. Cannot be used with parameter {{bxtn|[[#or|or]]}}. This parameter and parameter {{bxtn|age-range}} are mutually exclusive; &#91;[[#!ay-nc|example]]&#93;
* {{bxtn|{{vanchor|age-yrs}}}}, alias {{bxtn|ay}}: Use when the subject's exact or circa age is known. Select one of the options below; any other input will be ignored, or will produce an error message if error-handling parameter {{bxtn|[[#err|err]]}} is used. Cannot be used with parameter {{bxtn|[[#or|or]]}}. This parameter and parameter {{bxtn|age-range}} are mutually exclusive; &#91;[[#!ay-nc|example]]&#93;

Revision as of 17:14, 16 December 2024

(⁠1975–2015⁠)