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

From blackwiki
Jump to navigation Jump to search
imported>Benzband
m (+ usage and reason)
imported>Extra999
Line 9: Line 9:
 
*{{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 different from name: <tt><nowiki>[[link|name]]</nowiki></tt>
 
;format
 
;format
*{{para|format|test}} or {{para|2|test}} or {{para|format|Test}} or {{para|2|Test}} produces {{CGR|Example|test}}
+
*{{para|format|test}} or {{para|2|test}} or {{para|format|Test}} or {{para|2|Test}} or {{para|format|Tests}} or {{para|2|Tests}} produces {{CGR|Example|test}}
 
*{{para|format|odi}} or {{para|2|odi}} or {{para|format|ODI}} or {{para|2|ODI}} produces {{CGR|Example|odi}}
 
*{{para|format|odi}} or {{para|2|odi}} or {{para|format|ODI}} or {{para|2|ODI}} produces {{CGR|Example|odi}}
 
*{{para|format|T20I}} or {{para|2|T20I}} or {{para|format|T2OI}} or {{para|2|T2OI}} produces {{CGR|Example|T20I}}
 
*{{para|format|T20I}} or {{para|2|T20I}} or {{para|format|T2OI}} or {{para|2|T2OI}} produces {{CGR|Example|T20I}}

Revision as of 02:53, 31 May 2012

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=test or |2=test or |format=Test or |2=Test or |format=Tests or |2=Tests produces
  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • |format=odi or |2=odi or |format=ODI or |2=ODI produces
  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • |format=T20I or |2=T20I or |format=T2OI or |2=T2OI produces
  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • |format=all or |2=all produces
  1. REDIRECT Template:WikiProject Classical Greece and Rome
  • two formats can be added, using |format_2= (except for "all")
    • 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/general/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