Difference between revisions of "Template:Futsal Planet/doc"
imported>Zyxw (create documentation) |
imported>Zyxw (updates for use of Wikidata property P3664) |
||
| 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 --> | ||
| − | {{Wikidata | + | {{Uses Wikidata|P3664}} |
| + | {{Lua|Module:EditAtWikidata}} | ||
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[futsal]] player's page at the [http://www.futsalplanet.com/ Futsal Planet] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a [[futsal]] player's page at the [http://www.futsalplanet.com/ Futsal Planet] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | ||
| Line 13: | Line 14: | ||
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} | ||
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} | ||
| + | |||
| + | Using [[Wikidata]] property [[d:Property:P3664|P3664]]: | ||
| + | : {{tlcw|{{BASEPAGENAME}}}} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }} | ||
== Examples == | == Examples == | ||
| Line 35: | Line 40: | ||
''Output:'' | ''Output:'' | ||
: {{{{BASEPAGENAME}} | id= 2062 | name= Mostafa Nazari }} | : {{{{BASEPAGENAME}} | id= 2062 | name= Mostafa Nazari }} | ||
| + | |||
| + | === No parameters and Wikidata property not defined === | ||
| + | ''Usage:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}}}} | ||
| + | |||
| + | ''Output:'' | ||
| + | : {{{{BASEPAGENAME}}<!-- -->}} | ||
== TemplateData == | == TemplateData == | ||
| Line 45: | Line 57: | ||
"label": "id", | "label": "id", | ||
"aliases": ["1"], | "aliases": ["1"], | ||
| − | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 163 is the ID portion of http://www.futsalplanet.com/gallery/gallery-02.asp?PerId=163.", | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 163 is the ID portion of http://www.futsalplanet.com/gallery/gallery-02.asp?PerId=163. This parameter is optional if Wikidata property P3664 exists, but required if not.", |
"type": "number", | "type": "number", | ||
| − | "required": | + | "required": false, |
| + | "default": "Wikidata property P3664" | ||
}, | }, | ||
"name": { | "name": { | ||
| Line 70: | Line 83: | ||
[[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]] | ||
| + | [[Category:External link templates using Wikidata]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 17:46, 7 June 2017
| This is a documentation subpage for Template:Futsal Planet. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Template:Futsal Planet displays an external link to a futsal player's page at the Futsal Planet website. It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property P3664:
Examples
Unnamed parameters
URL:
Usage:
Output:
- Vahid Shamsaee at Futsal PlanetScript error: No such module "EditAtWikidata".
Named parameters
URL:
Usage:
Output:
- Mostafa Nazari at Futsal PlanetScript error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
Usage:
Output:
- Template:PAGENAMEBASE at Futsal PlanetScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for Futsal Planet
This template displays an external link to a futsal player's page at the Futsal Planet website. 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: 163 is the ID portion of http://www.futsalplanet.com/gallery/gallery-02.asp?PerId=163. This parameter is optional if Wikidata property P3664 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 "(futsal)".
| String | optional |