Template:Infobox-person: Difference between revisions
SGPolitico (talk | contribs) No edit summary |
SGPolitico (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<div | <div style="float: right; clear: right; width: 300px; margin-left: 1em; margin-bottom: 1em; border: 1px solid #a2a9b1; background: #f8f9fa;"> | ||
{| class="wikitable" style="width: 100%; margin: 0;" | |||
{| style="width: 100%;" | |+ style="background-color: #eaf3ff; border: 1px solid #a2a9b1; padding: 5px; font-weight: bold;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} | ||
|+ style=" | |- | ||
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}| [[File:{{{image}}}|250px|center]] | [[File:Portrait_placeholder.png|200px|center]] }} | |||
{{#if:{{{image|}}}| [[File:{{{image}}}|250px|center]] | [[File:Portrait_placeholder.png| | |||
|- | |- | ||
! scope="row" style="text-align: left; width: 40% | ! scope="row" style="text-align: left; background: #f2f2f2; width: 40%;" | Party | ||
| {{#if:{{{politicalparty|}}} | {{#switch:{{{politicalparty}}} | |||
| PAP='''PAP''' [[file:PAP logo.png|25px | | PAP='''PAP''' [[file:PAP logo.png|25px]][[Category:PAP]] | ||
| WP='''WP''' [[file:WP logo.png|25px | | WP='''WP''' [[file:WP logo.png|25px]][[Category:WP]] | ||
| PSP='''PSP''' [[file:PSP_logo.png|25px | | PSP='''PSP''' [[file:PSP_logo.png|25px]][[Category:PSP]] | ||
| RP='''RP''' [[file:RP logo.png|25px | | RP='''RP''' [[file:RP logo.png|25px]][[Category:RP]] | ||
| SPP='''SPP''' [[file:SPP-Logo.png|25px | | SPP='''SPP''' [[file:SPP-Logo.png|25px]][[Category:SPP]] | ||
| SDP= '''SDP''' [[file:SDP logo.png|25px | | SDP= '''SDP''' [[file:SDP logo.png|25px]][[Category:SDP]] | ||
| PV='''PV''' [[file:PV-logo.png|25px | | PV='''PV''' [[file:PV-logo.png|25px]][[Category:PV]] | ||
| RDU='''RDU''' [[file:RDU-logo.png|25px | | RDU='''RDU''' [[file:RDU-logo.png|25px]][[Category:RDU]] | ||
| SDA='''SDA''' [[file:SDA logo.png|25px | | SDA='''SDA''' [[file:SDA logo.png|25px]][[Category:SDA]] | ||
| NSP='''NSP''' [[file:NSP logo.png|25px | | NSP='''NSP''' [[file:NSP logo.png|25px]][[Category:NSP]] | ||
| PPP='''PPP''' [[file:PPP-logo.png|25px | | PPP='''PPP''' [[file:PPP-logo.png|25px]][[Category:PPP]] | ||
| #default={{{politicalparty}}} | | #default={{{politicalparty}}} | ||
}} | ''Independent'' }} | }} | ''Independent'' }} | ||
{{#if:{{{data01|}}}| | {{#if:{{{data01|}}}| | ||
{{!}}- | |||
! scope="row" style="text-align: left | ! scope="row" style="text-align: left; background: #f2f2f2;" {{!}} {{{field01|Field 1}}} | ||
{{!}} {{{data01}}} | |||
}} | }} | ||
{{#if:{{{data02|}}}| | {{#if:{{{data02|}}}| | ||
{{!}}- | |||
! scope="row" style="text-align: left | ! scope="row" style="text-align: left; background: #f2f2f2;" {{!}} {{{field02|Field 2}}} | ||
{{!}} {{{data02}}} | |||
}} | }} | ||
{{#if:{{{Input 1st Header|}}}| | {{#if:{{{Input 1st Header|}}}| | ||
{{!}}- | |||
! colspan="2" style="text-align: center; background-color: #ce1126; color: white | ! colspan="2" style="text-align: center; background-color: #ce1126; color: white;" {{!}} {{{Input 1st Header}}} | ||
}} | }} | ||
{{#if:{{{data04|}}}| | {{#if:{{{data04|}}}| | ||
{{!}}- | |||
! scope="row" style="text-align: left | ! scope="row" style="text-align: left; background: #f2f2f2;" {{!}} {{{field04|Field 4}}} | ||
{{!}} {{{data04}}} | |||
}} | }} | ||
{{#if:{{{Input 2nd Header|}}}| | {{#if:{{{Input 2nd Header|}}}| | ||
{{!}}- | |||
! colspan="2" style="text-align: center; background-color: #ce1126; color: white | ! colspan="2" style="text-align: center; background-color: #ce1126; color: white;" {{!}} {{{Input 2nd Header}}} | ||
}} | }} | ||
{{#if:{{{data05|}}}| | {{#if:{{{data05|}}}| | ||
{{!}}- | |||
! scope="row" style="text-align: left | ! scope="row" style="text-align: left; background: #f2f2f2;" {{!}} {{{field05|Field 5}}} | ||
{{!}} {{{data05}}} | |||
}} | }} | ||
|} | |} | ||
</div><noinclude> | </div><noinclude> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
