Difference between revisions of "Template:FIS alpine skier"

From blackwiki
Jump to navigation Jump to search
imported>MusikBot II
m (Protected "Template:FIS alpine skier": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
imported>Zyxw
(update tracking)
 
Line 1: Line 1:
 
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2772}}
 
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2772}}
  
| [https://www.fis-ski.com/DB/general/athlete-biography.html?sectorcode=AL&competitorid={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2772}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[International Ski Federation]]<includeonly>{{EditAtWikidata|pid=P2772|{{{1|{{{id|}}}}}}}}</includeonly>
+
| [https://www.fis-ski.com/DB/general/athlete-biography.html?sectorcode=AL&competitorid={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2772}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at the [[International Ski Federation]]<includeonly>{{EditAtWikidata|pid=P2772|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P2772|value={{{1|{{{id|}}}}}}|category=FIS alpine skier template with ID|namespaces=0|nocatsame=1}}
  
| <span class="error">&#123;&#123;[[Template:FIS alpine skier|FIS alpine skier]]&#125;&#125; template missing ID and not present in Wikidata.</span>
+
| <span class="error">&#123;&#123;[[Template:FIS alpine skier|FIS alpine skier]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:FIS alpine skier template missing ID and not in Wikidata]]}}
  
}}{{#if: {{{1|{{{id|}}}}}}
 
|<!--has "id"-->{{WikidataCheck|property=P2772|value={{{1|{{{id|}}}}}}|category=FIS alpine skier template with ID}}
 
|{{#if: {{#property:P2772}}
 
|<!--no "id", exists in Wikidata -->{{Main other|[[Category:FIS alpine skier template using Wikidata]]}}
 
|<!--no "id" and not in Wikidata -->{{Main other|[[Category:FIS alpine skier template missing ID and not in Wikidata]]}}
 
}}
 
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
 
<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
 
</noinclude>
 
</noinclude>

Latest revision as of 00:06, 2 August 2020

{{{name}}} at the International Ski FederationTemplate:WikidataCheck

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

Template:FIS alpine skier displays an external link to an alpine skier's profile at FIS-ski.com, the official website of the International Ski Federation (FIS: Fédération Internationale de Ski). FIS is the international governing body for the Olympic disciplines of Cross-Country Skiing, Ski Jumping, Nordic Combined, Alpine Skiing, Freestyle Skiing, and Snowboarding. It also includes the non-Olympic disciplines of Speed Skiing, Grass Skiing, and Telemark Skiing. The template is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{FIS alpine skier | ID }}
{{FIS alpine skier | ID | NAME }}

Named parameters:

{{FIS alpine skier | id= ID }}
{{FIS alpine skier | id= ID | name= NAME }}

Using Wikidata property Template:Property:

{{FIS alpine skier}}
{{FIS alpine skier | name= NAME }}

Examples

Unnamed parameters

Usage:

* {{FIS alpine skier | 30 | Kjetil André Aamodt }}

Output:

Current URLs:

https://www.fis-ski.com/DB/general/athlete-biography.html?sectorcode=AL&competitorid=30
https://www.fis-ski.com/DB/general/athlete-biography.html?sectorcode=AL&fiscode=420382

Former URLs:

https://data.fis-ski.com/dynamic/athlete-biography.html?sectorcode=AL&competitorid=30
https://data.fis-ski.com/dynamic/athlete-biography.html?sectorcode=AL&fiscode=420382

Named parameters

Usage:

* {{FIS alpine skier |id= 32044 |name= Janica Kostelić }}

Output:

Current URLs:

https://www.fis-ski.com/DB/general/athlete-biography.html?sectorcode=AL&competitorid=32044
https://www.fis-ski.com/DB/general/athlete-biography.html?sectorcode=AL&fiscode=385022

Former URLs:

https://data.fis-ski.com/dynamic/athlete-biography.html?sectorcode=AL&competitorid=32044
https://data.fis-ski.com/dynamic/athlete-biography.html?sectorcode=AL&fiscode=385022

No parameters and Wikidata property not defined

Usage:

* {{FIS alpine skier}}

Output:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for FIS alpine skier

This template displays an external link to an alpine skier's profile at FIS-ski.com, the official website of the International Ski Federation (FIS: Fédération Internationale de Ski). FIS is the international governing body for the Olympic disciplines of Cross-Country Skiing, Ski Jumping, Nordic Combined, Alpine Skiing, Freestyle Skiing, and Snowboarding. It also includes the non-Olympic disciplines of Speed Skiing, Grass Skiing, and Telemark Skiing. The template is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 30 is the ID portion of https://www.fis-ski.com/DB/general/athlete-biography.html?sectorcode=AL&competitorid=30. This parameter is optional if Wikidata property P2772 exists, but required if not.

Default
Wikidata property P2772
Numberoptional
Namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(skier)" or "(alpine skier)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

ID parameter exists
ID parameter does not exist

See also

Other FIS templates using Wikidata:

External links