Difference between revisions of "Template:EFA player/doc"
imported>Zyxw (update instructions and examples, add TemplateData, updates for use of Wikidata property P3659) |
imported>Zyxw (update description, add shortcuts) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
| + | {{Larger|{{Template shortcut|EFA|EJL|Jalgpall}}}} | ||
{{Uses Wikidata|P3659}} | {{Uses Wikidata|P3659}} | ||
{{Lua|Module:EditAtWikidata}} | {{Lua|Module:EditAtWikidata}} | ||
| − | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's profile at | + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's profile at [http://www.jalgpall.ee/ Jalgpall.ee], the official website of the [[Estonian Football Association]] (in Estonian: ''Eesti Jalgpalli Liit''; EJL). It is intended for use in the [[Wikipedia:External links|external links]] section of an article. |
== Usage == | == Usage == | ||
| Line 62: | Line 63: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| − | "description": "This template displays an external link to an association football (soccer) player's profile at the Estonian Football Association | + | "description": "This template displays an external link to an association football (soccer) player's profile at Jalgpall.ee, the official website of the Estonian Football Association (in Estonian: Eesti Jalgpalli Liit; EJL). It is intended for use in the external links section of an article.", |
"params": { | "params": { | ||
"id": { | "id": { | ||
Revision as of 09:00, 15 August 2017
| This is a documentation subpage for Template:EFA player. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Template:EFA player displays an external link to an association football (soccer) player's profile at Jalgpall.ee, the official website of the Estonian Football Association (in Estonian: Eesti Jalgpalli Liit; EJL). It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property P3659:
Examples
Unnamed parameters
URL:
Usage:
Output:
- Tarmo Neemelo at the Estonian Football Association (in Estonian)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
URL:
Usage:
Output:
- Konstantin Nahk at the Estonian Football Association (in Estonian)Script error: No such module "EditAtWikidata".Template:WikidataCheck
No parameters and Wikidata property not defined
Usage:
Output:
- Template:PAGENAMEBASE at the Estonian Football Association (in Estonian)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Instructions
- Go to the Estonian Football Association website and enter the player's name in the search box.
- On the search results page, click the correct link for the person's page. Be sure you're getting the right person.
- The page URL should look like
http://www.jalgpall.ee/players.php?player=####&name=First%20Last, where "####" is the ID number for the player. - Add one of the following to the external links section of the player's Wikipedia article:
* {{EFA player|id}}* {{EFA player|id|name}}- where "
id" is the player's ID number from the URL - and "
name" is the player's name. If the name is not specified, the template will display the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".
TemplateData
TemplateData for EFA player
This template displays an external link to an association football (soccer) player's profile at Jalgpall.ee, the official website of the Estonian Football Association (in Estonian: Eesti Jalgpalli Liit; EJL). It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter should contain the ID portion of player's URL. Examples: "2307" is the ID portion of http://www.jalgpall.ee/players.php?player=2307&name=. This parameter is optional if Wikidata property P3659 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 player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".
| String | optional |