Template:OKS profile
塞爾維亞奧林匹克委員會网站上的{{{name}}} (塞爾維亞語)
| 此模板使用Lua语言: |
Template:OKS profile displays an external link to an athlete's profile at the official website of the Olympic Committee of Serbia, known in Serbian as Olimpijski Komitet Srbije (OKS). It is intended for use in the external links section of an article.
Usage
[编辑]- Active link with ID in template
{{OKS profile | ID }}{{OKS profile | id= ID }}{{OKS profile | ID | NAME }}{{OKS profile | id= ID | name= NAME }}
- Archived link with ID in template
{{OKS profile | ID | archive= NUMBER }}{{OKS profile | id= ID | archive= NUMBER }}{{OKS profile | ID | NAME | archive= NUMBER }}{{OKS profile | id= ID | name= NAME | archive= NUMBER }}
- Former link with ID in template
{{OKS profile | old_id= ID }}{{OKS profile | old_id= ID | name= NAME }}
- Using Wikidata property
{{OKS profile}}{{OKS profile | name= NAME }}
Examples
[编辑]Active link
[编辑]In the article Ervin Holpert:
- Usage
* {{OKS profile | ervin-holpert }}* {{OKS profile | id= ervin-holpert | old_id= 213 }}
- Output
-
- 塞爾維亞奧林匹克委員會网站上的Ervin Holpert (塞爾維亞語)
- 塞爾維亞奧林匹克委員會网站上的Ervin Holpert (塞爾維亞語)
- Former URL
- http://oksis.oks.org.rs/portal/public/index.php/athlete/213 (archive 2016-10-17)
Active link with numeric ID
[编辑]In the article Katarina Simonović:
- Usage
* {{OKS profile | 3249 }}* {{OKS profile | id= 3249 | old_id= 1254 }}
- Output
-
- 塞爾維亞奧林匹克委員會网站上的Katarina Simonović (塞爾維亞語)
- 塞爾維亞奧林匹克委員會网站上的Katarina Simonović (塞爾維亞語)
- Former URL
- http://oksis.oks.org.rs/portal/public/index.php/athlete/1254 (archive 2016-10-10)
Archived link
[编辑]In the article Tijana Ajduković:
- Usage
* {{OKS profile | tijana-ajdukovic | archive= 20211107032553 }}* {{OKS profile | id= tijana-ajdukovic | archive= 20211107032553 | old_id= 1289 }}
- Output
-
- 塞爾維亞奧林匹克委員會网站上的Tijana Ajduković(已存档) (塞爾維亞語)
- 塞爾維亞奧林匹克委員會网站上的Tijana Ajduković(已存档) (塞爾維亞語)
- Former URL
- http://oksis.oks.org.rs/portal/public/index.php/athlete/1289 (archive 2016-10-13)
Former link only
[编辑]In the article Dejan Tomašević:
- Usage
* {{OKS profile | old_id= 1004 }}
- Output
-
- {{OKS profile}} template missing ID and not present in Wikidata.
- Former URL
- http://oksis.oks.org.rs/portal/public/index.php/athlete/1004 (archive 2020-07-18)
No parameters
[编辑]- Usage
* {{OKS profile}}
- Output
-
- {{OKS profile}} template missing ID and not present in Wikidata.
TemplateData
[编辑]This template displays an external link to an athlete's profile at the official website of the Olympic Committee of Serbia, known in Serbian as Olimpijski Komitet Srbije (OKS). It is intended for use in the external links section of an article.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| ID | id 1 | The ID portion of the current URL at oks.org.rs/sportisti/, such as ervin-holpert in https://oks.org.rs/sportisti/ervin-holpert/ or 3249 in https://oks.org.rs/sportisti/3249/. This parameter is optional if Wikidata property P10978 exists, but required if not.
| 字符串 | 可选 |
| Name | name 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)".
| 字符串 | 可选 |
| Internet Archive date/time | archive | Number representing the date/time in an Internet Archive URL for the oks.org.rs/sportisti/ link, such as 20211107032553 in https://web.archive.org/web/20211107032553/https://oks.org.rs/sportisti/tijana-ajdukovic/. This parameter causes the template to use an archived URL link starting https://web.archive.org/web/{{archive}}/.
| 数字 | 可选 |
| Old ID | old_id | The old ID number in the former URL at oksis.oks.org.rs/portal/public/index.php/athlete/, such as 213 in http://oksis.oks.org.rs/portal/public/index.php/athlete/213. When using this parameter, the template automatically displays an archived link. This is the same ID as found in Wikidata property P4547.
| 数字 | 可选 |
Tracking categories
[编辑]- Category:OKS profile template with ID different from Wikidata(0)
- Category:OKS profile template with ID not in Wikidata(0)
- Category:OKS profile template missing ID and not in Wikidata(0)
- Category:OKS profile template using archive parameter(0)
Templates and modules used
[编辑]- {{PAGENAMEBASE}} and {{First word}}, implemented with Module:String
- {{EditAtWikidata}}, implemented with Module:EditAtWikidata
- {{WikidataCheck}}, implemented with Module:WikidataCheck
See also
[编辑]Olympic profile templates
[编辑]Template:Olympic profile templates