Jump to content

Template:Team Scotland/doc

From Wikipedia, the free encyclopedia

Template:Team Scotland displays an external link to an athlete's profile at TeamScotland.scot, the official website of Commonwealth Games Scotland (CGS). It is intended for use in the external links section of an article.

Usage

[edit]
Unnamed parameters
{{Team Scotland | ID }}
{{Team Scotland | ID | NAME }}
Named parameters
{{Team Scotland | id= ID }}
{{Team Scotland | id= ID | name= NAME }}
Using Wikidata property
{{Team Scotland}}
{{Team Scotland | name= NAME }}

Examples

[edit]

Unnamed parameters

[edit]
Usage
* {{Team Scotland | eilish-mccolgan | Eilish McColgan }}
Output
URL
https://www.teamscotland.scot/athlete/eilish-mccolgan/

Named parameters

[edit]
Usage
* {{Team Scotland |id= james-heatly |name= James Heatly }}
Output
URL
https://www.teamscotland.scot/athlete/james-heatly/

No parameters and Wikidata property not defined

[edit]
Usage
* {{Team Scotland}}
Output
  • {{Team Scotland}} template missing ID and not present in Wikidata.

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Team Scotland in articles based on its TemplateData.

TemplateData for Team Scotland

This template displays an external link to an athlete's profile at TeamScotland.scot, the official website of Commonwealth Games Scotland (CGS). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The ID portion of the URL, such as eilish-mccolgan in https://www.teamscotland.scot/athlete/eilish-mccolgan/. This parameter is optional if Wikidata property P12311 exists, but required if not.

Default
Wikidata property P12311
Example
eilish-mccolgan
Stringoptional
Namename 2

The link text, which should be the name of the person. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(athlete)".

Default
{{PAGENAMEBASE}}
Example
Charlotte Arter
Stringoptional

See also

[edit]
[edit]