Difference between revisions of "Template:FIG/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update URLs)
imported>Zyxw
m (update list, misc formatting)
Line 29: Line 29:
  
 
=== Using "bio" parameter (biography number) ===
 
=== Using "bio" parameter (biography number) ===
 +
; Usage
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | bio= 29954 | name= Alexandra RAISMAN }}</code>
 +
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | bio= 29954 | name= Alexandra RAISMAN | brief= yes }}</code>
 +
 +
; Output
 +
:* {{{{BASEPAGENAME}} | bio= 29954 | name= Alexandra RAISMAN }}
 +
:* {{{{BASEPAGENAME}} | bio= 29954 | name= Alexandra RAISMAN | brief= yes }}
 +
 
; Current URLs
 
; Current URLs
 
: <kbd>[http://gymnastics.sport/site/athletes/bio_detail.php?id=29954 http://gymnastics.sport/site/athletes/bio_detail.php?id={{hilite|29954}}]</kbd>
 
: <kbd>[http://gymnastics.sport/site/athletes/bio_detail.php?id=29954 http://gymnastics.sport/site/athletes/bio_detail.php?id={{hilite|29954}}]</kbd>
Line 37: Line 45:
 
: <kbd>[https://database.fig-gymnastics.com/public/gymnasts/biography/29954/false?backUrl= https://database.fig-gymnastics.com/public/gymnasts/biography/{{hilite|29954}}/false?backUrl=]</kbd>
 
: <kbd>[https://database.fig-gymnastics.com/public/gymnasts/biography/29954/false?backUrl= https://database.fig-gymnastics.com/public/gymnasts/biography/{{hilite|29954}}/false?backUrl=]</kbd>
  
 +
=== Using "lic" parameter (licence number) ===
 
; Usage
 
; Usage
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | bio= 29954 | name= Alexandra RAISMAN }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | lic= 13822 | name= Alexandra RAISMAN }}</code>
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | bio= 29954 | name= Alexandra RAISMAN | brief= yes }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | lic= 13822 | name= Alexandra RAISMAN | brief= yes }}</code>
  
 
; Output
 
; Output
: {{{{BASEPAGENAME}} | bio= 29954 | name= Alexandra RAISMAN }}
+
:* {{{{BASEPAGENAME}} | lic= 13822 | name= Alexandra RAISMAN }}
: {{{{BASEPAGENAME}} | bio= 29954 | name= Alexandra RAISMAN | brief= yes }}
+
:* {{{{BASEPAGENAME}} | lic= 13822 | name= Alexandra RAISMAN | brief= yes }}
  
=== Using "lic" parameter (licence number) ===
 
 
; Current URLs
 
; Current URLs
 
