Difference between revisions of "Template:EFA player/doc"
imported>Zyxw (merge and add templates) |
imported>Zyxw m (updates for Wikidata tracking) |
||
| (9 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- | + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> |
| − | + | <div style="font-size:larger">{{Template shortcut|EFA|EJL|Jalgpall}}</div> | |
| + | {{Uses Wikidata|P3659}} | ||
| + | {{Tracks Wikidata|P3659}} | ||
| + | {{Lua|Module:EditAtWikidata|Module:WikidataCheck}} | ||
| + | |||
| + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's club career 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. | ||
| + | ;For national team profile, see {{tl|EFA player2}} | ||
| + | |||
| + | == Usage == | ||
| + | Unnamed parameters: | ||
| + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }} | ||
| + | |||
| + | Named parameters: | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} | ||
| + | |||
| + | Using [[Wikidata]] property [[d:Property:P3659|P3659]]: | ||
| + | : {{tlcw|{{BASEPAGENAME}}}} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }} | ||
| + | |||
| + | == Examples == | ||
| + | |||
| + | === Unnamed parameters === | ||
| + | ; URL (old) | ||
| + | : <kbd>[http://www.jalgpall.ee/players.php?player=2307&name=Tarmo%20Neemelo http://www.jalgpall.ee/players.php?player={{Hilite|2307}}&name=Tarmo%20Neemelo]</kbd> | ||
| + | ; URL (new) | ||
| + | : <kbd>[http://jalgpall.ee/voistlused/player/2307 http://jalgpall.ee/voistlused/player/{{Hilite|2307}}]</kbd> | ||
| + | |||
| + | ; Usage | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}} | 2307 | Tarmo Neemelo }} | ||
| + | |||
| + | ; Output | ||
| + | :* {{{{BASEPAGENAME}} | 2307 | Tarmo Neemelo }} | ||
| + | |||
| + | === Named parameters === | ||
| + | ; URL (old) | ||
| + | : <kbd>[http://www.jalgpall.ee/players.php?player=115&name=Konstantin%20Nahk http://www.jalgpall.ee/players.php?player={{Hilite|115}}&name=Konstantin%20Nahk]</kbd> | ||
| + | ; URL (new) | ||
| + | : <kbd>[http://jalgpall.ee/voistlused/player/115 http://jalgpall.ee/voistlused/player/{{Hilite|115}}]</kbd> | ||
| + | |||
| + | ; Usage | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 115 | name{{=}} Konstantin Nahk }} | ||
| + | |||
| + | ; Output | ||
| + | :* {{{{BASEPAGENAME}} | id= 115 | name= Konstantin Nahk }} | ||
| + | |||
| + | === No parameters and Wikidata property not defined === | ||
| + | ''Usage:'' | ||
| + | : {{tlcw|a=1|{{BASEPAGENAME}}}} | ||
| + | |||
| + | ''Output:'' | ||
| + | :* {{{{BASEPAGENAME}}<!-- -->}} | ||
==Instructions== | ==Instructions== | ||
| − | # Go to [http://www.jalgpall.ee/ Estonian Football | + | # Go to the [http://www.jalgpall.ee/ 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 | + | # The page [[Uniform resource locator|URL]] should look like <code><nowiki>http://</nowiki>jalgpall.ee/voistlused/player/<var>####</var></code>, where "<var>####</var>" is the ID number for the player. |
| − | + | # Add one of the following to the external links section of the player's Wikipedia article: | |
| − | # Add to the external links section the | + | #: <code><nowiki>* {{EFA player</nowiki>|<var>id</var>}}</code> |
| − | ::<nowiki>{{EFA player|id | + | #: <code><nowiki>* {{EFA player</nowiki>|<var>id</var>|<var>name</var>}}</code> |
| − | + | #: where "<code><var>id</var></code>" is the player's ID number from the URL | |
| + | #: and "<code><var>name</var></code>" is the player's name. If the name is not specified, the template will display the Wikipedia [[Wikipedia:Page name|article name]], without any disambiguation such as "(footballer)" or "(soccer)". | ||
| − | == | + | == TemplateData == |
| − | + | {{TemplateData header}} | |
| − | + | <templatedata> | |
| − | The | + | { |
| + | "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": { | ||
| + | "id": { | ||
| + | "label": "id", | ||
| + | "aliases": ["1"], | ||
| + | "description": "The \"id\" parameter should contain the ID portion of player's URL. Examples: \"2307\" is the ID portion of http://jalgpall.ee/voistlused/player/2307. This parameter is optional if Wikidata property P3659 exists, but required if not.", | ||
| + | "type": "number", | ||
| + | "required": false, | ||
| + | "default": "Wikidata property P3659" | ||
| + | }, | ||
| + | "name": { | ||
| + | "label": "name", | ||
| + | "aliases": ["2"], | ||
| + | "description": "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)\".", | ||
| + | "type": "string", | ||
| + | "required": false, | ||
| + | "default": "{{PAGENAMEBASE}}" | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "id", | ||
| + | "name" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
| − | + | == Tracking categories == | |
| + | * {{clc|EFA player ID not in Wikidata}} | ||
| + | * {{clc|EFA player ID different from Wikidata}} | ||
| + | * {{clc|EFA player ID same as Wikidata}} | ||
| − | <includeonly> | + | <includeonly>{{sandbox other|| |
| − | <!-- | + | <!-- Categories below this line; interwikis at Wikidata --> |
[[Category:Association football external link templates]] | [[Category:Association football external link templates]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| − | </includeonly> | + | [[Category:External link templates using Wikidata]] |
| + | [[Category:Templates that add a tracking category]] | ||
| + | }}</includeonly> | ||
Latest revision as of 04:28, 10 May 2019
| 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. |
Template:Uses Wikidata Template:Tracks Wikidata
| 30px | This template uses Lua: |
Template:EFA player displays an external link to an association football (soccer) player's club career 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.
- For national team profile, see {{EFA player2}}
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property P3659:
Examples
Unnamed parameters
- URL (old)
- http://www.jalgpall.ee/players.php?player=2307&name=Tarmo%20Neemelo
- URL (new)
- http://jalgpall.ee/voistlused/player/2307
- Usage
- Template:Tlcw
- Output
-
- Tarmo Neemelo at the Estonian Football Association (in Estonian)Script error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
- URL (old)
- http://www.jalgpall.ee/players.php?player=115&name=Konstantin%20Nahk
- URL (new)
- http://jalgpall.ee/voistlused/player/115
- Usage
- Template:Tlcw
- 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://jalgpall.ee/voistlused/player/####, 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://jalgpall.ee/voistlused/player/2307. 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 |
Tracking categories
- Category:EFA player ID not in Wikidata (0)
- Category:EFA player ID different from Wikidata (0)
- Category:EFA player ID same as Wikidata (0)