Difference between revisions of "Template:Cricket graph requests"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(Fix Linter errors)
imported>Joseph2302
m (Disambiguating links to Test match (link changed to Test cricket; link changed to Test cricket) using DisamAssist.)
 
Line 4: Line 4:
 
* {{#if:{{{name|{{{1|<noinclude>Example</noinclude>}}}}}}|'''[[{{{link|{{{name|{{{1|<noinclude>Example</noinclude>}}}}}}}}}{{!}}{{{name|{{{1|{{{link|<noinclude>Example</noinclude>}}}}}}}}}]]'''|}}
 
* {{#if:{{{name|{{{1|<noinclude>Example</noinclude>}}}}}}|'''[[{{{link|{{{name|{{{1|<noinclude>Example</noinclude>}}}}}}}}}{{!}}{{{name|{{{1|{{{link|<noinclude>Example</noinclude>}}}}}}}}}]]'''|}}
 
** {{#switch:{{{format|{{{2|<noinclude>all</noinclude>}}}}}}<!--
 
** {{#switch:{{{format|{{{2|<noinclude>all</noinclude>}}}}}}<!--
  -->|test|tests|Test|Tests=[[Test match|<span style="color:#736F6E">Test</span>]]<!--
+
  -->|test|tests|Test|Tests=[[Test cricket|<span style="color:#736F6E">Test</span>]]<!--
 
  -->|odi|odis|ODI|ODIs=[[One Day International|<span style="color:#736F6E">ODI</span>]]<!--
 
  -->|odi|odis|ODI|ODIs=[[One Day International|<span style="color:#736F6E">ODI</span>]]<!--
 
  -->|T20I|t20i|T20Is|t20is=[[Twenty20 International|<span style="color:#736F6E">T20I</span>]]<!--  
 
  -->|T20I|t20i|T20Is|t20is=[[Twenty20 International|<span style="color:#736F6E">T20I</span>]]<!--  
Line 12: Line 12:
 
** [[Twenty20 International|<span style="color:#736F6E">T20I</span>]]}}
 
** [[Twenty20 International|<span style="color:#736F6E">T20I</span>]]}}
 
** {{#switch:{{{format 2|{{{format_2|{{{format2|}}}}}}}}}<!--
 
** {{#switch:{{{format 2|{{{format_2|{{{format2|}}}}}}}}}<!--
  -->|test|tests|Test|Tests=[[Test match|<span style="color:#736F6E">Test</span>]]<!--
+
  -->|test|tests|Test|Tests=[[Test cricket|<span style="color:#736F6E">Test</span>]]<!--
 
  -->|odi|odis|ODI|ODIs=[[One Day International|<span style="color:#736F6E">ODI</span>]]<!--
 
  -->|odi|odis|ODI|ODIs=[[One Day International|<span style="color:#736F6E">ODI</span>]]<!--
 
  -->|T20I|t20i|T20Is|t20is=[[Twenty20 International|<span style="color:#736F6E">T20I</span>]]}}
 
  -->|T20I|t20i|T20Is|t20is=[[Twenty20 International|<span style="color:#736F6E">T20I</span>]]}}

Latest revision as of 13:57, 14 June 2020

Example

Note: Example note.
Template documentation[view] [edit] [history] [purge]


This template is used at WP:CRIC/GR.

Parameters

For this tutorial, headers have been disabled from the template using |header=no.

name

  • |name= or |1= for defining the name
  • |link= and |name= for defining a link if different from the name (as in [[link|name]])
    • the header, which normally displays the defined name, can be disabled by inserting |header=no

format

|format= or |2=:
In the following examples, header has been disabled.

  • set to "test", "Test", "tests" or "Tests" produces:
  • set to "odi", "ODI", "odis" or "ODIs" produces:
  • set to "T20I", "t20i", "t20is" or "T20Is" produces:
  • set to "all" produces:
  • two formats can be added, using |format 2= or |format_2= or |format2= (except for "all", which already includes all possibilities)
  • say, {{Cricket graph requests|name=Example|format=test|format 2=odi}} would produce:

cricinfo id

|cricinfoid= or |4= for defining a Cricinfo player id external link (as in http://www.espncricinfo.com/ci/content/player/cricinfoid.html)

note

|note= or |3= for leaving an additional note or signature

usage

|usage=suspend produces Suspended.

In this parameter, the header function is disabled.

  • a |reason= or |1= can be specified, producing
    Suspended
  Reason.
  • a |fixture= can be specified, producing
    Suspended
 Due to the ongoing matches on the tour of the Fixture.

For example, {{Cricket graph requests|usage=suspend|reason=Example}} would produce:
Suspended

  Example reason.

Examples

In the following examples, the header has not been disabled.

  • {{Cricket graph requests|Example|T20I|note}} would produce:

Example

Note: note.
  • {{Cricket graph requests|link=Ross Taylor|name=Taylor, Ross|format=Test|format 2=ODI|cricinfoid=38699|note=Note for Taylor}} would produce:

Taylor, Ross

Note: Note for Taylor.
  • if no parameters are specified whatsoever, the template produces an error message. thus, {{Cricket graph requests}} alone would produce:
no parameters specified