Template:Infobox/aged: Difference between revisions
From Halopedia, the Halo wiki
m (Protected "Template:Infobox/aged" ([Edit=Allow only Halopedia staff] (indefinite) [Move=Allow only Halopedia staff] (indefinite))) |
mNo edit summary |
||
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>{{#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> | ||
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> |
Revision as of 13:58, June 10, 2024
This is used by infobox templates to generate age at death/end of service.