Template:Team Canada/doc
| This is a documentation subpage for Template:Team Canada. It may contain usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Template:Team Canada displays an external link to an athlete's profile at Olympic.ca, the official website of Team Canada. It is intended for use in the external links section of an article.
Usage
[edit source]Omit the ID to use the Wikidata property.
- Article name as link text
{{Team Canada | ID }}{{Team Canada | id= ID }}
- Parameter as link text
{{Team Canada | ID | NAME }}{{Team Canada | id= ID | name= NAME }}
Examples
[edit source]Unnamed parameters
[edit source]- Usage
* {{Team Canada | karine-sergerie | Karine Sergerie }}
- Output
Named parameters
[edit source]- Usage
* {{Team Canada | id= tory-nyhaug-heinonen | name= Tory Nyhaug }}
- Output
No parameters and Wikidata property not defined
[edit source]- Usage
* {{Team Canada}}
- Output
-
- Team Canada/doc at Team CanadaLua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
TemplateData
[edit source]TemplateData for Team Canada
This template displays an external link to an athlete's profile at Olympic.ca, the official website of Team Canada. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | id 1 | The ID portion of the URL, such as karine-sergerie in http://olympic.ca/team-canada/karine-sergerie/. This parameter is optional if Wikidata property P4054 exists, but required if not.
| String | optional |
| Name | name 2 | The link text, which should be the name of the athlete. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(athlete)".
| String | optional |
Tracking categories
[edit source]- Category:Team Canada template with ID different from Wikidata (0)
- Category:Team Canada template with ID not in Wikidata (0)
- Category:Team Canada template missing ID and not in Wikidata (0)
Templates and modules used
[edit source]- {{PAGENAMEBASE}} and {{First word}}, implemented with Module:String
- {{EditAtWikidata}}, implemented with Module:EditAtWikidata
- {{WikidataCheck}}, implemented with Module:WikidataCheck
See also
[edit source]- {{CPC profile}} for athlete profiles from the Canadian Paralympic Committee
Olympic profile templates
[edit source]External links
[edit source]