Template:SOK profile/doc
| This is a documentation subpage for Template:SOK profile. It may contain usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Template:SOK profile displays an external link to an athlete's profile at the official website of the Swedish Olympic Committee, known in Swedish as Sveriges Olympiska Kommitté (SOK). 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
{{SOK profile | ID }}{{SOK profile | id= ID }}
- Parameter as link text
{{SOK profile | ID | NAME }}{{SOK profile | id= ID | name= NAME }}
Examples
[edit source]Unnamed parameters
[edit source]- Usage
* {{SOK profile | c/charlotte-kalla | Charlotte Kalla }}
- Output
-
- Charlotte Kalla at Sveriges Olympiska Kommitté (in Swedish) (in English)
Named parameters
[edit source]- Usage
* {{SOK profile | id= m/marcus-hellner | name= Marcus Hellner }}
- Output
-
- Marcus Hellner at Sveriges Olympiska Kommitté (in Swedish) (in English)
No parameters and Wikidata property not defined
[edit source]- Usage
* {{SOK profile}}
- Output
-
- SOK profile/doc at Sveriges Olympiska Kommitté (in Swedish) (in English)Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
TemplateData
[edit source]TemplateData for SOK profile
This template displays an external link to an athlete's profile at the official website of the Swedish Olympic Committee, known in Swedish as Sveriges Olympiska Kommitté (SOK). 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 c/charlotte-kalla in http://sok.se/idrottare/idrottare/c/charlotte-kalla.html. This parameter is optional if Wikidata property P2323 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:SOK profile template with ID different from Wikidata (0)
- Category:SOK profile template with ID not in Wikidata (0)
- Category:SOK profile 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]Olympic profile templates
[edit source]External links
[edit source]- Athlete search at the Swedish Olympic Committee (in Swedish)