Difference between revisions of "Template:Chess.com player/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(create template documentation, including categories)
 
imported>Vanisaac
m (→‎Template data: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 52: Line 52:
 
</templatedata>
 
</templatedata>
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!--Categories below this line, please; interwikis at Wikidata-->
 
<!--Categories below this line, please; interwikis at Wikidata-->
 
[[Category:Chess templates]]
 
[[Category:Chess templates]]
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 04:31, 24 April 2020

This template generates an external link to a chess player's page at Chess.com.

Usage

One parameter:

{{Chess.com player | ID }}
{{Chess.com player | id= ID }}

Two parameters:

{{Chess.com player | ID | NAME }}
{{Chess.com player | id= ID | name= NAME }}

Examples

http://www.chess.com/members/view/FabianoCaruana

One parameter:

  1. {{Chess.com player | FabianoCaruana }}
    Template:PAGENAMEBASE player profile at Chess.com
  2. {{Chess.com player | id= FabianoCaruana }}
    Template:PAGENAMEBASE player profile at Chess.com

Two parameters:

  1. {{Chess.com player | FabianoCaruana | Fabiano Caruana }}
    Fabiano Caruana player profile at Chess.com
  2. {{Chess.com player | id= FabianoCaruana | name= Fabiano Caruana }}
    Fabiano Caruana player profile at Chess.com

Template data

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 Chess.com player

This template generates an external link to a chess player's page at Chess.com.

Template parameters

ParameterDescriptionTypeStatus
IDid 1

ID string used in the URL.

Stringrequired
Namename 2

Name displayed as the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.

Stringoptional