模板: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 – 加拿大国会传记