Difference between revisions of "Template:FIG/doc"
imported>Zyxw m (note available Wikidata property P7440) |
imported>Zyxw (updates for use and tracking of Wikidata property P7440) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
| − | {{Uses Wikidata|P2696}} | + | {{Uses Wikidata|P7440|P2696}} |
| − | {{Tracks Wikidata|P2696 | + | {{Tracks Wikidata|P7440|P2696}} |
| − | |||
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
| Line 21: | Line 20: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | lic= ''ID'' | name= ''NAME'' | brief= ''yes'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | lic= ''ID'' | name= ''NAME'' | brief= ''yes'' }}</code> | ||
| − | ; Using [[Wikidata]] property {{Property|P2696|id= | + | ; Using [[Wikidata]] property {{Property|P7440|id=only}} or {{Property|P2696|id=only}} |
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' }}</code> | ||
| Line 39: | Line 38: | ||
; Current URLs | ; Current URLs | ||
| − | : | + | : [https://gymnastics.sport/site/athletes/bio_detail.php?id=29954 https://gymnastics.sport/site/athletes/bio_detail.php?id={{hilite|29954}}] |
| − | : | + | : [https://fig-gymnastics.com/site/athletes/bio_detail.php?id=29954 https://fig-gymnastics.com/site/athletes/bio_detail.php?id={{hilite|29954}}] |
; Former URLs | ; Former URLs | ||
| − | : | + | : https://<nowiki/>fig-gymnastics.com/publicdir/athletes/bio_detail.php?id={{hilite|29954}} |
| − | : | + | : https://<nowiki/>database.fig-gymnastics.com/public/gymnasts/biography/{{hilite|29954}}/false?backUrl= |
=== Using "lic" parameter (licence number) === | === Using "lic" parameter (licence number) === | ||
| Line 56: | Line 55: | ||
; Current URLs | ; Current URLs | ||
| − | : | + | : [https://gymnastics.sport/site/athletes/bio_detail.php?id=13822&type=licence https://gymnastics.sport/site/athletes/bio_detail.php?id={{hilite|13822}}&type=licence] |
| − | : | + | : [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] |
; Former URLs | ; Former URLs | ||
| − | : | + | : https://<nowiki/>fig-gymnastics.com/publicdir/athletes/bio_detail.php?id={{hilite|13822}}&type=licence |
| − | : | + | : https://<nowiki/>database.fig-gymnastics.com/public/gymnasts/biography/{{hilite|13822}}/true?backUrl= |
=== No parameters and Wikidata property not defined === | === No parameters and Wikidata property not defined === | ||
| Line 78: | Line 77: | ||
"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 https://gymnastics.sport/site/athletes/bio_detail.php?id=29954. This parameter is optional if the template uses the \"lic\" parameter.", | + | "description": "The \"bio\" parameter should contain the gymnast's FIG biography number used in the URL. Example: 29954 is the biography number in https://gymnastics.sport/site/athletes/bio_detail.php?id=29954. This parameter is optional if the template uses the \"lic\" parameter or if Wikidata properties P7440 or P2696 exist.", |
"type": "number", | "type": "number", | ||
| + | "default": "Wikidata property P7440", | ||
"required": false | "required": false | ||
}, | }, | ||
| Line 85: | Line 85: | ||
"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 https://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 | + | "description": "The \"lic\" parameter may contain the gymnast's FIG licence number used in the URL. Example: 13822 is the licence number in https://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 properties P7440 or P2696 exist.", |
"type": "number", | "type": "number", | ||
"default": "Wikidata property P2696", | "default": "Wikidata property P2696", | ||
| Line 115: | Line 115: | ||
== Tracking categories == | == Tracking categories == | ||
| − | ; template with | + | ; template with "bio" parameter |
| − | * {{clc|FIG template with | + | * {{clc|FIG template with biography number same as Wikidata}} |
| − | * {{clc|FIG template with | + | * {{clc|FIG template with biography number different from Wikidata}} |
| − | ; template | + | * {{clc|FIG template with biography number not in Wikidata}} |
| + | |||
| + | ; template with "lic" parameter | ||
| + | * {{clc|FIG template with licence number same as Wikidata}} | ||
| + | * {{clc|FIG template with licence number different from Wikidata}} | ||
| + | * {{clc|FIG template with licence number not in Wikidata}} | ||
| + | |||
| + | ; no ID in template or Wikidata | ||
* {{clc|FIG template missing ID and not in Wikidata}} | * {{clc|FIG template missing ID and not in Wikidata}} | ||
Revision as of 02:02, 15 October 2020
| 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
| 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 Gymnastics Federation (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:Property or Template:Property
{{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
- https://gymnastics.sport/site/athletes/bio_detail.php?id=29954
- https://fig-gymnastics.com/site/athletes/bio_detail.php?id=29954
- Former URLs
- https://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
- https://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
- https://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
-
- 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 Gymnastics Federation (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 https://gymnastics.sport/site/athletes/bio_detail.php?id=29954. This parameter is optional if the template uses the "lic" parameter or if Wikidata properties P7440 or P2696 exist.
| 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 https://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 properties P7440 or P2696 exist.
| 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
- template with "bio" parameter
- Category:FIG template with biography number same as Wikidata (0)
- Category:FIG template with biography number different from Wikidata (0)
- Category:FIG template with biography number not in Wikidata (0)
- template with "lic" parameter
- Category:FIG template with licence number same as Wikidata (0)
- Category:FIG template with licence number different from Wikidata (0)
- Category:FIG template with licence number not in Wikidata (0)
- no ID in template or Wikidata
See also
- {{USA Gymnastics}}
External links