• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Crsh

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here

Template documentation[view] [edit] [history] [purge]

This template is for sorting cricket results, with a hidden sortkey. (cricket result sort, hidden) The table header must have the data-sort-type="number" parameter set.

Usage
  • {{crsh| {{{result}}} | {{{margin}}} | {{{number}}} }}

The first parameter is the result:

  • W, for a win
  • L, for a loss
  • D, for a drawn match
  • T, for a tied match

The second parameter is the type of win or loss:

  • I, for an innings win or loss
  • R, for a win or loss by runs
  • W, for a win or loss by wickets
  • Leave this blank for a tied or drawn match

The third parameter is number of runs or wickets:

  • Enter as a number.
  • Leave this blank for a tied or drawn match

This template works by placing a hidden sortkey before the visible text.

Examples

markup Display
{{Crsh|W|I|300}} Won by an innings and 300 runs
{{Crsh|W|R|60}} Won by 60 runs
{{Crsh|W|W|10}} Won by 10 wickets
{{Crsh|T}} Match tied
{{Crsh|D}} Match drawn
{{Crsh|L|I|7}} Lost by an innings and 7 runs
{{Crsh|L|R|300}} Lost by 300 runs
{{Crsh|L|W|1}} Lost by 1 wicket
The above documentation is transcluded from Template:Crsh/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Crsh&oldid=12810"
Category:
  • Sorting templates
Last edited on 6 May 2019, at 07:07

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 6 May 2019, at 07:07.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop