Difference between revisions of "Template:Cricket graph requests/doc"
Jump to navigation
Jump to search
imported>Extra999 |
imported>Benzband (update) |
||
| Line 11: | Line 11: | ||
;format | ;format | ||
| − | + | {{para|format}} or {{para|2}}: | |
| − | + | *set to "test", "Test", "tests" or "Tests" produces | |
| − | + | {{CGR|Example|test}} | |
| − | + | * set to "odi", "ODI", "odis" or "ODIs" produces | |
| − | + | {{CGR|Example|odi}} | |
| + | * set to "T20I", "t20i" or "T20Is" produces | ||
| + | {{CGR|Example|T20I}} | ||
| + | *set to "all" produces | ||
| + | {{CGR|Example|all}} | ||
*two formats can be added, using {{para|format 2}} (except for "all", which already includes all possibilities) | *two formats can be added, using {{para|format 2}} (except for "all", which already includes all possibilities) | ||
| − | + | *say, <code><nowiki>{{CGR|name=Example|format=test|format 2=odi}}</nowiki></code> would produce {{CGR|name=Example|format=test|format 2=odi}} | |
;cricinfo id | ;cricinfo id | ||
| − | + | {{para|cricinfoid}} for defining a [[Cricinfo]] player id external link: <tt><nowiki>http://www.espncricinfo.com/ci/content/player/</nowiki><u>cricinfoid</u>.html]</tt> | |
;note | ;note | ||
| − | + | {{para|note}} or {{para|3}} for leaving an additional note or signature | |
;usage | ;usage | ||
| − | + | {{para|usage|suspend}} produces {{CGR|usage=suspend}} | |
| − | + | *a {{para|reason}} can be specified for this, producing {{CGR|usage=suspend|reason=Example reason.}} | |
=== Examples === | === Examples === | ||
*<code><nowiki>{{CGR|Example|T20I|note}}</nowiki></code> would produce: | *<code><nowiki>{{CGR|Example|T20I|note}}</nowiki></code> would produce: | ||
| − | + | {{CGR|Example|T20I|note}} | |
*<code><nowiki>{{CGR|link=Ross Taylor|name=Taylor, Ross|format=Test|format 2=ODI|cricinfoid=38699|note=Note for Taylor}}</nowiki></code> would produce: | *<code><nowiki>{{CGR|link=Ross Taylor|name=Taylor, Ross|format=Test|format 2=ODI|cricinfoid=38699|note=Note for Taylor}}</nowiki></code> would produce: | ||
| − | + | {{CGR|link=Ross Taylor|name=Taylor, Ross|format=Test|format 2=ODI|cricinfoid=38699|note=Note for Taylor}} | |
*if no parameters are specified whatsoever, the template produces an error message. thus, <code><nowiki>{{CGR}}</nowiki></code> alone would produce: | *if no parameters are specified whatsoever, the template produces an error message. thus, <code><nowiki>{{CGR}}</nowiki></code> alone would produce: | ||
| − | + | {{CGR}} | |
<includeonly> | <includeonly> | ||
Revision as of 15:04, 1 June 2012
| This is a documentation subpage for Template:Cricket graph requests. It contains usage information, categories and other content that is not part of the original template page. |
This template is used at WP:CRIC/GR.
Parameters
- name (required)
|name=or|1=for defining the linked name: [[name]]|link=and|name=for defining a link different from name: [[link|name]]
- format
|format= or |2=:
- set to "test", "Test", "tests" or "Tests" produces
- set to "odi", "ODI", "odis" or "ODIs" produces
- set to "T20I", "t20i" or "T20Is" produces
- set to "all" produces
- two formats can be added, using
|format 2=(except for "all", which already includes all possibilities) - say,
{{CGR|name=Example|format=test|format 2=odi}}would produce
- cricinfo id
|cricinfoid= for defining a Cricinfo player id external link: http://www.espncricinfo.com/ci/content/player/cricinfoid.html]
- note
|note= or |3= for leaving an additional note or signature
- usage
|usage=suspend produces
- a
|reason=can be specified for this, producing
Examples
{{CGR|Example|T20I|note}}would produce:
{{CGR|link=Ross Taylor|name=Taylor, Ross|format=Test|format 2=ODI|cricinfoid=38699|note=Note for Taylor}}would produce:
- if no parameters are specified whatsoever, the template produces an error message. thus,
{{CGR}}alone would produce: