Jump to content

Template:Cricinfo 2/doc

From Wikipedia, the free encyclopedia

The template Cricinfo 2 is used to generate an external link to a web page at Cricinfo (CI) previously known as ESPNcricinfo. It should be used on cricket-related pages in the external links section or as a citation using the |access-date= parameter.

Based on its configuration this template would invoke one of its sub/auxiliary templates: Cricinfo 2/format, Cricinfo 2/series, Cricinfo 2/series-sub, Cricinfo 2/series-squad, Cricinfo 2/series-r, Cricinfo 2/series-rec, Cricinfo 2/tournament, Cricinfo 2/tournament-rec, Cricinfo 2/trophy, Cricinfo 2/trophy-rec, Cricinfo 2/cricketer, Cricinfo 2/cricketer-sub, Cricinfo 2/team, Cricinfo 2/team-r, Cricinfo 2/team-rec, Cricinfo 2/cricket-ground, Cricinfo 2/ground-r, Cricinfo 2/ground-rec, Cricinfo 2/auction and Cricinfo 2/auction-sub.

Please note that the Cricinfo pages have both a numeric ID and an alpha-numeric ID and that only the alpha-numeric IDs should be used to define the template.

Using this template would add the used pages to the tracking category Category:Pages using the Cricinfo template and its sub-categories based on its configuration. These tracking categories are hidden in their member pages and would only be visible based on the corresponding user preferences.

Usage

[edit]
  • {{Cricinfo 2|FUNCTION|id=ID}}
  • {{Cricinfo 2|FUNCTION|id=ID|access-date=DATE|dynamic=y}}
  • {{Cricinfo 2|FUNCTION|id=ID|access-date=DATE|dynamic=n|archive-url=URL|archive-date=DATE}}
  • {{Cricinfo 2|FUNCTION|id=ID|title=TITLE}}
  • {{Cricinfo 2|FUNCTION|id=ID|title=TITLE|access-date=DATE|dynamic=y}}
  • {{Cricinfo 2|FUNCTION|id=ID|title=TITLE|access-date=DATE|dynamic=n|archive-url=URL|archive-date=DATE}}

Usage methods

[edit]

The template can be used to give following three types of outcomes. See examples below.

[edit]

When only the basic/required parameters are used the template generates an external link to be used in the External links section.

Dynamic citations

[edit]

The template will generate a citation when the |access-date= parameter is defined. Defining |dynamic=y= will produce a dynamic citation; if the |dynamic= parameter isn't defined, then also the template will produce a dynamic citation but with an error message.

Archived citations

[edit]

Defining |dynamic=n= will produce an archived citation. Also requires |archive-url= and |archive-date=; otherwise will display an error message.

Functions and examples

[edit]

If none of the following supported functions are used, the template will display an error message.

format function

The function format is used to generate links to cricket-format-record-pages on CI website. It provides the base URL of Cricinfo.com/records/format/.

