close
Sayahna Sayahna
Search

Template:Yahoo! Cricket/doc


Template:Yahoo! Cricket displays an external link to a Yahoo! Cricket web page for a cricket player.

Usage

Using "id" parameter

  • {{Yahoo! Cricket|id=ID}}
  • {{Yahoo! Cricket|id=ID|name=NAME}}

Using "ref" parameter

  • {{Yahoo! Cricket|ref=REF}}
  • {{Yahoo! Cricket|ref=REF|name=NAME}}

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Yahoo! Cricket

<templatedata>{ "description": "This template displays an external link to a Yahoo! Cricket web page for a cricket player.", "params": {

 "id": {
   "label": "ID",
   "description": "ID number in URL of a player's Yahoo! Cricket web page. Example: 2962 is the ID number in http://cricket.yahoo.com/cricket/profile/player-profile?pid=2962 ",
   "type": "number",
   "default": "",
   "required": true
 },
 "ref": {
   "label": "REF",
   "description": "Portion of URL specific to a player's Yahoo! Cricket web page (currently everything after http://cricket.yahoo.com/). Not required if ID is specified. Examples: player-profile/Sachin-Tendulkar_2962 OR cricket/profile/player-profile?pid=2962",
   "type": "string",
   "default": "",
   "required": false
 },
 "name": {
   "label": "NAME",
   "description": "Name of cricket player. If not given it defaults to the Wikipedia article name, without any disambiguation such as (cricketer).",
   "type": "string",
   "default": "Yahoo! Cricket/doc",
   "required": false
 }

}}</templatedata>

Examples

Using "id" parameter

URL:

Usage:

  • {{Yahoo! Cricket |id= 2962 |name= Sachin Tendulkar }}

Output:

Using "ref" parameter

URL:

Usage:

  • {{Yahoo! Cricket |ref= player-profile/Sachin-Tendulkar_2962 |name= Sachin Tendulkar }}

Output:

See also