Difference between revisions of "Template:Cricinfo/testcases"
Jump to navigation
Jump to search
imported>Zyxw (update) |
imported>Zyxw (update) |
||
| Line 4: | Line 4: | ||
''URL:'' | ''URL:'' | ||
| − | + | : <tt>[http://www.espncricinfo.com/ci/content/player/35320.html http://www.espncricinfo.com/ci/content/player/{{hilite|35320}}.html]</tt> | |
| + | |||
''Usage:'' | ''Usage:'' | ||
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 35320 | name= Sachin Tendulkar }}</code> | |
| − | ''Output:'' | + | : ''Output:'' {{{{BASEPAGENAME}} | id= 35320 | name= Sachin Tendulkar }} |
| − | + | : ''Sandbox:'' {{{{BASEPAGENAME}}/sandbox | id= 35320 | name= Sachin Tendulkar }} | |
| − | ''Sandbox:'' | ||
| − | |||
| + | ''Usage with accessdate parameter:'' | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 35320 | name= Sachin Tendulkar | accessdate= 25 February 2017 }}</code> | ||
| + | : ''Output:'' {{{{BASEPAGENAME}} | id= 35320 | name= Sachin Tendulkar | accessdate= 25 February 2017 }} | ||
| + | : ''Sandbox:'' {{{{BASEPAGENAME}}/sandbox | id= 35320 | name= Sachin Tendulkar | accessdate= 25 February 2017 }} | ||
| − | == Using "ref" parameter == | + | === Using "ref" parameter === |
| − | |||
''URL:'' | ''URL:'' | ||
| − | + | : <tt>[http://www.espncricinfo.com/pakistan/content/ground/59011.html http://www.espncricinfo.com/{{hilite|pakistan/content/player/39343}}.html]</tt> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
''Usage:'' | ''Usage:'' | ||
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium }}</code> | |
| − | ''Output:'' | + | : ''Output:'' {{{{BASEPAGENAME}} | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium }} |
| − | + | : ''Sandbox:'' {{{{BASEPAGENAME}}/sandbox | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium }} | |
| − | ''Sandbox:'' | ||
| − | |||
| + | ''Usage with ".html" in ref parameter:'' | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ref= pakistan/content/ground/59011.html | name= Zafar Ali Stadium }}</code> | ||
| + | : ''Output:'' {{{{BASEPAGENAME}} | ref= pakistan/content/ground/59011.html | name= Zafar Ali Stadium }} | ||
| + | : ''Sandbox:'' {{{{BASEPAGENAME}}/sandbox | ref= pakistan/content/ground/59011.html | name= Zafar Ali Stadium }} | ||
| − | + | ''Usage with accessdate parameter:'' | |
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium | accessdate= 25 February 2017 }}</code> | |
| − | + | : ''Output:'' {{{{BASEPAGENAME}} | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium | accessdate= 25 February 2017 }} | |
| − | + | : ''Sandbox:'' {{{{BASEPAGENAME}}/sandbox | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium | accessdate= 25 February 2017 }} | |
| − | |||
| − | ''Output:'' | ||
| − | |||
| − | ''Sandbox:'' | ||
| − | |||
| − | |||
| − | |||
Revision as of 16:25, 26 February 2017
| 42px | This is the template test cases page for the sandbox of Template:Cricinfo. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Using "id" parameter
URL:
Usage:
{{Cricinfo | id= 35320 | name= Sachin Tendulkar }}- Output: Sachin Tendulkar at ESPNcricinfoScript error: No such module "EditAtWikidata".
- Sandbox: Sachin Tendulkar at ESPNcricinfoScript error: No such module "EditAtWikidata".
Usage with accessdate parameter:
{{Cricinfo | id= 35320 | name= Sachin Tendulkar | accessdate= 25 February 2017 }}- Output: "Sachin Tendulkar". ESPNcricinfo. Retrieved 25 February 2017.
- Sandbox: "Sachin Tendulkar". ESPNcricinfo. Retrieved 25 February 2017.
Using "ref" parameter
URL:
Usage:
{{Cricinfo | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium }}- Output: Zafar Ali Stadium at ESPNcricinfoScript error: No such module "EditAtWikidata".
- Sandbox: Zafar Ali Stadium at ESPNcricinfoScript error: No such module "EditAtWikidata".
Usage with ".html" in ref parameter:
{{Cricinfo | ref= pakistan/content/ground/59011.html | name= Zafar Ali Stadium }}- Output: Zafar Ali Stadium at ESPNcricinfoScript error: No such module "EditAtWikidata".
- Sandbox: Zafar Ali Stadium at ESPNcricinfoScript error: No such module "EditAtWikidata".
Usage with accessdate parameter:
{{Cricinfo | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium | accessdate= 25 February 2017 }}- Output: "Zafar Ali Stadium". ESPNcricinfo. Retrieved 25 February 2017.
- Sandbox: "Zafar Ali Stadium". ESPNcricinfo. Retrieved 25 February 2017.