Difference between revisions of "Template:Cricinfo/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update)
imported>Zyxw
(update)
Line 4: Line 4:
  
 
''URL:''
 
''URL:''
* http://www.espncricinfo.com/ci/content/player/35320.html
+
: <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>Cricinfo | id= 35320 | name= Sachin Tendulkar }}</code>
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 35320 | name= Sachin Tendulkar }}</code>
''Output:''
+
: ''Output:'' {{{{BASEPAGENAME}} | id= 35320 | name= Sachin Tendulkar }}
* {{Cricinfo | id= 35320 | name= Sachin Tendulkar }}
+
: ''Sandbox:'' {{{{BASEPAGENAME}}/sandbox | id= 35320 | name= Sachin Tendulkar }}
''Sandbox:''
 
* {{Cricinfo/sandbox | id= 35320 | name= Sachin Tendulkar }}
 
  
 +
''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 ===
  
=== without .html ===
 
 
''URL:''
 
''URL:''
* http://www.espncricinfo.com/pakistan/content/player/39343.html
+
: <tt>[http://www.espncricinfo.com/pakistan/content/ground/59011.html http://www.espncricinfo.com/{{hilite|pakistan/content/player/39343}}.html]</tt>
''Usage:''
 
* <code><nowiki>{{</nowiki>Cricinfo | ref= pakistan/content/player/39343 | name= Abdul Aziz }}</code>
 
''Output:''
 
* {{Cricinfo | ref= pakistan/content/player/39343 | name= Abdul Aziz }}
 
''Sandbox:''
 
* {{Cricinfo/sandbox | ref= pakistan/content/player/39343 | name= Abdul Aziz }}
 
  
=== with .html ===
 
''URL:''
 
* http://www.espncricinfo.com/pakistan/content/player/39343.html
 
 
''Usage:''
 
''Usage:''
* <code><nowiki>{{</nowiki>Cricinfo | ref= pakistan/content/player/39343.html | name= Abdul Aziz }}</code>
+
: <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 }}
* {{Cricinfo | ref= pakistan/content/player/39343.html | name= Abdul Aziz }}
+
: ''Sandbox:'' {{{{BASEPAGENAME}}/sandbox | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium }}
''Sandbox:''
 
* {{Cricinfo/sandbox | ref= pakistan/content/player/39343.html | name= Abdul Aziz }}
 
  
 +
''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 }}
  
== Using "accessdate" parameter ==
+
''Usage with accessdate parameter:''
''URL:''
+
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium | accessdate= 25 February 2017 }}</code>
* http://www.espncricinfo.com/ci/content/player/35320.html
+
: ''Output:'' {{{{BASEPAGENAME}} | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium | accessdate= 25 February 2017 }}
''Usage:''
+
: ''Sandbox:'' {{{{BASEPAGENAME}}/sandbox | ref= pakistan/content/ground/59011 | name= Zafar Ali Stadium | accessdate= 25 February 2017 }}
* <code><nowiki>{{</nowiki>Cricinfo | id= 35320 | name= Sachin Tendulkar | accessdate= 1 May 2013}}</code>
 
''Output:''
 
* {{Cricinfo | id= 35320 | name= Sachin Tendulkar | accessdate= 1 May 2013 }}
 
''Sandbox:''
 
* {{Cricinfo/sandbox | id= 35320 | name= Sachin Tendulkar | accessdate= 1 May 2013 }}
 
''Comparison to output of {{tl|cite web}}''
 
* {{cite web |url= http://www.espncricinfo.com/ci/content/player/35320.html |title= Player profile: Sachin Tendulkar |work= [[ESPNcricinfo]] |accessdate= 1 May 2013 }}
 

Revision as of 16:25, 26 February 2017

Using "id" parameter

URL:

http://www.espncricinfo.com/ci/content/player/35320.html

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:

http://www.espncricinfo.com/pakistan/content/player/39343.html

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.