Difference between revisions of "Template:Cricket graph requests"
Jump to navigation
Jump to search
imported>Extra999 |
imported>Extra999 |
||
| Line 10: | Line 10: | ||
-->{{#ifeq:{{{format|{{{2|{{{format_2|}}}}}}}}}|t2Oi|([[Twenty20 International{{!}}<span style="color:#736F6E">T20I</span>]])|}}<!-- | -->{{#ifeq:{{{format|{{{2|{{{format_2|}}}}}}}}}|t2Oi|([[Twenty20 International{{!}}<span style="color:#736F6E">T20I</span>]])|}}<!-- | ||
-->{{#ifeq:{{{format|{{{2|<noinclude>all</noinclude>}}}}}}|all|([[Test match{{!}}<span style="color:#736F6E">Test</span>]]{{·}}[[One Day International{{!}}<span style="color:#736F6E">ODI</span>]]{{·}}[[Twenty20 International{{!}}<span style="color:#736F6E">T20I</span>]])|}} <!-- | -->{{#ifeq:{{{format|{{{2|<noinclude>all</noinclude>}}}}}}|all|([[Test match{{!}}<span style="color:#736F6E">Test</span>]]{{·}}[[One Day International{{!}}<span style="color:#736F6E">ODI</span>]]{{·}}[[Twenty20 International{{!}}<span style="color:#736F6E">T20I</span>]])|}} <!-- | ||
| − | -->{{#if:{{{cricinfoid|}}}|<small><span class="plainlinks">([http://www.espncricinfo.com/ | + | -->{{#if:{{{cricinfoid|}}}|<small><span class="plainlinks">([http://www.espncricinfo.com/ci/content/player/{{{cricinfoid|}}}.html Cricinfo profile])</span></small>|}} <!-- |
-->{{#if:{{{note|{{{3|<noinclude>note</noinclude>}}}}}}|{{{note|{{{3|<noinclude>note</noinclude>}}}}}}.|}}<!-- | -->{{#if:{{{note|{{{3|<noinclude>note</noinclude>}}}}}}|{{{note|{{{3|<noinclude>note</noinclude>}}}}}}.|}}<!-- | ||
-->{{#if:{{{usage|}}}{{{1|<noinclude>name</noinclude>}}}{{{name|}}}{{{link|}}}{{{2|}}}{{{format|}}}{{{format_2|}}}{{{cricinfoid|}}}{{{3|}}}{{{note|}}}||{{error|no parameters specified}}}}<!-- | -->{{#if:{{{usage|}}}{{{1|<noinclude>name</noinclude>}}}{{{name|}}}{{{link|}}}{{{2|}}}{{{format|}}}{{{format_2|}}}{{{cricinfoid|}}}{{{3|}}}{{{note|}}}||{{error|no parameters specified}}}}<!-- | ||
Revision as of 11:26, 31 May 2012
Example
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
- the header, which normally displays the defined name, can be disabled by inserting
format
|format= or |2=:
In the following examples, header has been disabled.
- set to "test", "Test", "tests" or "Tests" produces:
==
==
==
==
- Example (Test · ODI · T20I)
- 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:
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:
==
{{Cricket graph requests|link=Ross Taylor|name=Taylor, Ross|format=Test|format 2=ODI|cricinfoid=38699|note=Note for Taylor}}would produce:
==
- Taylor, Ross (Test) (Cricinfo profile) 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
| The above documentation is transcluded from Template:Cricket graph requests/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |