Difference between revisions of "Template:CurlingZone/doc"
imported>Zyxw m (Zyxw moved page Template:Curlingzone/doc to Template:CurlingZone/doc: match name as shown at source) |
imported>Zyxw (remove shortcuts to different template, update URLs, add see also link) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| − | |||
{{Uses Wikidata|P3556}} | {{Uses Wikidata|P3556}} | ||
{{Lua|Module:EditAtWikidata}} | {{Lua|Module:EditAtWikidata}} | ||
| Line 27: | Line 26: | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
| − | |||
| − | |||
''Usage:'' | ''Usage:'' | ||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 283 | Randy Ferbey }}</code> | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 283 | Randy Ferbey }}</code> | ||
| + | |||
''Output:'' | ''Output:'' | ||
* {{{{BASEPAGENAME}} | 283 | Randy Ferbey }} | * {{{{BASEPAGENAME}} | 283 | Randy Ferbey }} | ||
| + | |||
| + | ''URL:'' | ||
| + | : <kbd>[https://www.curlingzone.com/player.php?playerid=283 https://www.curlingzone.com/player.php?playerid={{hilite|283}}]</kbd> | ||
=== Named parameters === | === Named parameters === | ||
| − | |||
| − | |||
''Usage:'' | ''Usage:'' | ||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 12015 |name= Rhona Martin }}</code> | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 12015 |name= Rhona Martin }}</code> | ||
| + | |||
''Output:'' | ''Output:'' | ||
* {{{{BASEPAGENAME}} |id= 12015 |name= Rhona Martin }} | * {{{{BASEPAGENAME}} |id= 12015 |name= Rhona Martin }} | ||
| + | |||
| + | ''URL:'' | ||
| + | : <kbd>[https://www.curlingzone.com/player.php?playerid=12015 https://www.curlingzone.com/player.php?playerid={{hilite|12015}}]</kbd> | ||
=== No parameters and Wikidata property not defined === | === No parameters and Wikidata property not defined === | ||
''Usage:'' | ''Usage:'' | ||
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> | ||
| + | |||
''Output:'' | ''Output:'' | ||
* {{ {{BASEPAGENAME}} }} | * {{ {{BASEPAGENAME}} }} | ||
| Line 52: | Line 56: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| − | "description": "This template displays an external link to a curler's profile at the | + | "description": "This template displays an external link to a curler's profile at the CurlingZone website (www.curlingzone.com). It is intended for use in the external links section of an article.", |
"params": { | "params": { | ||
"id": { | "id": { | ||
"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: 283 is the ID portion of | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 283 is the ID portion of https://www.worldcurl.com/player.php?playerid=283. This parameter is optional if Wikidata property P3556 exists, but required if not.", |
"type": "number", | "type": "number", | ||
"default": "Wikidata property P3556", | "default": "Wikidata property P3556", | ||
| Line 79: | Line 83: | ||
== See also == | == See also == | ||
| + | * {{tl|World Curling Tour}} or {{tl|WCT}} – for external links to the [[World Curling Tour]] website | ||
* {{tl|World Curling Federation}} or {{tl|WCF}} – for external links to the [[World Curling Federation]] website | * {{tl|World Curling Federation}} or {{tl|WCF}} – for external links to the [[World Curling Federation]] website | ||
Revision as of 06:48, 18 February 2020
| This is a documentation subpage for Template:CurlingZone. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
Template:CurlingZone displays an external link to a curler's profile at the CurlingZone website (www.curlingzone.com). It is intended for use in the external links section of an article.
This template created for usage immediately after {{Sports links}} template in the "external links" section, because WCT-player-id link shows in list generated from Wikidata by "Sports links" template.
Look example (with Wikidata) in article "Joël Retornaz".
Contents
Usage
Unnamed parameters:
{{CurlingZone | ID }}{{CurlingZone | ID | NAME }}
Named parameters:
{{CurlingZone | id= ID }}{{CurlingZone | id= ID | name= NAME }}
Using Wikidata property P3556:
{{CurlingZone}}{{CurlingZone | name= NAME }}
Examples
Unnamed parameters
Usage:
* {{CurlingZone | 283 | Randy Ferbey }}
Output:
- Randy Ferbey on the CurlingZone databaseScript error: No such module "EditAtWikidata".
URL:
Named parameters
Usage:
* {{CurlingZone |id= 12015 |name= Rhona Martin }}
Output:
- Rhona Martin on the CurlingZone databaseScript error: No such module "EditAtWikidata".
URL:
No parameters and Wikidata property not defined
Usage:
* {{CurlingZone}}
Output:
- Template:PAGENAMEBASE on the CurlingZone databaseScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for CurlingZone
This template displays an external link to a curler's profile at the CurlingZone website (www.curlingzone.com). 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: 283 is the ID portion of https://www.worldcurl.com/player.php?playerid=283. This parameter is optional if Wikidata property P3556 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 curler. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(curler)".
| String | optional |
See also
- {{World Curling Tour}} or {{WCT}} – for external links to the World Curling Tour website
- {{World Curling Federation}} or {{WCF}} – for external links to the World Curling Federation website