Template:Canadian Parliament links/doc
外观
此頁面是Template:Canadian Parliament links的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
此Template文档被引用於許多頁面。 為了避免造成大規模的影響,所有對此Template文档的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template文档中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
This template creates external links to Canadian Parliament information pages. By default it outputs one or more links in list format.
Usage
[编辑]{{Canadian Parliament links|ID=|parliament=|openparl=}}
- parlinfo or ID is the item number used in the URL for a profile at https://lop.parl.ca/sites/ParlInfo/default/en_CA/People/Profile?personId=
- parliament is the key number used in the URL for a profile at https://www.ourcommons.ca/Parliamentarians/en/members/
- openparl is the subpage used in the URL for a list of speeches, votes, and activity at http://openparliament.ca/politicians/
- 2 can be used to change the name in the Parliament of Canada biography. If omitted, the page title is used.
- nolist is used to suppress formatting links as a list, mainly for use in references.
Example
[编辑]- List of links
{{Canadian Parliament links|ID=17296|parliament=170532|openparl=gail-shea|2=Gail Shea}}
- 加拿大国会简介
- Gail Shea – 加拿大国会传记
- 演讲、投票和活动 – OpenParliament.ca
- No list markup
{{Canadian Parliament links|ID=17296|nolist=yes}}
Gail Shea – 加拿大国会传记