Template:Infobox-person: Difference between revisions

From PoliticalSG
m (→‎top: clean up, replaced: Psp-logo.png → PSP_logo.png)
No edit summary
Line 1: Line 1:
<div class="infobox-container">
<div class="infobox" style="float: right; clear: right; width: 280px; margin: 0 0 1em 1em; border: 1px solid #a2a9b1; background-color: #f8f9fa; color: black; font-size: 88%; line-height: 1.5em; border-spacing: 3px;">
{| class="wikitable infobox-table"
 
|colspan="2" class="infobox-image"|{{#if:{{{image|}}}| [[File:{{{image}}}|200px|center]] | [[File:Portrait_placeholder.png|200px|center]] }}
{| style="width: 100%;"
|+ style="font-size: 125%; font-weight: bold; padding: 0.2em; background-color: #eaf3ff; border: 1px solid #a2a9b1;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
 
{{#if:{{{othername|}}}|
<tr><td colspan="2" style="text-align: center; font-style: italic; border-bottom: 1px solid #a2a9b1;">{{{othername}}}</td></tr>
}}
 
<tr><td colspan="2" style="text-align: center; padding: 0.5em;">
{{#if:{{{image|}}}| [[File:{{{image}}}|250px|center]] | [[File:Portrait_placeholder.png|150px|center]] }}
</td></tr>
 
|-
|-
!colspan="2" class="infobox-header"| {{#if:{{{name|}}}|{{{name}}}| Input Name }} {{#if:{{{othername|}}}| </br>{{{othername}}} | }}
! scope="row" style="text-align: left; width: 40%; padding: 0.2em 0.4em; background: #f2f2f2;" | Party
| style="padding: 0.2em 0.4em;" | {{#if:{{{politicalparty|}}} | {{#switch:{{{politicalparty}}}
| PAP='''PAP''' &nbsp; [[file:PAP logo.png|25px|link=People's Action Party]][[Category:PAP Members]]
| WP='''WP''' &nbsp; [[file:WP logo.png|25px|link=Workers' Party of Singapore]][[Category:WP Members]]
| PSP='''PSP''' &nbsp; [[file:PSP_logo.png|25px|link=Progress Singapore Party]][[Category:PSP Members]]
| RP='''RP''' &nbsp; [[file:RP logo.png|25px|link=Reform Party (Singapore)]][[Category:RP Members]]
| SPP='''SPP''' &nbsp; [[file:SPP-Logo.png|25px|link=Singapore People's Party]][[Category:SPP Members]]
| SDP= '''SDP''' &nbsp; [[file:SDP logo.png|25px|link=Singapore Democratic Party]][[Category:SDP Members]]
| PV='''PV''' &nbsp; [[file:PV-logo.png|25px|link=Peoples Voice (Singapore)]][[Category:PV Members]]
| RDU='''RDU''' &nbsp; [[file:RDU-logo.png|25px|link=Red Dot United]][[Category:RDU Members]]
| SDA='''SDA''' &nbsp; [[file:SDA logo.png|25px|link=Singapore Democratic Alliance]][[Category:SDA Members]]
| NSP='''NSP''' &nbsp; [[file:NSP logo.png|25px|link=National Solidarity Party (Singapore)]][[Category:NSP Members]]
| PPP='''PPP''' &nbsp; [[file:PPP-logo.png|25px|link=People's Power Party (Singapore)]][[Category:PPP Members]]
| #default={{{politicalparty}}}
}} | ''Independent'' }}
 
{{#if:{{{data01|}}}|
|-
|-
| class="infobox-field" style="vertical-align:top;"| Party Affiliation
! scope="row" style="text-align: left; padding: 0.2em 0.4em; background: #f2f2f2;" | {{{field01|Field 1}}}
| {{#if:{{{politicalparty| }}} | {{#switch:{{{politicalparty}}}
| style="padding: 0.2em 0.4em;" | {{{data01}}}
| PAP='''PAP''' &nbsp; [[file:PAP logo.png| 30px]][[Category:PAP]]
}}
| WP='''WP''' &nbsp; [[file:WP logo.png| 30px]][[Category:WP]]
| PSP='''PSP''' &nbsp; [[file:PSP_logo.png| 30px]][[Category:PSP]]
| RP='''RP''' &nbsp; [[file:RP logo.png| 30px]][[Category:RP]]
| SPP='''SPP''' &nbsp; [[file:SPP-Logo.png| 30px]][[Category:SPP]]
| SDP= '''SDP''' &nbsp; [[file:SDP logo.png| 30px]][[Category:SDP]]
| PV='''PV''' &nbsp; [[file:PV-logo.png| 30px]][[Category:PV]]
| RDU='''RDU''' &nbsp; [[file:RDU-logo.png| 30px]][[Category:RDU]]
| SDA='''SDA''' &nbsp; [[file:SDA logo.png| 30px]][[Category:SDA]]
| NSP='''NSP''' &nbsp; [[file:NSP logo.png| 30px]][[Category:NSP]]
| PPP='''PPP''' &nbsp; [[file:PPP-logo.png| 30px]][[Category:PPP]]


| #default={{{politicalparty}}}
{{#if:{{{data02|}}}|
}} | }}
|-
|-
| class="infobox-field" style="vertical-align:top;"| {{{field01}}}
! scope="row" style="text-align: left; padding: 0.2em 0.4em; background: #f2f2f2;" | {{{field02|Field 2}}}
| {{{data01}}}
| style="padding: 0.2em 0.4em;" | {{{data02}}}
}}
 
{{#if:{{{Input 1st Header|}}}|
|-
|-
| class="infobox-field" style="vertical-align:top;"| {{{field02}}}
! colspan="2" style="text-align: center; background-color: #ce1126; color: white; padding: 0.2em;" | {{{Input 1st Header}}}
| {{{data02}}}
}}
 
{{#if:{{{data04|}}}|
|-
|-
| class="infobox-field" style="vertical-align:top;"| {{{field03}}}
! scope="row" style="text-align: left; padding: 0.2em 0.4em; background: #f2f2f2;" | {{{field04|Field 4}}}
| {{{data03}}}
| style="padding: 0.2em 0.4em;" | {{{data04}}}
}}
 
{{#if:{{{Input 2nd Header|}}}|
|-
|-
!colspan="2" class="infobox-section"| {{{Input 1st Header}}}
! colspan="2" style="text-align: center; background-color: #ce1126; color: white; padding: 0.2em;" | {{{Input 2nd Header}}}
}}
 
{{#if:{{{data05|}}}|
|-
|-
| class="infobox-field" style="vertical-align:top;"| {{{field04}}}
! scope="row" style="text-align: left; padding: 0.2em 0.4em; background: #f2f2f2;" | {{{field05|Field 5}}}
| {{{data04}}}
| style="padding: 0.2em 0.4em;" | {{{data05}}}
|-
}}
!colspan="2" class="infobox-section"| {{{Input 2nd Header}}}
 
|-
| class="infobox-field" style="vertical-align:top;"| {{{field05}}}
| {{{data05}}}
|-
| class="infobox-field" style="vertical-align:top;"| {{{field06}}}
| {{{data06}}}
|}
|}
</div>
</div><noinclude>
 
<noinclude>
''How to use this template: See [[Template:Infobox-person/doc]]''
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 10:59, 28 March 2026

Infobox-person
Party Independent

-

scope="row" style="text-align: left; padding: 0.2em 0.4em; background: #f2f2f2;"

-

scope="row" style="text-align: left; padding: 0.2em 0.4em; background: #f2f2f2;"

-

colspan="2" style="text-align: center; background-color: #ce1126; color: white; padding: 0.2em;"

-

scope="row" style="text-align: left; padding: 0.2em 0.4em; background: #f2f2f2;"

-

colspan="2" style="text-align: center; background-color: #ce1126; color: white; padding: 0.2em;"

-

scope="row" style="text-align: left; padding: 0.2em 0.4em; background: #f2f2f2;"