Template:Swimrankings: Difference between revisions
m Bot: Migrating 1 interwiki links, now provided by Wikidata on d:q11111926 |
MusikBot II (talk | contribs) m Protected "Template:Swimrankings": High-risk template or module: 250 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)) |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2640}} |
|||
[http://www.swimrankings.net/index.php?page=athleteDetail&athleteId={{{1}}} {{{NAME|{{PAGENAME}}}}}] at ''Swimrankings.net''<noinclude> |
|||
[[Category:People and person external link templates]] |
|||
| [https://www.swimrankings.net/index.php?page=athleteDetail&athleteId={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2640}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at ''Swimrankings.net''<includeonly>{{EditAtWikidata|pid=2640|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P2640|value={{{1|{{{id|}}}}}}|category=Swimrankings template with ID|namespaces=0|nocatsame=1}} |
|||
[[Category:Sports external link templates]] |
|||
| <span class="error">{{[[Template:Swimrankings|Swimrankings]]}} template missing ID and not present in Wikidata.</span>{{preview warning|1=To find the ID number, see the [https://www.swimrankings.net/index.php?page=athleteSelect&nationId=0&selectPage=SEARCH Swimrankings search page] or try this [https://www.google.com/search?q={{urlencode:{{PAGENAMEBASE}}}}+site%3Awww.swimrankings.net Google search].}}{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Swimrankings template missing ID and not in Wikidata]]}} |
|||
}}<noinclude> |
|||
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> |
|||
</noinclude> |
</noinclude> |
Latest revision as of 18:00, 20 November 2023
{{{name}}} at Swimrankings.net
This template uses Lua: |
Template:Swimrankings displays an external link to a swimmer's profile at Swimrankings.net, a website which displays results and data based on information from the European Swimming Federation (Ligue Européenne de Natation or LEN) and the following national swimming federations: Belgium, Canada, Netherlands, Faroe Islands, Poland, Portugal, Slovakia, and Switzerland. It is intended for use in the external links section of an article.
Usage
- Unnamed parameters
{{Swimrankings | ID }}
{{Swimrankings | ID | NAME }}
- Named parameters
{{Swimrankings | id= ID }}
{{Swimrankings | id= ID | name= NAME }}
- Using Wikidata property
{{Swimrankings}}
{{Swimrankings | name= NAME }}
Examples
Unnamed parameters
- Usage
* {{Swimrankings | 4042220 | Janne Schaefer }}
- Output
-
- Janne Schaefer at Swimrankings.net
Named parameters
- Usage
* {{Swimrankings | id= 4065665 | name= Janina-Kristin Goetz }}
- Output
-
- Janina-Kristin Goetz at Swimrankings.net
No parameters and Wikidata property not defined
- Usage
* {{Swimrankings}}
- Output
-
- {{Swimrankings}} template missing ID and not present in Wikidata.
TemplateData
TemplateData for Swimrankings
This template displays an external link to a swimmer's profile at Swimrankings.net, a website which displays results and data based on information from the European Swimming Federation (Ligue Européenne de Natation or LEN) and the following national swimming federations: Belgium, Canada, Netherlands, Faroe Islands, Poland, Portugal, Slovakia, and Switzerland. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | The ID number in the URL, such as 4042220 in https://www.swimrankings.net/index.php?page=athleteDetail&athleteId=4042220. This parameter is optional if Wikidata property P2640 exists, but required if not.
| Number | optional |
name | name 2 | The link text, which should be the name of the swimmer. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(swimmer)".
| String | optional |
Tracking categories
- Category:Swimrankings template with ID different from Wikidata (0)
- Category:Swimrankings template with ID not in Wikidata (0)
- Category:Swimrankings template missing ID and not in Wikidata (0)