Template:Character Details/age: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>Part of Template:Character Details.</noinclude><includeonly><td>{{#if:{{{age|}}}|{{{age}}}|Characters by Age#Unknown|{{{approx...")
 
(Fix broken error checking)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Part of [[Template:Character Details]].</noinclude><includeonly><td>{{#if:{{{age|}}}|[[Characters by Age#{{{age}}}|{{{age}}}]]|[[Characters by Age#Unknown|{{{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|}}})}}</td></includeonly>
{{#if:{{{agenote|}}}{{{approxage|}}}|({{#if:{{{approxage|}}}|estimated{{#if:{{{agenote|}}}|<nowiki>; </nowiki>}}}}{{{agenote|}}})}}{{#if:{{{age|}}}|{{#iferror:{{#expr: {{{age}}} + 0}}|<span class='error'>Error: age= must be an exact age, or use A approxage= instead</span>|{{#iferror:{{#expr: {{{age}}} < 0}}|<span class='error'>Error: age= must be an exact age, or use B approxage= instead</span>|}}}}}}</td></includeonly>

Latest revision as of 02:41, 29 May 2023