Difference between revisions of "Template:FIG/doc"
imported>Zyxw (update link to modules used) |
imported>Zyxw (update URLs) |
||
| Line 5: | Line 5: | ||
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
| − | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a gymnast's profile at [http://www.fig-gymnastics.com/ 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 [[Wikipedia:External links|external links]] section of an article. | + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a gymnast's profile at [http://www.gymnastics.sport/ Gymnastics.sport] (formerly [http://www.fig-gymnastics.com/ 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 [[Wikipedia:External links|external links]] section of an article. |
== Usage == | == Usage == | ||
| Line 29: | Line 29: | ||
=== Using "bio" parameter (biography number) === | === Using "bio" parameter (biography number) === | ||
| − | ; 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>[https://fig-gymnastics.com/site/athletes/bio_detail.php?id=29954 https://fig-gymnastics.com/site/athletes/bio_detail.php?id={{hilite|29954}}]</kbd> | ||
| + | |||
| + | ; Former URLs | ||
: <kbd>[http://fig-gymnastics.com/publicdir/athletes/bio_detail.php?id=29954 http://fig-gymnastics.com/publicdir/athletes/bio_detail.php?id={{hilite|29954}}]</kbd> | : <kbd>[http://fig-gymnastics.com/publicdir/athletes/bio_detail.php?id=29954 http://fig-gymnastics.com/publicdir/athletes/bio_detail.php?id={{hilite|29954}}]</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> | : <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> | ||
| Line 42: | Line 46: | ||
=== Using "lic" parameter (licence number) === | === Using "lic" parameter (licence number) === | ||
| − | ; 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>[https://fig-gymnastics.com/site/athletes/bio_detail.php?id=13822&type=licence https://fig-gymnastics.com/site/athletes/bio_detail.php?id={{hilite|13822}}&type=licence]</kbd> | ||
| + | |||
| + | ; Former URLs | ||
: <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> | ||
| Line 65: | Line 73: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| − | "description": "This template displays an external link to a gymnast's profile at 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.", | + | "description": "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.", |
"params": { | "params": { | ||
"bio": { | "bio": { | ||
"label": "Biography number", | "label": "Biography number", | ||
| − | "description": "The \"bio\" parameter should contain the gymnast's FIG biography number used in the URL. Example: 29954 is the biography number in http:// | + | "description": "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.", |
"type": "number", | "type": "number", | ||
"required": false | "required": false | ||
| Line 76: | Line 84: | ||
"label": "Licence number", | "label": "Licence number", | ||
"aliases": ["1", "id"], | "aliases": ["1", "id"], | ||
| − | "description": "The \"lic\" parameter may contain the gymnast's FIG licence number used in the URL. Example: 13822 is the licence number in http:// | + | "description": "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.", |
"type": "number", | "type": "number", | ||
"default": "Wikidata property P2696", | "default": "Wikidata property P2696", | ||
| Line 118: | Line 126: | ||
== External links == | == External links == | ||
| − | * [http:// | + | * [http://gymnastics.sport/site/athletes/bio_view.php FIG athlete biographies search] |
| − | * [http:// | + | * [http://gymnastics.sport/site/athletes/lic_view.php FIG athlete licences search] |
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Revision as of 03:15, 22 January 2019
| This is a documentation subpage for Template:FIG. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
| File:Lua-Logo.svg | This template uses Lua: |
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.
Contents
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)
- 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=
- Usage
{{FIG | bio= 29954 | name= Alexandra RAISMAN }}{{FIG | bio= 29954 | name= Alexandra RAISMAN | brief= yes }}
- Output
- Alexandra RAISMAN at the International Gymnastics FederationTemplate:WikidataCheck
- Alexandra RAISMANTemplate:WikidataCheck
Using "lic" parameter (licence number)
- 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=
- Usage
{{FIG | lic= 13822 | name= Alexandra RAISMAN }}{{FIG | lic= 13822 | name= Alexandra RAISMAN | brief= yes }}
- Output
- Alexandra RAISMAN at the International Gymnastics FederationTemplate:WikidataCheck
- Alexandra RAISMANTemplate:WikidataCheck
No parameters and Wikidata property not defined
- Usage
{{FIG}}
- Output
- Template:PAGENAMEBASE at the International Gymnastics FederationScript error: No such module "EditAtWikidata".
TemplateData
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Biography number | bio | 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. | Number | optional |
| Licence number | lic 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.
| Number | optional |
| Gymnast's 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 gymnast. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(gymnast)".
| String | optional |
| brief | brief | 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. | String | optional |
Tracking categories
- "id" parameter exists
- Category:FIG template with ID same as Wikidata (0)
- Category:FIG template with ID different from Wikidata (0)
- Category:FIG template with ID not in Wikidata (0)
- "id" parameter does not exist
See also
- {{USA Gymnastics}}
External links