Examples for format
  1. {{Cricinfo 2|format|format=wtest}}
    Outcome: Cricket records in Women's Test at Cricinfo
  2. {{Cricinfo 2|format|format=odi|access-date=20 May 2026|dynamic=y}}
    Outcome: Cricket records in ODIs at Cricinfo. Retrieved 20 May 2026.
  3. {{Cricinfo 2|format|format=all|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20260129060041/https://www.Cricinfo.com/records/format/all-cricket-records-including-minor-cricket-13|archive-date=29 January 2026}}
    Outcome: Cricket records in All forms at Cricinfo. Archived from the original on 29 January 2026. Retrieved 20 May 2026.


See below for a list of supported values for the |format= parameter.

series, series-sub and series-squad

The functions series, series-sub and series-squad are used to generate links to series-pages (tours–England tour of Australia 2025/26, tournament editions–2026 Men's T20 World Cup, league seasons–2026 Indian Premier League etc.) on CI website. They provide the base URL of Cricinfo.com/series/. The series-sub function also requires the |sub= parameter. The series-squad function also requires |squad= and |squad-id= parameters.

Examples for series
  1. {{Cricinfo 2|series|id=the-ashes-2025-26-1455609|event=English cricket team in Australia in 2025–26}}
    Outcome: English cricket team in Australia in 2025–26 at Cricinfo
  2. {{Cricinfo 2|series|id=icc-men-s-t20-world-cup-2025-26-1502138|event=2026 Men's T20 World Cup|access-date=20 May 2026|dynamic=y}}
    Outcome: 2026 Men's T20 World Cup at Cricinfo. Retrieved 20 May 2026.
  3. {{Cricinfo 2|series|id=ipl-2026-1510719|event=2026 Indian Premier League|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20260522113401/https://www.Cricinfo.com/series/ipl-2026-1510719|archive-date=22 May 2026}}
    Outcome: 2026 Indian Premier League at Cricinfo. Archived from the original on 22 May 2026. Retrieved 20 May 2026.
Examples for series-sub
  1. {{Cricinfo 2|series-sub|id=the-ashes-2025-26-1455609|sub=squads|event=English cricket team in Australia in 2025–26}}
    Outcome: English cricket team in Australia in 2025–26, series squads at Cricinfo
  2. {{Cricinfo 2|series-sub|id=icc-men-s-t20-world-cup-2025-26-1502138|sub=points table|event=2026 Men's T20 World Cup|access-date=20 May 2026|dynamic=y}}
    Outcome: 2026 Men's T20 World Cup, points table: standings at Cricinfo. Retrieved 20 May 2026.
  3. {{Cricinfo 2|series-sub|id=ipl-2026-1510719|sub=fixtures and results|event=2026 Indian Premier League|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20260522232125/https://www.Cricinfo.com/series/ipl-2026-1510719/match-schedule-fixtures-and-results|archive-date=22 May 2026}}
    Outcome: 2026 Indian Premier League, schedule: fixtures and results at Cricinfo. Archived from the original on 22 May 2026. Retrieved 20 May 2026.
Examples for series-squad
  1. {{Cricinfo 2|series-squad|id=the-ashes-2025-26-1455609|squad=Australia – 1st Test|squad-id=australia-1st-test-squad-1510100|event=English cricket team in Australia in 2025–26}}
    Outcome: English cricket team in Australia in 2025–26 – Australia – 1st Test squad at Cricinfo
  2. {{Cricinfo 2|series-squad|id=icc-men-s-t20-world-cup-2025-26-1502138|squad=England|squad-id=england-squad-1517535|event=2026 Men's T20 World Cup|access-date=20 May 2026|dynamic=y}}
    Outcome: 2026 Men's T20 World Cup – England squad at Cricinfo. Retrieved 20 May 2026.
  3. {{Cricinfo 2|series-squad|id=ipl-2025-1449924|squad=Chennai Super Kings|squad-id=chennai-super-kings-squad-1458628|event=2025 Indian Premier League|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20250707134813/https://www.Cricinfo.com/series/ipl-2025-1449924/chennai-super-kings-squad-1458628/series-squads|archive-date=7 July 2025}}
    Outcome: 2025 Indian Premier League – Chennai Super Kings squad at Cricinfo. Archived from the original on 7 July 2025. Retrieved 20 May 2026.

Supported values for series-sub

Following values can be used for the |sub= parameter in the series-sub function: fixtures and results, points table, stats, squads and teams.

series-r and series-rec

The functions series-r and series-rec are used to generate links to series-record-pages (tours–England tour of Australia 2025/26, West Indies tour of England 2025, India tour of Australia 2024/25 etc.) on CI website. They provides the base URL of Cricinfo.com/records/series/.

Examples for series-r
  1. {{Cricinfo 2|series-r|id=the-ashes-2025-26-16756|event=English cricket team in Australia in 2025–26}}
    Outcome: English cricket team in Australia in 2025–26 records at Cricinfo
  2. {{Cricinfo 2|series-r|id=west-indies-in-england-odi-series-2025-16592|event=West Indian cricket team in England in 2025|access-date=20 May 2026|dynamic=y}}
    Outcome: West Indian cricket team in England in 2025 records at Cricinfo. Retrieved 20 May 2026.
  3. {{Cricinfo 2|series-r|id=border-gavaskar-trophy-2024-25-16216|event=Indian cricket team in Australia in 2024–25|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20241205192001/https://www.Cricinfo.com/records/series/border-gavaskar-trophy-2024-25-16216|archive-date=5 December 2024}}
    Outcome: Indian cricket team in Australia in 2024–25 records at Cricinfo. Archived from the original on 5 December 2024. Retrieved 20 May 2026.
Examples for series-rec
  1. {{Cricinfo 2|series-rec|id=the-ashes-2025-26-16756|rec=match results|event=English cricket team in Australia in 2025–26}}
    Outcome: English cricket team in Australia in 2025–26, team match results at Cricinfo
  2. {{Cricinfo 2|series-rec|id=west-indies-in-england-odi-series-2025-16592|rec=most centuries|event=West Indian cricket team in England in 2025|access-date=20 May 2026|dynamic=y}}
    Outcome: West Indian cricket team in England in 2025, batting most hundreds career at Cricinfo. Retrieved 20 May 2026.
  3. {{Cricinfo 2|series-rec|id=border-gavaskar-trophy-2024-25-16216|rec=most 5wi|event=Indian cricket team in Australia in 2024–25|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20260527063832/https://www.Cricinfo.com/records/series/bowling-most-5wi-career/border-gavaskar-trophy-2024-25-16216|archive-date=27 May 2026}}
    Outcome: Indian cricket team in Australia in 2024–25, bowling most 5wi career at Cricinfo. Archived from the original on 27 May 2026. Retrieved 20 May 2026.

Supported values for series-rec

Following values can be used for the |rec= parameter in the series-rec function:

  • Team: match results, highest team totals, lowest team totals, highest match aggregates, lowest match aggregates, largest victory margins, smallest victory margins and most extras in an innings
  • Batting: most runs, highest scores, highest average, highest strike rate, highest strike rate in an innings, most centuries, most fifties, most ducks, most sixes, most sixes in an innings and most runs from fours and sixes in an innings
  • Bowling: most wickets, bbi, bbm, best average, best economy, best economy in an innings, best strike rate, best strike rate in an innings, most 4wi, most 5wi, most 10wm and most runs conceded in an innings
  • Wicket-keeping: most dismissals, most dismissals in an innings and most dismissals in a match
  • Fielding: most catches, most catches in an innings and most catches in a match
  • Partnership: highest partnerships by wicket and highest partnerships by runs

tournament and tournament-rec

The functions tournament and tournament-rec are used to generate links to tournament-record-pages (championship editions–2025–2027 World Test Championship, tournament editions–2026 Men's T20 World Cup, league seasons–2026 Indian Premier League etc.) on CI website. They provide the base URL of Cricinfo.com/records/tournament/.

Examples for tournament
  1. {{Cricinfo 2|tournament|id=icc-world-test-championship-2025-2027-16977|event=2025–2027 World Test Championship}}
    Outcome: 2025–2027 World Test Championship records at Cricinfo
  2. {{Cricinfo 2|tournament|id=icc-men-s-t20-world-cup-2025-26-17604|event=2026 Men's T20 World Cup|access-date=20 May 2026|dynamic=y}}
    Outcome: 2026 Men's T20 World Cup records at Cricinfo. Retrieved 20 May 2026.
  3. {{Cricinfo 2|tournament|id=indian-premier-league-2026-17740|event=2026 Indian Premier League|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20260527055727/https://www.Cricinfo.com/records/tournament/indian-premier-league-2026-17740|archive-date=27 May 2026}}
    Outcome: 2026 Indian Premier League records at Cricinfo. Archived from the original on 27 May 2026. Retrieved 20 May 2026.
Examples for tournament-rec
  1. {{Cricinfo 2|tournament-rec|id=icc-world-test-championship-2025-2027-16977|rec=match results|event=2025–2027 World Test Championship}}
    Outcome: 2025–2027 World Test Championship, team match results at Cricinfo
  2. {{Cricinfo 2|tournament-rec|id=icc-men-s-t20-world-cup-2025-26-17604|rec=most centuries|event=2026 Men's T20 World Cup|access-date=20 May 2026|dynamic=y}}
    Outcome: 2026 Men's T20 World Cup, batting most hundreds career at Cricinfo. Retrieved 20 May 2026.
  3. {{Cricinfo 2|tournament-rec|id=indian-premier-league-2026-17740|rec=bbi|event=2026 Indian Premier League|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20260527055241/https://www.Cricinfo.com/records/tournament/bowling-best-figures-innings/indian-premier-league-2026-17740|archive-date=27 May 2026}}
    Outcome: 2026 Indian Premier League, bowling best figures innings at Cricinfo. Archived from the original on 27 May 2026. Retrieved 20 May 2026.

Supported values for tournament-rec

Following values can be used for the |rec= parameter in the tournament-rec function:

  • Team: match results, highest team totals, lowest team totals, highest match aggregates, lowest match aggregates, largest victory margins, smallest victory margins and most extras in an innings
  • Batting: most runs, highest scores, highest average, highest strike rate, highest strike rate in an innings, most centuries, most fifties, most ducks, most sixes, most sixes in an innings and most runs from fours and sixes in an innings
  • Bowling: most wickets, bbi, bbm, best average, best economy, best economy in an innings, best strike rate, best strike rate in an innings, most 4wi, most 5wi, most 10wm and most runs conceded in an innings
  • Wicket-keeping: most dismissals, most dismissals in an innings and most dismissals in a match
  • Fielding: most catches, most catches in an innings and most catches in a match
  • Partnership: highest partnerships by wicket and highest partnerships by runs

trophy and trophy-rec

The functions trophy and trophy-rec are used to generate links to trophy-record-pages (recurring tours–The Ashes, championships–World Test Championship, tournaments–Men's T20 World Cup, leaues–Indian Premier League etc.) on CI website. They provide the base URL of Cricinfo.com/records/trophy/.

Examples for trophy
  1. {{Cricinfo 2|trophy|id=the-ashes-1|event=The Ashes}}
    Outcome: The Ashes records at Cricinfo
  2. {{Cricinfo 2|trophy|id=icc-world-test-championship-804|event=World Test Championship}}
    Outcome: World Test Championship records at Cricinfo
  3. {{Cricinfo 2|trophy|id=icc-men-s-t20-world-cup-89|event=Men's T20 World Cup|access-date=20 May 2026|dynamic=y}}
    Outcome: Men's T20 World Cup records at Cricinfo. Retrieved 20 May 2026.
  4. {{Cricinfo 2|trophy|id=indian-premier-league-117|event=Indian Premier League|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20250815081846/https://www.Cricinfo.com/records/trophy/indian-premier-league-117|archive-date=15 August 2025}}
    Outcome: Indian Premier League records at Cricinfo. Archived from the original on 15 August 2025. Retrieved 20 May 2026.
Examples for trophy-rec
  1. {{Cricinfo 2|trophy-rec|id=the-ashes-1|rec=series results|event=The Ashes}}
    Outcome: The Ashes, team series results at Cricinfo
  2. {{Cricinfo 2|trophy-rec|id=icc-world-test-championship-804|rec=list of 5wi|event=World Test Championship}}
    Outcome: World Test Championship, bowling list 5wi at Cricinfo
  3. {{Cricinfo 2|trophy-rec|id=icc-men-s-t20-world-cup-89|rec=list of centuries|event=Men's T20 World Cup|access-date=20 May 2026|dynamic=y}}
    Outcome: Men's T20 World Cup, batting list hundreds at Cricinfo. Retrieved 20 May 2026.
  4. {{Cricinfo 2|trophy-rec|id=indian-premier-league-117|rec=most dismissals in a series|event=Indian Premier League|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20241219024831/https://www.Cricinfo.com/records/trophy/keeping-most-dismissals-series/indian-premier-league-117|archive-date=19 December 2024}}
    Outcome: Indian Premier League, keeping most dismissals series at Cricinfo. Archived from the original on 19 December 2024. Retrieved 20 May 2026.

Supported values for trophy-rec

Following values can be used for the |rec= parameter in the trophy-rec function:

  • Team: series results, match results season, results summary, highest team totals, lowest team totals, highest match aggregates, lowest match aggregates, largest victory margins, smallest victory margins and most extras in an innings
  • Batting: most runs in a series, most runs, highest scores, highest average, highest strike rate, highest strike rate in an innings, list of centuries, most centuries, most fifties, most ducks, most sixes, most sixes in an innings and most runs from fours and sixes in an innings
  • Bowling: most wickets in a series, most wickets, bbi, bbm, best average, best economy, best economy in an innings, best strike rate, best strike rate in an innings, list of 4wi, most 4wi, list of 5wi, most 5wi, list of 10wm, most 10wm and most runs conceded in an innings
  • Wicket-keeping: most dismissals in a series, most dismissals, most dismissals in an innings and most dismissals in a match
  • Fielding: most catches in a series, most catches, most catches in an innings and most catches in a match
  • Partnership: highest partnerships by wicket, highest partnerships by runs and list of hundred partnerships
  • Individual: most matches, most matches as captain and most matches as an umpire

cricketer and cricketer-sub

The functions cricketer and cricketer-sub are used to generate links to cricketer/player pages on CI website. They provide the base URL of Cricinfo.com/cricketers/.

team

The function team is used to generate links to cricket-team-pages on CI website. It provides the base URLs of Cricinfo.com/team/.

team-r and team-rec

The functions team-r and team-rec are used to generate links to team-record-pages on CI website. They provide the base URL of Cricinfo.com/records/team/.

cricket-ground

The function cricket-ground is used to generate links to cricket-ground-pages on CI website. It provides the base URL of Cricinfo.com/cricket-grounds/.

ground-r and ground-rec

The functions ground-r ground-rec are used to generate links to ground-record-pages on CI website. They provide the base URL of Cricinfo.com/records/ground/.

auction and auction-sub

The functions auction and auction-sub are used to generate links to cricket player auction pages on CI website. They provide the base URL of Cricinfo.com/auction/.

Examples for auction
  1. {{Cricinfo 2|auction|id=ipl-2026-auction-1515016|event=2026 IPL auction}}
    Outcome: 2026 IPL auction at Cricinfo
  2. {{Cricinfo 2|auction|id=ipl-2026-auction-1515016|event=2026 IPL auction|access-date=20 May 2026|dynamic=y}}
    Outcome: 2026 IPL auction at Cricinfo. Retrieved 20 May 2026.
  3. {{Cricinfo 2|auction|id=ipl-2026-auction-1515016|event=2026 IPL auction|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20260107180510/https://www.Cricinfo.com/auction/ipl-2026-auction-1515016|archive-date=7 January 2026}}
    Outcome: 2026 IPL auction at Cricinfo. Archived from the original on 7 January 2026. Retrieved 20 May 2026.
Examples for auction-sub
  1. {{Cricinfo 2|auction-sub|id=ipl-2026-auction-1515016|sub=all players|event=2026 IPL auction}}
    Outcome: 2026 IPL auction – All players at Cricinfo
  2. {{Cricinfo 2|auction-sub|id=ipl-2026-auction-1515016|sub=sold players|event=2026 IPL auction|access-date=20 May 2026|dynamic=y}}
    Outcome: 2026 IPL auction – Sold players at Cricinfo. Retrieved 20 May 2026.
  3. {{Cricinfo 2|auction-sub|id=ipl-2026-auction-1515016|sub=unsold players|event=2026 IPL auction|access-date=20 May 2026|dynamic=n|archive-url=https://web.archive.org/web/20260107180511/https://www.Cricinfo.com/auction/ipl-2026-auction-1515016/unsold-players|archive-date=7 January 2026}}
    Outcome: 2026 IPL auction – Unsold players at Cricinfo. Archived from the original on 7 January 2026. Retrieved 20 May 2026.

Supported values for auction-sub

Following values can be used for the |sub= parameter in the auction-sub function: live blog, all players, sold players, unsold players and top buys.

scorecard, story and news

These functions are not supported by the template; consider using the {{cite web}} template instead.

Other required parameters

[edit]

id

[edit]

Cricinfo pages have both a numeric ID and an alpha-numeric ID, but only the alpha-numeric IDs should be used to define the |id= parameter. Examples:

Type Function Numeric ID X mark Alpha-numeric ID check
Series series, series-sub and series-squad 1411166
1389387
icc-men-s-t20-world-cup-2024-1411166
anthony-de-mello-trophy-2023-24-1389387
Squads series-squad 1515123 australia-3rd-test-squad-1515123
Series-records series-r and series-rec 15634 anthony-de-mello-trophy-2023-24-15634
Tournament tournament and tournament-rec 15946 icc-men-s-t20-world-cup-2024-15946
Trophy trophy and trophy-rec 136 icc-women-s-t20-world-cup-136
Cricketer cricketer and cricketer-sub 311158 ben-stokes-311158
Team team 5
1358720
new-zealand-5
mumbai-indians-women-1358720
Team-records team-r and team-rec 5
7050
new-zealand-5
mumbai-indians-women-7050
Cricket-grounds cricket-ground 57129 lord-s-london-57129
Ground-records ground-r and ground-rec 10 eng-lord-s-london-10
Auction auction and auction-sub
Cricket-format[a] format, format-rec, team-rec and ground-rec 3 twenty20-internationals-3
  1. As an exception |format= uses pre-defined values instead (and does not require |id= in format and format-rec functions). See below for a list of supported values.

ID from Wikidata

[edit]

Currently under development; will be available soon.

event and name

[edit]

The title of the topic being linked to. By default the template recognises the {{PAGENAMEBASE}} and does not need to be defined in such pages. Not needed for format function; and will be ignored even if defined.

The |event= parameter works with series, series-sub, series-squad, series-r, series-rec, tournament, tournament-rec, trophy, trophy-rec, auction and auction-sub functions.

The |name= parameter works with cricketer, cricketer-sub, team, team-r, team-rec, cricket-ground, ground-r and ground-rec functions.

rec and sub

[edit]

The |rec= parameter is required for the format-rec, series-rec, tournament-rec, trophy-rec, team-rec and ground-rec functions. The |sub= parameter is required for the series-sub, cricketer-sub and auction-sub functions. Lists of supported values are available in their respective documentations.

squad and squad-id

[edit]

Respective squad's alpha-numeric ID; See the table above.

format

[edit]

Format of the cricket, only to be used with format, format-rec, team-rec and ground-rec functions. Supported values: test, odi, t20i, fc, la, t20, wtest, wodi, wt20i, wt20, test+odi+t20i, fc+la+t20, minor, ytest, yodi and all.

Additional parameters

[edit]

Following parameters are required when using the template to generate a citation; otherwise the template would generate an external link.

access-date

[edit]

dynamic

[edit]

archive-url and archive-date

[edit]

Deprecated parameters

[edit]

Following parameter configurations have been deprecated and will display an error message if used.

ref

[edit]

The usage of |ref= parameter has been deprecated; consider using the |id= parameter directly.

stat

[edit]

The configuration using the |stat= parameter for tournament and trophy functions has been deprecated; consider using the tournament-rec and trophy-rec functions instead.

TemplateData

[edit]

Tracking categories

[edit]

Error messages

[edit]