Difference between revisions of "Template:Cricket graph requests/doc"

From blackwiki
Jump to navigation Jump to search
imported>Benzband
(update)
imported>Benzband
m (update)
Line 7: Line 7:
  
 
;name (required)
 
;name (required)
*{{para|name}} or {{para|1}} for defining the linked name: <tt><nowiki>[[name]]</nowiki></tt>
+
*{{para|name}} or {{para|1}} for defining the (linked) name
*{{para|link}} and {{para|name}} for defining a link different from name: <tt><nowiki>[[link|name]]</nowiki></tt>
+
*{{para|link}} and {{para|name}} for defining a link if different from the name (<tt><nowiki>[[link|name]]</nowiki></tt>)
 +
**the header option can be disabled by inserting {{para|header|no}}, which produces:
 +
{{CGR|Example|header=no}}
  
 
;format
 
;format
 
{{para|format}} or {{para|2}}:
 
{{para|format}} or {{para|2}}:
*set to "test", "Test", "tests" or "Tests" produces
+
*set to "test", "Test", "tests" or "Tests" produces:
 
{{CGR|Example|test}}
 
{{CGR|Example|test}}
* set to "odi", "ODI", "odis" or "ODIs" produces
+
* set to "odi", "ODI", "odis" or "ODIs" produces:
 
{{CGR|Example|odi}}
 
{{CGR|Example|odi}}
* set to "T20I", "t20i" or "T20Is" produces
+
* set to "T20I", "t20i" or "T20Is" produces:
 
{{CGR|Example|T20I}}
 
{{CGR|Example|T20I}}
*set to "all" produces
+
*set to "all" produces:
 
{{CGR|Example|all}}
 
{{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}}
+
*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

Revision as of 15:07, 1 June 2012

This template is used at WP:CRIC/GR.

Parameters

name (required)
  • |name= or |1= for defining the (linked) name
  • |link= and |name= for defining a link if different from the name ([[link|name]])
    • the header option can be disabled by inserting |header=no, which produces:
  1. REDIRECT Template:WikiProject Classical Greece and Rome
format

|format= or |2=:

  • set to "test", "Test", "tests" or "Tests" produces:
  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • set to "odi", "ODI", "odis" or "ODIs" produces:
  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • set to "T20I", "t20i" or "T20Is" produces:
  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • set to "all" produces:
  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • 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:
  1. REDIRECT Template:WikiProject Classical Greece and Rome
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

  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • a |reason= can be specified for this, producing
  1. REDIRECT Template:WikiProject Classical Greece and Rome

Examples

  • {{CGR|Example|T20I|note}} would produce:
  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • {{CGR|link=Ross Taylor|name=Taylor, Ross|format=Test|format 2=ODI|cricinfoid=38699|note=Note for Taylor}} would produce:
  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • if no parameters are specified whatsoever, the template produces an error message. thus, {{CGR}} alone would produce:
  1. REDIRECT Template:WikiProject Classical Greece and Rome