Difference between revisions of "Template:CurlingZone/doc"

From blackwiki
Jump to navigation Jump to search
imported>Алексей Густов
(Created page with '{{Documentation subpage}} <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{Template...')
 
imported>Jonesey95
m (Fix Linter errors using AutoEd)
Line 28: Line 28:
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
 
''URL:''
 
''URL:''
: <tt>[http://www.curlingzone.com/player.php?playerid=283 http://www.curlingzone.com/player.php?playerid={{hilite|283}}]</tt>
+
: <code>[http://www.curlingzone.com/player.php?playerid=283 http://www.curlingzone.com/player.php?playerid={{hilite|283}}]</code>
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 283 | Randy Ferbey }}</code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 283 | Randy Ferbey }}</code>
Line 36: Line 36:
 
=== Named parameters ===
 
=== Named parameters ===
 
''URL:''
 
''URL:''
: <tt>[http://www.curlingzone.com/player.php?playerid=12015 http://www.curlingzone.com/player.php?playerid={{hilite|12015}}]</tt>
+
: <code>[http://www.curlingzone.com/player.php?playerid=12015 http://www.curlingzone.com/player.php?playerid={{hilite|12015}}]</code>
 
''Usage:''
 
''Usage:''
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 12015 |name= Rhona Martin }}</code>
 
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} |id= 12015 |name= Rhona Martin }}</code>

Revision as of 06:10, 5 February 2020

Template:Uses Wikidata

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".

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

URL:

http://www.curlingzone.com/player.php?playerid=283

Usage:

* {{CurlingZone | 283 | Randy Ferbey }}

Output:

  • Randy Ferbey on the CurlingZone databaseScript error: No such module "EditAtWikidata".

Named parameters

URL:

http://www.curlingzone.com/player.php?playerid=12015

Usage:

* {{CurlingZone |id= 12015 |name= Rhona Martin }}

Output:

  • Rhona Martin on the CurlingZone databaseScript error: No such module "EditAtWikidata".

No parameters and Wikidata property not defined

Usage:

* {{CurlingZone}}

Output:

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 CurlingZone

This template displays an external link to a curler's profile at the World Curling Tour website (www.worldcurl.com). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 283 is the ID portion of http://www.worldcurl.com/player.php?playerid=283. This parameter is optional if Wikidata property P3556 exists, but required if not.

Default
Wikidata property P3556
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 curler. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(curler)".

Default
{{PAGENAMEBASE}}
Stringoptional

See also