Template:Infobox person: Difference between revisions
Added omni-case fallback parameter support (e.g. Education vs education), and integrated missing Residence and Birth Date attributes |
Restored parameter hierarchy prioritizing strictly Capitalized properties to match VisualEditor output exactly. |
||
| Line 1: | Line 1: | ||
{| class="infobox biography vcard" style="width:25em; text-align:left; font-size:90%; border:1px solid #aaa; background:#f9f9f9; float:right; margin:0 0 1em 1em; clear:right; border-collapse:collapse;" | {| class="infobox biography vcard" style="width:25em; text-align:left; font-size:90%; border:1px solid #aaa; background:#f9f9f9; float:right; margin:0 0 1em 1em; clear:right; border-collapse:collapse;" | ||
! colspan="2" style="font-size:125%; font-weight:bold; background-color:#f8f9fa; color:#000; padding:8px 5px; text-align:center;" class="fn" | {{{name|{{{Name|{{PAGENAME}}}}}}}}{{#if:{{{verified|{{{Verified|}}}}}}| <span class="verified-badge"></span>}} | ! colspan="2" style="font-size:125%; font-weight:bold; background-color:#f8f9fa; color:#000; padding:8px 5px; text-align:center;" class="fn" | {{{name|{{{Name|{{PAGENAME}}}}}}}}}{{#if:{{{verified|{{{Verified|}}}}}}| <span class="verified-badge"></span>}} | ||
|- | |- | ||
{{#if:{{{image|{{{Image|}}}}}}| | {{#if:{{{image|{{{Image|}}}}}}| | ||
| Line 25: | Line 25: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{Residence|{{{residence|}}}}}}| | ||
! style="background:#e8e8e8; padding:6px 8px; width:35%; border-bottom:1px solid #ddd;" {{!}} Residence | ! style="background:#e8e8e8; padding:6px 8px; width:35%; border-bottom:1px solid #ddd;" {{!}} Residence | ||
{{!}} style="padding:6px 8px; border-bottom:1px solid #ddd;" {{!}} {{{ | {{!}} style="padding:6px 8px; border-bottom:1px solid #ddd;" {{!}} {{{Residence|{{{residence}}}}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 35: | Line 35: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{Education|{{{education|}}}}}}| | ||
! style="background:#e8e8e8; padding:6px 8px; width:35%; border-bottom:1px solid #ddd;" {{!}} Education | ! style="background:#e8e8e8; padding:6px 8px; width:35%; border-bottom:1px solid #ddd;" {{!}} Education | ||
{{!}} style="padding:6px 8px; border-bottom:1px solid #ddd;" {{!}} {{{ | {{!}} style="padding:6px 8px; border-bottom:1px solid #ddd;" {{!}} {{{Education|{{{education}}}}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{Occupation|{{{occupation|}}}}}}| | ||
! style="background:#e8e8e8; padding:6px 8px; width:35%; border-bottom:1px solid #ddd;" {{!}} Occupation | ! style="background:#e8e8e8; padding:6px 8px; width:35%; border-bottom:1px solid #ddd;" {{!}} Occupation | ||
{{!}} style="padding:6px 8px; border-bottom:1px solid #ddd;" {{!}} {{{ | {{!}} style="padding:6px 8px; border-bottom:1px solid #ddd;" {{!}} {{{Occupation|{{{occupation}}}}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 50: | Line 50: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{Industry|{{{industry|}}}}}}| | ||
! style="background:#e8e8e8; padding:6px 8px; width:35%; border-bottom:1px solid #ddd;" {{!}} Industry | ! style="background:#e8e8e8; padding:6px 8px; width:35%; border-bottom:1px solid #ddd;" {{!}} Industry | ||
{{!}} style="padding:6px 8px; border-bottom:1px solid #ddd;" {{!}} {{{ | {{!}} style="padding:6px 8px; border-bottom:1px solid #ddd;" {{!}} {{{Industry|{{{industry}}}}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||