Difference between revisions of "Template:FIS/doc"

From blackwiki
Jump to navigation Jump to search
(+fi)
imported>Frietjes
 
(20 intermediate revisions by 11 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
 +
 +
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[International Ski Federation]] (''Fédération Internationale de Ski'') web page for a skier.
 +
 
==Usage==
 
==Usage==
<nowiki>{{</nowiki>FIS|S=sector|ID=competitorid}}
 
  
with optional fields:
+
===Required fields===
 +
<nowiki>{{</nowiki>FIS|S=''sector''|ID=''competitorid''}}
 +
 
 +
'''''S='''''
 +
 
 +
As specified in portion of URL after ''sector='', such as:
 +
[https://www.fis-ski.com/DB/general/athlete-biography.html?sector=AL&competitorid=125871&type=result https://www.fis-ski.com/DB/general/athlete-biography.html?sector='''''AL'''''&competitorid=125871&type=result]
 +
 
 +
* AL = [[Alpine skiing|Alpine]]
 +
* CC = [[Cross-country skiing|Cross Country]]
 +
* JP = [[Ski jumping|Jumping]]
 +
* NK = [[Nordic skiing|Nordic]]
 +
* FS = [[Freestyle skiing|Freestyle]]
 +
* SB = [[Snowboarding|Snowboard]]
 +
* SS = [[Speed skiing|Speed Skiing]]
 +
* GS = [[Grass skiing|Grass]]
 +
* TM = [[Telemark skiing|Telemark]]
 +
 
 +
'''''ID='''''
 +
 
 +
As specified in portion of URL after ''competitorid='', such as:
 +
[https://www.fis-ski.com/DB/general/athlete-biography.html?sector=AL&competitorid=125871&type=result https://www.fis-ski.com/DB/general/athlete-biography.html?sector=AL&competitorid='''''125871'''''&type=result]
  
  <nowiki>{{</nowiki>FIS|S=sector|ID=competitorid|name=''competitor name''|note=''note''}}  
+
===Optional fields===
 +
  <nowiki>{{</nowiki>FIS|S=''sector''|ID=''competitorid''|name=''competitor name''|note=''note''}}  
  
'''Sector:'''
+
'''''name='''''
* AL = Alpine
 
* CC = Cross Country
 
* JP = Jumping
 
* NK = Nordic
 
* FS = Freestyle
 
* SB = Snowboard
 
* SS = Speed Skiing
 
* GS = Grass
 
* TM = Telemark
 
  
'''Competitorid:'''
+
If used, replaces the title of the article as the link text. This can be used if the name of the article includes disambiguation [e.g. [[Bill Johnson (skier)]]] or if the name on the FIS website is spelled differently [e.g. [[Bjørn Dæhlie]]].
*See sample below
 
  
'''Name:'''
+
'''''note='''''
*If used, replaces the title of the article. This can be used if the name of the article includes a disambiguator [e.g. [[Bill Johnson (skier)]]] or if the name on the FIS website is spelled differently [e.g. [[Bjørn Dæhlie]]]
 
  
'''Note:'''
+
If used, displays a note after the link. For samples, see [[Birger Ruud]] [as multiple profiles are listed, specifying which one], [[Anfisa Reztsova]] [noting wrong DOB].
*Can be used to display a note after the link. For samples, see [[Birger Ruud]] [as multiple profiles are listed, specifying which one], [[Anfisa Reztsova]] [noting wrong DOB].
 
  
==Sample==
+
==Example==
 
For [[Lara Gut]], the page is at:
 
For [[Lara Gut]], the page is at:
  
  [http://www.fis-ski.com/uk/604/613.html?sector=AL&competitorid=125871&type=result http://www.fis-ski.com/uk/604/613.html?sector='''AL'''&competitorid='''125871'''&type=result]
+
  [https://www.fis-ski.com/DB/general/athlete-biography.html?sector=AL&competitorid=125871&type=result https://www.fis-ski.com/DB/general/athlete-biography.html?sector='''''AL'''''&competitorid='''''125871'''''&type=result]
  
 
This converts to  
 
This converts to  
Line 40: Line 53:
 
{{FIS|S=AL|ID=125871|name=Lara Gut}}
 
{{FIS|S=AL|ID=125871|name=Lara Gut}}
  
 +
==Tracking category==
 +
* {{clc|Pages using FIS with missing parameters}}
 +
* {{clc|Pages using FIS with unknown parameters}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
[[de:Vorlage:FISDB]]
+
<!--Categories below this line, please; interwikis at Wikidata-->
[[it:Template:SchedaFIS]]
+
[[Category:People and person external link templates]]
[[no:Mal:FISDB]]
+
[[Category:Sports governing body external link templates]]
[[fi:Malline:FIS]]
+
[[Category:Skiing templates]]
[[Category:External link templates|FIS]]
+
}}</includeonly>
[[Category:WikiProject Ski]]
 
</includeonly>
 

Latest revision as of 13:59, 29 July 2020

Template:FIS displays an external link to an International Ski Federation (Fédération Internationale de Ski) web page for a skier.

Usage

Required fields

{{FIS|S=sector|ID=competitorid}} 

S=

As specified in portion of URL after sector=, such as:

https://www.fis-ski.com/DB/general/athlete-biography.html?sector=AL&competitorid=125871&type=result

ID=

As specified in portion of URL after competitorid=, such as:

https://www.fis-ski.com/DB/general/athlete-biography.html?sector=AL&competitorid=125871&type=result

Optional fields

{{FIS|S=sector|ID=competitorid|name=competitor name|note=note}} 

name=

If used, replaces the title of the article as the link text. This can be used if the name of the article includes disambiguation [e.g. Bill Johnson (skier)] or if the name on the FIS website is spelled differently [e.g. Bjørn Dæhlie].

note=

If used, displays a note after the link. For samples, see Birger Ruud [as multiple profiles are listed, specifying which one], Anfisa Reztsova [noting wrong DOB].

Example

For Lara Gut, the page is at:

https://www.fis-ski.com/DB/general/athlete-biography.html?sector=AL&competitorid=125871&type=result

This converts to

{{FIS|S=AL|ID=125871}}

and displays as:

Lara Gut at the International Ski Federation

Tracking category