Template:MP-cargo: Difference between revisions

From PoliticalSG
(Created page with "{{#cargo_declare:_table=mp_profiles |mp_id=String |name=String |chinese_name=String |gender=String |race=String |date_of_birth=Date |deceased=Boolean |image=String |party_id=String |mp_status=String |parliament_url=String |wikidata_id=String |verified=String |last_updated=Date }}<noinclude> Stores core MP biographical data in the Cargo mp_profiles table. Place on each MP page alongside Infobox-person. Do not store office history or appointments here. Use MP-terms-cargo f...")
 
No edit summary
 
Line 1: Line 1:
{{#cargo_declare:_table=mp_profiles
<noinclude>{{#cargo_declare:_table=mp_profiles
|mp_id=String
|mp_id=String
|name=String
|name=String
Line 14: Line 14:
|verified=String
|verified=String
|last_updated=Date
|last_updated=Date
}}<noinclude>
}}</noinclude><includeonly>{{#cargo_store:_table=mp_profiles
|mp_id={{{mp_id|}}}
|name={{{name|}}}
|chinese_name={{{chinese_name|}}}
|gender={{{gender|}}}
|race={{{race|}}}
|date_of_birth={{{date_of_birth|}}}
|deceased={{{deceased|}}}
|image={{{image|}}}
|party_id={{{party_id|}}}
|mp_status={{{mp_status|}}}
|parliament_url={{{parliament_url|}}}
|wikidata_id={{{wikidata_id|}}}
|verified={{{verified|}}}
|last_updated={{{last_updated|}}}
}}</includeonly>
<noinclude>
Stores core MP biographical data in the Cargo mp_profiles table.
Stores core MP biographical data in the Cargo mp_profiles table.
Place on each MP page alongside Infobox-person.
Place on each MP page alongside Infobox-person.
Line 50: Line 66:
|last_updated=2026-05-16
|last_updated=2026-05-16
}}
}}
</noinclude>{{#cargo_store:_table=mp_profiles
</noinclude>
|mp_id={{{mp_id|}}}
|name={{{name|}}}
|chinese_name={{{chinese_name|}}}
|gender={{{gender|}}}
|race={{{race|}}}
|date_of_birth={{{date_of_birth|}}}
|deceased={{{deceased|}}}
|image={{{image|}}}
|party_id={{{party_id|}}}
|mp_status={{{mp_status|}}}
|parliament_url={{{parliament_url|}}}
|wikidata_id={{{wikidata_id|}}}
|verified={{{verified|}}}
|last_updated={{{last_updated|}}}
}}

Latest revision as of 08:56, 16 May 2026

This template defines the table "mp_profiles". View table.

Stores core MP biographical data in the Cargo mp_profiles table. Place on each MP page alongside Infobox-person. Do not store office history or appointments here. Use MP-terms-cargo for parliamentary terms. Use MP-appointments-cargo for ministerial and parliamentary roles.

mp_id must be a permanent slug in lowercase hyphenated format. e.g. baey-yam-keng, pritam-singh, lawrence-wong This slug is referenced by all other tables. Never change it.

Valid gender values: Male / Female Valid race values: Chinese / Malay / Indian / Eurasian / Other Valid mp_status values: current / former Valid verified values: yes / no

party_id must reference a valid entry in the parties table. e.g. pap, wp, sdp, psp

Usage: