Difference between revisions of "Template:FIDE/doc"
Jump to navigation
Jump to search
imported>Zyxw (create template documentation, including categories) |
imported>Pigsonthewing (update) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| + | {{Uses Wikidata|P1440}} | ||
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--> | <!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--> | ||
| Line 5: | Line 6: | ||
== Usage == | == Usage == | ||
| − | One parameter: | + | |
| + | ;No perameters (uses ID from Wikidata and page name) | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}}}</code> | ||
| + | ;One parameter: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> | ||
| − | + | ;Two parameters: | |
| − | Two parameters: | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> | ||
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | ||
Revision as of 19:35, 27 July 2016
| This is a documentation subpage for Template:FIDE. It contains usage information, categories and other content that is not part of the original template page. |
This template generates an external link to a chess player's page at FIDE.
Usage
- No perameters (uses ID from Wikidata and page name)
{{FIDE}}- One parameter
{{FIDE | ID }}{{FIDE | id= ID }}- Two parameters
{{FIDE | ID | NAME }}{{FIDE | id= ID | name= NAME }}
Examples
http://ratings.fide.com/card.phtml?event=2020009
One parameter:
{{FIDE | 2020009 }}- Template:PAGENAMEBASE rating card at FIDEScript error: No such module "EditAtWikidata".Template:WikidataCheck
{{FIDE | id= 2020009 }}- Template:PAGENAMEBASE rating card at FIDEScript error: No such module "EditAtWikidata".Template:WikidataCheck
Two parameters:
{{FIDE | 2020009 | Fabiano Caruana }}- Fabiano Caruana rating card at FIDEScript error: No such module "EditAtWikidata".Template:WikidataCheck
{{FIDE | id= 2020009 | name= Fabiano Caruana }}- Fabiano Caruana rating card at FIDEScript error: No such module "EditAtWikidata".Template:WikidataCheck
Template data
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 FIDE
This template generates an external link to a chess player's page at FIDE.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| ID | id 1 | ID number used in the URL. | Number | required |
| Name | name 2 | Name displayed as the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation. | String | optional |