Difference between revisions of "Template:FIG"
imported>Zyxw m (update tracking) |
|||
| (48 intermediate revisions by 19 users not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{#if: {{{bio<includeonly>|</includeonly>}}} | |
| − | < | + | | [https://gymnastics.sport/site/athletes/bio_detail.php?id={{{bio}}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} |
| − | [[ | + | | {{{2|{{{name}}}}}} |
| + | | {{PAGENAMEBASE}} | ||
| + | }}]{{#if: {{{brief|}}} | ||
| + | | | ||
| + | |  at the [[International Gymnastics Federation]] | ||
| + | }}{{WikidataCheck|property=P7440|value={{{bio|}}}|category=FIG template with biography number|namespaces=0}}{{#if: {{{1|}}} {{{id|}}} {{{lic|}}} | ||
| + | | {{WikidataCheck|property=P2696|value={{{1|{{{id|{{{lic|}}}}}}}}}|category=FIG template with licence number|namespaces=0}} | ||
| + | }}{{#ifeq: {{{bio|}}} | {{{lic|}}} | ||
| + | | {{Main other|[[Category:FIG template with same value in bio and lic parameters]]}} | ||
| + | }} | ||
| + | |||
| + | | {{#if: {{{1|}}} {{{id|}}} {{{lic|}}} | ||
| + | |||
| + | | [https://gymnastics.sport/site/athletes/bio_detail.php?id={{#if: 1 | ||
| + | | {{{1|{{{id|{{{lic}}}}}}}}} | ||
| + | }}&type=licence {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | ||
| + | | {{{2|{{{name}}}}}} | ||
| + | | {{PAGENAMEBASE}} | ||
| + | }}]{{#if: {{{brief|}}} | ||
| + | | | ||
| + | |  at the [[International Gymnastics Federation]] | ||
| + | }}{{WikidataCheck|property=P2696|value={{{1|{{{id|{{{lic|}}}}}}}}}|category=FIG template with licence number|namespaces=0}} | ||
| + | |||
| + | | {{#if: {{#property:P7440}} | ||
| + | | [https://gymnastics.sport/site/athletes/bio_detail.php?id={{First word|1={{#property:P7440}}|sep=,}} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | ||
| + | | {{{2|{{{name}}}}}} | ||
| + | | {{PAGENAMEBASE}} | ||
| + | }}]{{#if: {{{brief|}}} | ||
| + | | | ||
| + | |  at the [[International Gymnastics Federation]] | ||
| + | }}<includeonly>{{EditAtWikidata|pid=P7440}}</includeonly>{{Main other|[[Category:FIG template using Wikidata property P7440]]}} | ||
| + | |||
| + | | {{#if: {{#property:P2696}} | ||
| + | |||
| + | | [https://gymnastics.sport/site/athletes/bio_detail.php?id={{First word|1={{#property:P2696}}|sep=,}}&type=licence {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | ||
| + | | {{{2|{{{name}}}}}} | ||
| + | | {{PAGENAMEBASE}} | ||
| + | }}]{{#if: {{{brief|}}} | ||
| + | | | ||
| + | |  at the [[International Gymnastics Federation]] | ||
| + | }}<includeonly>{{EditAtWikidata|pid=P2696}}</includeonly>{{Main other|[[Category:FIG template using Wikidata property P2696]]}} | ||
| + | |||
| + | | <span class="error">{{[[Template:FIG|FIG]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:FIG template missing ID and not in Wikidata]]}} | ||
| + | |||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | }}<noinclude> | ||
| + | {{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 02:04, 16 October 2020
{{{name}}} at the International Gymnastics FederationTemplate:WikidataCheck
Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
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)
- template using Wikidata
- Category:FIG template using Wikidata property P7440 (0)
- Category:FIG template using Wikidata property P2696 (0)
- template with missing or incorrect value
- Category:FIG template missing ID and not in Wikidata (0)
- Category:FIG template with same value in bio and lic parameters (0)
See also
- {{USA Gymnastics}}
External links
| The above documentation is transcluded from Template:FIG/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |