Template:Character Details/age: Difference between revisions
Jump to navigation
Jump to search
(Make it an error to set age= to something other than a number) |
(The error case didn't spot age ranges so add a second check for that) |
||
Line 1: | Line 1: | ||
<noinclude>Part of [[Template:Character Details]].</noinclude><includeonly><td colspan="{{{colspan|1}}}">{{#if:{{{age|}}}|[[Characters by Age#{{{age}}}|{{{age}}}]]|[[Characters by Age#Unknown|{{#if:{{{approxage|}}}|{{{approxage}}}|Unknown}}]]}} | <noinclude>Part of [[Template:Character Details]].</noinclude><includeonly><td colspan="{{{colspan|1}}}">{{#if:{{{age|}}}|[[Characters by Age#{{{age}}}|{{{age}}}]]|[[Characters by Age#Unknown|{{#if:{{{approxage|}}}|{{{approxage}}}|Unknown}}]]}} | ||
{{#if:{{{agenote|}}}{{{approxage|}}}|({{#if:{{{approxage|}}}|estimated{{#if:{{{agenote|}}}|<nowiki>; </nowiki>}}}}{{{agenote|}}})}}{{#iferror:{{#expr: {{{age}}} + 0}}|<span class='error'>Error: age= must be an exact age, or use approxage= instead</span>}}</td></includeonly> | {{#if:{{{agenote|}}}{{{approxage|}}}|({{#if:{{{approxage|}}}|estimated{{#if:{{{agenote|}}}|<nowiki>; </nowiki>}}}}{{{agenote|}}})}}{{#iferror:{{#expr: {{{age}}} + 0}}|<span class='error'>Error: age= must be an exact age, or use approxage= instead</span>}}{{#if:{{#expr: {{{age}}} < 0|<span class='error'>Error: age= must be an exact age, or use approxage= instead</span>}}</td></includeonly> |
Revision as of 14:03, 25 May 2023
Part of Template:Character Details.