Template:OKS profile: Difference between revisions
add optional old_id parameter, see examples in documentation |
MusikBot II (talk | contribs) m Protected "Template:OKS profile": High-risk template or module: 268 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)) |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
| [{{#if: {{{archive|}}} | https://web.archive.org/web/{{{archive}}}/ }}https://oks.org.rs/sportisti/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P10978}}|sep=,}} }}/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[Olympic Committee of Serbia|''Olimpijski Komitet Srbije'']] {{#if: {{{archive|}}} |  (archived) }} {{#if: {{{old_id|}}} |  ([https://web.archive.org/web/20161001/http://oksis.oks.org.rs/portal/public/index.php/athlete/{{{old_id}}} former profile]) }} {{in lang|sr}}<includeonly>{{EditAtWikidata|pid=P10978|{{{1|{{{id|}}}}}}}}</includeonly> |
| [{{#if: {{{archive|}}} | https://web.archive.org/web/{{{archive}}}/ }}https://oks.org.rs/sportisti/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P10978}}|sep=,}} }}/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[Olympic Committee of Serbia|''Olimpijski Komitet Srbije'']] {{#if: {{{archive|}}} |  (archived) }} {{#if: {{{old_id|}}} |  ([https://web.archive.org/web/20161001/http://oksis.oks.org.rs/portal/public/index.php/athlete/{{{old_id}}} former profile]) }} {{in lang|sr}}<includeonly>{{EditAtWikidata|pid=P10978|{{{1|{{{id|}}}}}}}}</includeonly> |
||
| {{#if: {{{old_id|}}} |
|||
⚫ | | <span class="error">{{[[Template:OKS profile|OKS profile]]}} template missing ID and not present in Wikidata.</span>{{preview warning|1=to find the ID, see the [https://oks.org.rs/sportisti/ OKS search page] or this [https://www.google.com/search?q={{urlencode:{{PAGENAMEBASE}}}}+site%3Aoks.org.rs%2Fsportisti%2F Google search]}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:OKS profile template missing ID and not in Wikidata]]}} |
||
| [https://web.archive.org/web/20161001/http://oksis.oks.org.rs/portal/public/index.php/athlete/{{{old_id}}} {{#if: {{{name|}}} | {{{name}}} | {{PAGENAMEBASE}} }}] at the [[Olympic Committee of Serbia|''Olimpijski Komitet Srbije'']] (former profile) {{in lang|sr}} |
|||
⚫ | | <span class="error">{{[[Template:OKS profile|OKS profile]]}} template missing ID and not present in Wikidata.</span>{{preview warning|1=to find the ID, see the [https://oks.org.rs/sportisti/ OKS search page] or this [https://www.google.com/search?q={{urlencode:{{PAGENAMEBASE}}}}+site%3Aoks.org.rs%2Fsportisti%2F Google search]}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:OKS profile template missing ID and not in Wikidata]]}} |
||
}} |
|||
}}{{#if: {{{archive|}}} |
}}{{#if: {{{archive|}}} |
||
| {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:OKS profile template using archive parameter]]}} |
| {{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:OKS profile template using archive parameter]]}} |
Latest revision as of 18:00, 10 March 2024
{{{name}}} at the Olimpijski Komitet Srbije (in Serbian)
This template uses 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 Olympic Committee of Serbia athlete ID (new) (P10978)
{{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 at the Olimpijski Komitet Srbije (in Serbian)
- Ervin Holpert at the Olimpijski Komitet Srbije (former profile) (in Serbian)
- 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ć at the Olimpijski Komitet Srbije (in Serbian)
- Katarina Simonović at the Olimpijski Komitet Srbije (former profile) (in Serbian)
- 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ć at the Olimpijski Komitet Srbije (archived) (in Serbian)
- Tijana Ajduković at the Olimpijski Komitet Srbije (archived) (former profile) (in Serbian)
- 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
-
- Dejan Tomašević at the Olimpijski Komitet Srbije (former profile) (in Serbian)
- 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
TemplateData for OKS profile
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
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.
| String | optional |
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)".
| String | optional |
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}}/.
| Number | optional |
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.
| Number | optional |
Tracking categories
- Category:OKS profile template using archive parameter (1)
- Category:OKS profile template missing ID and not in Wikidata (0)
See also
Olympic profile templates
Country | Template | Wikidata property |
---|---|---|
{{Olympics.com profile}} | P5815: Olympics.com athlete ID | |
Argentina | {{COA profile}} | P4065: Argentine Olympic Committee athlete ID |
Australia | {{AOC profile}} | P3682: Australian Olympic Committee athlete ID |
Azerbaijan | {{Olympic.az profile}} | P10975: National Olympic Committee of the Republic of Azerbaijan athlete ID |
Belarus | {{NOC Belarus}} | |
Belgium | {{Team Belgium}} | P10963: Belgian Olympic and Interfederal Committee athlete ID |
Brazil | {{COB profile}} | P4060: Brazilian Olympic Committee athlete ID |
Canada | {{Team Canada}} | P4054: Team Canada athlete ID |
China | {{Chinese Olympic Committee profile}} | P4068: Chinese Olympic Committee athlete ID (archived) |
Croatia | {{HOO profile}} | P4541: Croatian Olympic Committee athlete ID (archived) |
Czech Republic | {{COV profile}} | P4062: Czech Olympic Committee athlete ID |
Estonia | {{ESBL profile}} | P4042: ESBL athlete ID |
Estonia | {{EOK profile}} | |
Finland | {{Olympiakomitea.fi}} | |
France | {{CNOSF profile}} | P4050: EspritBleu athlete ID (archived) |
France | {{Team France}} | P11934: Team France athlete ID |
Germany | {{DOSB profile}} | P4053: Team Deutschland athlete ID |
Great Britain | {{Team GB}} | P4490: Team GB athlete ID |
Greece | {{HOC profile}} | P4489: Hellenic Olympic Committee athlete ID (archived) |
Hungary | {{MOB profile}} | P4066: Hungarian Olympic Committee athlete ID |
Ireland | {{OFI profile}} | P10914: Olympic Federation of Ireland athlete ID |
Israel | {{OCI profile}} | P9669: Olympic Committee of Israel athlete ID (archived) |
Italy | {{CONI profile}} | P4069: Italian National Olympic Committee athlete ID |
Japan | {{JOC profile}} | |
Kazakhstan | {{Olympic.kz profile}} | P11024: National Olympic Committee of the Republic of Kazakhstan athlete ID |
Latvia | {{LOK profile}} | P2593: Latvian Olympic Committee athlete ID (archived) |
Lithuania | {{LTOK profile}} | P4061: Lithuanian National Olympic Committee athlete ID |
Luxembourg | {{COSL profile}} | P12372: Luxembourg Olympic and Sports Committee profile ID |
Morocco | {{CNOM profile}} | P11019: Moroccan Olympic Committee athlete ID |
Netherlands | {{TeamNL profile}} | P9822: TeamNL athlete ID number (archived) |
Netherlands | {{NOCNSF profile}} | P10957: NOC*NSF athlete ID |
New Zealand | {{NZOC profile}} | P4056: New Zealand Olympic Committee athlete ID |
Norway | {{Team Norway}} | |
Poland | {{PKOl profile}} | P6071: Polish Olympic Committee athlete ID (archived) |
Qatar | {{Team Qatar}} | |
Romania | {{COSR profile}} | P4067: Romanian Olympic and Sports Committee athlete ID |
Serbia | {{OKS profile}} | P10978: Olympic Committee of Serbia athlete ID (new) |
Singapore | {{SNOC profile}} | P10979: Singapore National Olympic Council athlete ID |
Slovakia | {{SOSV profile}} | P10647: Slovak Olympic and Sports Committee athlete ID |
Spain | {{COE profile}} | P8421: Spanish Olympic Committee athlete ID |
Sweden | {{SOK profile}} | P2323: Swedish Olympic Committee athlete ID |
Turkey | {{TMOK profile}} | P9973: Turkish National Olympic Committee athlete ID |
Turkey | {{Olimpedya}} | |
United States | {{USOPC profile}} | P4063: Team USA athlete former ID (archived) |
External links
- Athlete search at the Serbian Olympic Committee (in Serbian)