: <kbd>[http://gymnastics.sport/site/athletes/bio_detail.php?id=13822&type=licence http://gymnastics.sport/site/athletes/bio_detail.php?id={{hilite|13822}}&type=licence]</kbd>
 
: <kbd>[http://gymnastics.sport/site/athletes/bio_detail.php?id=13822&type=licence http://gymnastics.sport/site/athletes/bio_detail.php?id={{hilite|13822}}&type=licence]</kbd>
Line 53: Line 61:
 
: <kbd>[http://fig-gymnastics.com/publicdir/athletes/bio_detail.php?id=13822&type=licence http://fig-gymnastics.com/publicdir/athletes/bio_detail.php?id={{hilite|13822}}&type=licence]</kbd>
 
: <kbd>[http://fig-gymnastics.com/publicdir/athletes/bio_detail.php?id=13822&type=licence http://fig-gymnastics.com/publicdir/athletes/bio_detail.php?id={{hilite|13822}}&type=licence]</kbd>
 
: <kbd>[https://database.fig-gymnastics.com/public/gymnasts/biography/13822/true?backUrl= https://database.fig-gymnastics.com/public/gymnasts/biography/{{hilite|13822}}/true?backUrl=]</kbd>
 
: <kbd>[https://database.fig-gymnastics.com/public/gymnasts/biography/13822/true?backUrl= https://database.fig-gymnastics.com/public/gymnasts/biography/{{hilite|13822}}/true?backUrl=]</kbd>
 
; Usage
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | lic= 13822 | name= Alexandra RAISMAN }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | lic= 13822 | name= Alexandra RAISMAN | brief= yes }}</code>
 
 
; Output
 
: {{{{BASEPAGENAME}} | lic= 13822 | name= Alexandra RAISMAN }}
 
: {{{{BASEPAGENAME}} | lic= 13822 | name= Alexandra RAISMAN | brief= yes }}
 
  
 
=== No parameters and Wikidata property not defined ===
 
=== No parameters and Wikidata property not defined ===
 
; Usage
 
; Usage
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
  
 
; Output
 
; Output
: {{ {{BASEPAGENAME}} }}
+
:* {{ {{BASEPAGENAME}} }}
  
 
== TemplateData ==
 
== TemplateData ==
Line 114: Line 114:
  
 
== Tracking categories ==
 
== Tracking categories ==
; "id" parameter exists
+
; template with ID
* {{clc|FIG template with ID same as Wikidata}}
 
 
* {{clc|FIG template with ID different from Wikidata}}
 
* {{clc|FIG template with ID different from Wikidata}}
 
* {{clc|FIG template with ID not in Wikidata}}
 
* {{clc|FIG template with ID not in Wikidata}}
; "id" parameter does not exist
+
; template missing ID
* {{clc|FIG template using Wikidata}}
 
 
* {{clc|FIG template missing ID and not in Wikidata}}
 
* {{clc|FIG template missing ID and not in Wikidata}}
  

Revision as of 07:32, 6 May 2019

Template:Uses Wikidata Template:Tracks Wikidata

Template:FIG displays an external link to a gymnast's profile at Gymnastics.sport (formerly FIG-gymnastics.com), the official website of the International Federation of Gymnastics (FIG: Fédération Internationale de Gymnastique). It is intended for use in the external links section of an article.

Usage

Using "bio" parameter (biography number)
{{FIG | bio= ID }}
{{FIG | bio= ID | name= NAME }}
{{FIG | bio= ID | brief= yes }}
{{FIG | bio= ID | name= NAME | brief= yes }}
Using "lic" parameter (licence number)
{{FIG | lic= ID }}
{{FIG | lic= ID | name= NAME }}
{{FIG | lic= ID | brief= yes }}
{{FIG | lic= ID | name= NAME | brief= yes }}
Using Wikidata property Template:WPL
{{FIG}}
{{FIG | name= NAME }}
{{FIG | brief= yes }}
{{FIG | name= NAME | brief= yes }}

Examples

Using "bio" parameter (biography number)

Usage
* {{FIG | bio= 29954 | name= Alexandra RAISMAN }}
* {{FIG | bio= 29954 | name= Alexandra RAISMAN | brief= yes }}
Output
Current URLs
http://gymnastics.sport/site/athletes/bio_detail.php?id=29954
https://fig-gymnastics.com/site/athletes/bio_detail.php?id=29954
Former URLs
http://fig-gymnastics.com/publicdir/athletes/bio_detail.php?id=29954
https://database.fig-gymnastics.com/public/gymnasts/biography/29954/false?backUrl=

Using "lic" parameter (licence number)

Usage
* {{FIG | lic= 13822 | name= Alexandra RAISMAN }}
* {{FIG | lic= 13822 | name= Alexandra RAISMAN | brief= yes }}
Output
Current URLs
http://gymnastics.sport/site/athletes/bio_detail.php?id=13822&type=licence
https://fig-gymnastics.com/site/athletes/bio_detail.php?id=13822&type=licence
Former URLs
http://fig-gymnastics.com/publicdir/athletes/bio_detail.php?id=13822&type=licence
https://database.fig-gymnastics.com/public/gymnasts/biography/13822/true?backUrl=

No parameters and Wikidata property not defined

Usage
* {{FIG}}
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 FIG

This template displays an external link to a gymnast's profile at Gymnastics.sport (formerly FIG-gymnastics.com), the official website of the International Federation of Gymnastics (FIG: Fédération Internationale de Gymnastique). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
Biography numberbio

The "bio" parameter should contain the gymnast's FIG biography number used in the URL. Example: 29954 is the biography number in http://gymnastics.sport/site/athletes/bio_detail.php?id=29954. This parameter is optional if the template uses the "lic" parameter.

Numberoptional
Licence numberlic 1 id

The "lic" parameter may contain the gymnast's FIG licence number used in the URL. Example: 13822 is the licence number in http://gymnastics.sport/site/athletes/bio_detail.php?id=13822&type=licence. This parameter is optional if the template uses the "bio" parameter or if Wikidata property P2696 exists.

Default
Wikidata property P2696
Numberoptional
Gymnast's namename 2

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

Default
{{PAGENAMEBASE}}
Stringoptional
briefbrief

The "brief" parameter may be used to display the external link without the appended description. The value can be "yes", "true", or any text. This parameter is optional.

Stringoptional

Tracking categories

template with ID
template missing ID

See also

External links