Template:Canadian Parliament links/doc
Appearance
This is a documentation subpage for Template:Canadian Parliament links. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 5,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template creates external links to Canadian Parliament information pages. By default it outputs one or more links in list format.
Usage
[edit]{{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
[edit]- List of links
{{Canadian Parliament links|ID=17296|parliament=170532|openparl=gail-shea|2=Gail Shea}}
- Profile at Parliament of Canada
- Gail Shea – Parliament of Canada biography
- Speeches, votes and activity at OpenParliament.ca
- No list markup
{{Canadian Parliament links|ID=17296|nolist=yes}}
Gail Shea – Parliament of Canada biography