Template:Infobox/aged: Difference between revisions

From Halopedia, the Halo wiki

(Created page with "<includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#iferror:{{age|{{#sub:{{{1}}}|{{#expr:{{#pos:{{{1}}}|{{!}}}} + 1}}|{{#expr:{{#pos:{{{1}}}|]}} - {{#pos:{{{1}}}|{{!}}}} - 1}}}}|{{#sub:{{{2}}}|{{#expr:{{#pos:{{{2}}}|{{!}}}} + 1}}|{{#expr:{{#pos:{{{2}}}|]}} - {{#pos:{{{2}}}|{{!}}}} - 1}}}}}}||(aged {{age|{{#sub:{{{1}}}|{{#expr:{{#pos:{{{1}}}|{{!}}}} + 1}}|{{#expr:{{#pos:{{{1}}}|]}} - {{#pos:{{{1}}}|{{!}}}} - 1}}}}|{{#sub:{{{2}}}|{{#expr:{{#pos:{{{2}}}|{{!}}}} + 1}}|{{#expr:{{#p...")
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{#if:{{{2|}}}|{{#iferror:{{age|{{#sub:{{{1}}}|{{#expr:{{#pos:{{{1}}}|{{!}}}} + 1}}|{{#expr:{{#pos:{{{1}}}|]}} - {{#pos:{{{1}}}|{{!}}}} - 1}}}}|{{#sub:{{{2}}}|{{#expr:{{#pos:{{{2}}}|{{!}}}} + 1}}|{{#expr:{{#pos:{{{2}}}|]}} - {{#pos:{{{2}}}|{{!}}}} - 1}}}}}}||(aged {{age|{{#sub:{{{1}}}|{{#expr:{{#pos:{{{1}}}|{{!}}}} + 1}}|{{#expr:{{#pos:{{{1}}}|]}} - {{#pos:{{{1}}}|{{!}}}} - 1}}}}|{{#sub:{{{2}}}|{{#expr:{{#pos:{{{2}}}|{{!}}}} + 1}}|{{#expr:{{#pos:{{{2}}}|]}} - {{#pos:{{{2}}}|{{!}}}} - 1}}}}}})}}}}}}}</includeonly><noinclude>
<includeonly>{{#if:{{#rmatch:{{{1}}}|\{{!}}([\w ,]+)\]\]|$1}}|{{#if:{{#rmatch:{{{2}}}|\{{!}}([\w ,]+)\]\]|$1}}|{{#iferror:{{age|{{#rmatch:{{{1}}}|\{{!}}([\w ,]+)\]\]|$1}}|{{#rmatch:{{{2}}}|\{{!}}([\w ,]+)\]\]|$1}}}}||{{#ifexpr:{{age|{{#rmatch:{{{1}}}|\{{!}}([\w ,]+)\]\]|$1}}|{{#rmatch:{{{2}}}|\{{!}}([\w ,]+)\]\]|$1}}}}|(aged {{age|{{#rmatch:{{{1}}}|\{{!}}([\w ,]+)\]\]|$1}}|{{#rmatch:{{{2}}}|\{{!}}([\w ,]+)\]\]|$1}}}})}}}}}}}}</includeonly><noinclude>
This is used by infobox templates to generate age at death/end of service.
This is used by infobox templates to generate age at death/end of service.


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Latest revision as of 09:38, October 3, 2024

This is used by infobox templates to generate age at death/end of service.