Difference between revisions of "Template:EFA player2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Pelmeen10
(Created page with '{{Documentation subpage}} <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Larger|{{Template shortcut|EFA|EJL|Ja...')
 
imported>Zyxw
 
(7 intermediate revisions by 3 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 -->
 
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Larger|{{Template shortcut|EFA|EJL|Jalgpall}}}}
+
<div style="font-size:larger">{{Template shortcut|EFA2}}</div>
 
{{Uses Wikidata|P3659}}
 
{{Uses Wikidata|P3659}}
{{Lua|Module:EditAtWikidata}}
+
{{Tracks Wikidata|P3659}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's national team 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.
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's national team 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.
Line 28: Line 29:
  
 
; Usage
 
; Usage
: {{tlcw|{{BASEPAGENAME}} | 2307 | Tarmo Neemelo }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | 2307 | Tarmo Neemelo }}
  
 
; Output
 
; Output
: {{{{BASEPAGENAME}} | 2307 | Tarmo Neemelo }}
+
:* {{{{BASEPAGENAME}} | 2307 | Tarmo Neemelo }}
  
 
=== Named parameters ===  
 
=== Named parameters ===  
Line 38: Line 39:
  
 
; Usage
 
; Usage
: {{tlcw|{{BASEPAGENAME}} | id{{=}} 115 | name{{=}} Konstantin Nahk }}
+
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} 115 | name{{=}} Konstantin Nahk }}
  
 
; Output
 
; Output
: {{{{BASEPAGENAME}} | id= 115 | name= Konstantin Nahk }}
+
:* {{{{BASEPAGENAME}} | id= 115 | name= Konstantin Nahk }}
  
 
=== No parameters and Wikidata property not defined ===
 
=== No parameters and Wikidata property not defined ===
 
''Usage:''
 
''Usage:''
: {{tlcw|{{BASEPAGENAME}}}}
+
: {{tlcw|a=1|{{BASEPAGENAME}}}}
  
 
''Output:''
 
''Output:''
: {{{{BASEPAGENAME}}<!-- -->}}
+
:* {{{{BASEPAGENAME}}<!-- -->}}
 
 
== Tracking categories ==
 
* {{clc|EFA player ID not in Wikidata}}
 
* {{clc|EFA player ID different from Wikidata}}
 
* {{clc|EFA player ID same as Wikidata}}
 
  
 
==Instructions==
 
==Instructions==
Line 74: Line 70:
 
       "label": "id",
 
       "label": "id",
 
       "aliases": ["1"],  
 
       "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.",
+
       "description": "The \"id\" parameter should contain the ID portion of player's URL. Examples: \"115\" is the ID portion of http://jalgpall.ee/koondis/koosseis/player/115. This parameter is optional if Wikidata property P3659 exists, but required if not.",
 
       "type": "number",
 
       "type": "number",
 
       "required": false,
 
       "required": false,
Line 94: Line 90:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
== Tracking categories ==
 +
; template with ID
 +
* {{clc|EFA player ID same as Wikidata}}
 +
* {{clc|EFA player ID different from Wikidata}}
 +
* {{clc|EFA player ID not in Wikidata}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
Line 100: Line 102:
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:External link templates using Wikidata]]
 
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 01:20, 17 May 2019

Template:Uses Wikidata Template:Tracks Wikidata

Template:EFA player2 displays an external link to an association football (soccer) player's national team 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 club career profile, see {{EFA player}}

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw

Using Wikidata property P3659:

Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters

URL
http://jalgpall.ee/koondis/koosseis/player/2307
Usage
Template:Tlcw
Output

Named parameters

URL
http://jalgpall.ee/koondis/koosseis/player/115
Usage
Template:Tlcw
Output

No parameters and Wikidata property not defined

Usage:

Template:Tlcw

Output:

Instructions

  1. Go to the Estonian Football Association website and enter the player's name in the search box.
  2. On the search results page, click the correct link for the person's page. Be sure you're getting the right person.
  3. The page URL should look like http://jalgpall.ee/voistlused/player/####, where "####" is the ID number for the player.
  4. Add one of the following to the external links section of the player's Wikipedia article:
    * {{EFA player2|id}}
    * {{EFA player2|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

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 EFA player2

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.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter should contain the ID portion of player's URL. Examples: "115" is the ID portion of http://jalgpall.ee/koondis/koosseis/player/115. This parameter is optional if Wikidata property P3659 exists, but required if not.

Default
Wikidata property P3659
Numberoptional
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

template with ID