模板:Canadian Parliament links/doc
外觀
此頁面是Template:Canadian Parliament links的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
此模板文件被引用於許多頁面。 為了避免造成大規模的影響,所有對此模板文件的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此模板文件中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
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 – 加拿大國會傳記