Difference between revisions of "Template:IBSF/doc"
imported>Zyxw m (→Tracking categories: update category links using AWB) |
imported>Zyxw (misc updates) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
{{Uses Wikidata|P2991}} | {{Uses Wikidata|P2991}} | ||
{{Tracks Wikidata|P2991}} | {{Tracks Wikidata|P2991}} | ||
| − | {{Lua|Module:WikidataCheck}} | + | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} |
| − | |||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an athlete's profile at the website of the [[International Bobsleigh & Skeleton Federation]] (IBSF), the international [[sport governing body|governing body]] for the sports of [[bobsleigh]] and [[skeleton (sport)|skeleton]], formerly known as ''Fédération Internationale de Bobsleigh et de Tobogganing'' (FIBT). It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an athlete's profile at the website of the [[International Bobsleigh & Skeleton Federation]] (IBSF), the international [[sport governing body|governing body]] for the sports of [[bobsleigh]] and [[skeleton (sport)|skeleton]], formerly known as ''Fédération Internationale de Bobsleigh et de Tobogganing'' (FIBT). It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | ||
| Line 35: | Line 35: | ||
"label": "ID", | "label": "ID", | ||
"aliases": ["1"], | "aliases": ["1"], | ||
| − | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion the URL | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion the URL. Example: 100527 is the ID portion of http://www.ibsf.org/en/athletes/athlete/100527. This parameter is optional if Wikidata property P2991 exists, but required if not.", |
"type": "number", | "type": "number", | ||
"default": "Wikidata property P2991", | "default": "Wikidata property P2991", | ||
| Line 54: | Line 54: | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
| − | |||
| − | |||
''Usage:'' | ''Usage:'' | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 100527 | Steve Mesler }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 100527 | Steve Mesler }}</code> | ||
| Line 61: | Line 59: | ||
: {{{{BASEPAGENAME}} | 100527 | Steve Mesler }} | : {{{{BASEPAGENAME}} | 100527 | Steve Mesler }} | ||
''URL:'' | ''URL:'' | ||
| − | : < | + | : <tt>[http://www.ibsf.org/en/athletes/athlete/100527 http://www.ibsf.org/en/athletes/athlete/{{hilite|100527}}]</tt> |
''Former URLs:'' | ''Former URLs:'' | ||
| − | : < | + | : <tt><nowiki>http://</nowiki>www.ibsf.org/'''bobsleigh'''/athletes.html?athl_id={{hilite|100527}}</tt> |
| − | : < | + | : <tt><nowiki>http://</nowiki>www.fibt.com/'''bobsleigh'''/athletes.html?athl_id={{hilite|100527}}</tt> |
=== Named parameters === | === Named parameters === | ||
| − | |||
| − | |||
''Usage:'' | ''Usage:'' | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= 100694 |name= Katie Uhlaender }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= 100694 |name= Katie Uhlaender }}</code> | ||
| Line 74: | Line 70: | ||
: {{{{BASEPAGENAME}} |id= 100694 |name= Katie Uhlaender }} | : {{{{BASEPAGENAME}} |id= 100694 |name= Katie Uhlaender }} | ||
''URL:'' | ''URL:'' | ||
| − | : < | + | : <tt>[http://www.ibsf.org/en/athletes/athlete/100694 http://www.ibsf.org/en/athletes/athlete/{{hilite|100694}}]</tt> |
''Former URLs:'' | ''Former URLs:'' | ||
| − | : < | + | : <tt><nowiki>http://</nowiki>www.ibsf.org/'''skeleton'''/athletes.html?athl_id={{hilite|100694}}</tt> |
| − | : < | + | : <tt><nowiki>http://</nowiki>www.fibt.com/'''skeleton'''/athletes.html?athl_id={{hilite|100694}}</tt> |
== Tracking categories == | == Tracking categories == | ||
Revision as of 12:25, 23 November 2016
| 40px | This is a documentation subpage for Template:IBSF. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| 30px | This template uses Lua: |
Template:IBSF displays an external link to an athlete's profile at the website of the International Bobsleigh & Skeleton Federation (IBSF), the international governing body for the sports of bobsleigh and skeleton, formerly known as Fédération Internationale de Bobsleigh et de Tobogganing (FIBT). It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
{{IBSF | ID }}{{IBSF | ID | NAME }}
Named parameters:
{{IBSF | id= ID }}{{IBSF | id= ID | name= NAME }}
Using Wikidata property P2991:
{{IBSF}}{{IBSF | name= NAME }}
Note: Usage of the third unnamed parameter or the "sport" parameter is no longer required. This was used for the former URL format:
http://www.ibsf.org/bobsleigh/athletes.html?athl_id={{{id}}}http://www.ibsf.org/skeleton/athletes.html?athl_id={{{id}}}http://www.fibt.com/bobsleigh/athletes.html?athl_id={{{id}}}http://www.fibt.com/skeleton/athletes.html?athl_id={{{id}}}
TemplateData
TemplateData for IBSF
This template displays an external link to an athlete's profile at the website of the International Bobsleigh & Skeleton Federation (IBSF), the international governing body for the sports of bobsleigh and skeleton, formerly known as Fédération Internationale de Bobsleigh et de Tobogganing (FIBT). It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion the URL. Example: 100527 is the ID portion of http://www.ibsf.org/en/athletes/athlete/100527. This parameter is optional if Wikidata property P2991 exists, but required if not.
| Number | required |
| Name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify 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 "(bobsleigh)" or "(skeleton racer)".
| String | optional |
Examples
Unnamed parameters
Usage:
{{IBSF | 100527 | Steve Mesler }}
Output:
- Steve Mesler at the International Bobsleigh & Skeleton FederationScript error: No such module "EditAtWikidata". Template:WikidataCheck
URL:
Former URLs:
- http://www.ibsf.org/bobsleigh/athletes.html?athl_id=100527
- http://www.fibt.com/bobsleigh/athletes.html?athl_id=100527
Named parameters
Usage:
{{IBSF |id= 100694 |name= Katie Uhlaender }}
Output:
- Katie Uhlaender at the International Bobsleigh & Skeleton FederationScript error: No such module "EditAtWikidata". Template:WikidataCheck
URL:
Former URLs:
- http://www.ibsf.org/skeleton/athletes.html?athl_id=100694
- http://www.fibt.com/skeleton/athletes.html?athl_id=100694
Tracking categories
- "id" parameter exists
- Category:IBSF ID not in Wikidata (0)
- Category:IBSF ID different from Wikidata (0)
- Category:IBSF ID same as Wikidata (0)
- "id" parameter does not exist
- "sport" or "3" parameter exists