Template:Hansard-item-cargo

Revision as of 17:38, 15 July 2026 by SGPolitico (talk | contribs) (Created page with "<noinclude>{{#cargo_declare:_table=hansard_items |item_id=String |sitting_id=String |sitting_date=Date |parliament_no=String |item_type=String |item_no=String |subject=String |asking_mp_id=String |answering_mp_id=String |speaker_mp_id=String |grouped_question_nos=String |topic_tags=String |summary=Text |verified=String |last_updated=Date }}</noinclude><includeonly>{{#cargo_store:_table=hansard_items|item_id={{{item_id|}}}|sitting_id={{{sitting_id|}}}|sitting_date={{{sitt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Usage

Place once per question/speech/bill reading/motion, immediately before (or wrapping) the prose text of that item on the sitting-day page. Renders only an anchor + a small inline type/number tag — the actual Hansard prose (question text, answer, speeches) is written normally around the call, not inside it.

{{Hansard-item-cargo
|item_id=p15-s32-oq1
|sitting_id=p15-s32
|sitting_date=2026-07-07
|parliament_no=15
|item_type=oral_question
|item_no=1
|subject=Probe into social media posts targeting Singapore's Indian community
|asking_mp_id=darryl-david
|answering_mp_id=goh-pei-ming
|speaker_mp_id=
|grouped_question_nos=1-2
|topic_tags=Home Affairs, National Security, Social media
|summary=
|verified=yes
|last_updated=2026-07-16
}}
'''Q1.''' [[Darryl David]] asked the Coordinating Minister for National Security and Minister for Home Affairs regarding the 14 online social media posts which seemingly targeted the Indian community... — ''[[Goh Pei Ming]] (for [[K Shanmugam]])''

Field reference

Field Type Required Notes
item_id slug Yes Permanent. Format: {sitting_id}-{type_abbr}{item_no or running index}, e.g. p15-s32-oq1, p15-s32-wq21, p15-s32-bill1
sitting_id sitting slug Yes Must match hansard_sittings
sitting_date Date Yes Denormalised from the sitting, for fast per-MP sorting without a join
parliament_no String Yes Denormalised — lets MP-profile queries group by parliament term cheaply
item_type String Yes oral_question / written_question / ministerial_statement / bill_first_reading / bill_second_reading / motion / adjournment_speech / other
item_no String No The Hansard question/item number as printed. Blank for unnumbered items
subject String Yes Short title, sentence-cased from the Hansard heading
asking_mp_id mp slug No MP who asked the question or moved the motion
answering_mp_id mp slug No Minister who answered on the record (the one actually speaking, even if answering "for" another minister)
speaker_mp_id mp slug No For items with no asker/answerer structure — adjournment-debate speeches, statements
grouped_question_nos String No If answered together with other questions, e.g. 3-5
topic_tags String No Comma-separated free text for search
summary Text No One or two factual sentences, no editorialising
verified String Yes yes / no
last_updated Date Yes

Cargo table: hansard_items. See also {{Hansard-sitting-cargo}}.