Difference between revisions of "Template:FIG/doc"
imported>Zyxw (update TemplateData) |
imported>Zyxw (update category links, misc formatting) |
||
| Line 23: | Line 23: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | brief= ''yes'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | brief= ''yes'' }}</code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' | brief= ''yes'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | name= ''NAME'' | brief= ''yes'' }}</code> | ||
| + | |||
| + | == Examples == | ||
| + | === Unnamed parameters === | ||
| + | ''URL:'' | ||
| + | : <tt>[https://database.fig-gymnastics.com/public/gymnasts/biography/13822/true?backUrl= https://database.fig-gymnastics.com/public/gymnasts/biography/{{hilite|13822}}/true?backUrl=]</tt> | ||
| + | ''Usage:'' | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 13822 | Alexandra Raisman }}</code> | ||
| + | ''Output:'' | ||
| + | : {{{{BASEPAGENAME}} | 13822 | Alexandra Raisman }} | ||
| + | |||
| + | === Named parameters === | ||
| + | ''URL:'' | ||
| + | : <tt>[https://database.fig-gymnastics.com/public/gymnasts/biography/597/true?backUrl= https://database.fig-gymnastics.com/public/gymnasts/biography/{{hilite|597}}/true?backUrl=]</tt> | ||
| + | ''Usage:'' | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= 597 |name= Marco Torres }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= 597 |name= Marco Torres |brief= yes }}</code> | ||
| + | ''Output:'' | ||
| + | : {{{{BASEPAGENAME}} |id= 597 |name= Marco Torres }} | ||
| + | : {{{{BASEPAGENAME}} |id= 597 |name= Marco Torres |brief= yes }} | ||
| + | |||
| + | === No parameters and Wikidata property not defined === | ||
| + | ''Usage:'' | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
| + | ''Output:'' | ||
| + | : {{ {{BASEPAGENAME}} }} | ||
== TemplateData == | == TemplateData == | ||
| Line 60: | Line 85: | ||
} | } | ||
</templatedata> | </templatedata> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== Tracking categories == | == Tracking categories == | ||
; "id" parameter exists | ; "id" parameter exists | ||
| − | * {{clc|FIG | + | * {{clc|FIG template with ID same as Wikidata}} |
| − | * {{clc|FIG | + | * {{clc|FIG template with ID different from Wikidata}} |
| − | * {{clc|FIG | + | * {{clc|FIG template with ID not in Wikidata}} |
; "id" parameter does not exist | ; "id" parameter does not exist | ||
* {{clc|FIG template using Wikidata}} | * {{clc|FIG template using Wikidata}} | ||
| − | * {{clc|FIG template missing ID}} | + | * {{clc|FIG template missing ID and not in Wikidata}} |
== See also == | == See also == | ||
Revision as of 17:57, 22 April 2017
| 40px | 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
| 30px | This template uses Lua: |
Template:FIG displays an external link to an 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.
Contents
Usage
Unnamed parameters:
{{FIG | ID }}{{FIG | ID | NAME }}
Named parameters:
{{FIG | id= ID }}{{FIG | id= ID | name= NAME }}{{FIG | id= ID | brief= yes }}{{FIG | id= ID | name= NAME | brief= yes }}
Using Wikidata property P2696:
{{FIG}}{{FIG | name= NAME }}{{FIG | brief= yes }}{{FIG | name= NAME | brief= yes }}
Examples
Unnamed parameters
URL:
Usage:
{{FIG | 13822 | Alexandra Raisman }}
Output:
Named parameters
URL:
Usage:
{{FIG |id= 597 |name= Marco Torres }}{{FIG |id= 597 |name= Marco Torres |brief= yes }}
Output:
- Marco Torres at the International Gymnastics FederationTemplate:WikidataCheck
- Marco TorresTemplate: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 an 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 13822 is the ID portion of https://database.fig-gymnastics.com/public/gymnasts/biography/13822/true?backUrl=. This parameter is optional if Wikidata property P2696 exists, but required if not.
| Number | optional |
| 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