Difference between revisions of "Template:Cricinfo/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update)
imported>Zyxw
(update)
Line 1: Line 1:
 
{{template test cases notice}}
 
{{template test cases notice}}
  
== Named parameters ==
+
== Using "id" parameter ==
  
=== with .html in ref parameter ===
 
 
''Usage:''
 
''Usage:''
* <code><nowiki>{{</nowiki>Cricinfo | ref= pakistan/content/player/39343.html | name= Abdul Aziz }}</code>
+
* <code><nowiki>{{</nowiki>Cricinfo | id= 39343 | name= Abdul Aziz }}</code>
 
''Output:''
 
''Output:''
* {{Cricinfo | ref= pakistan/content/player/39343.html | name= Abdul Aziz }}
+
* {{Cricinfo | id= 39343 | name= Abdul Aziz }}
 
''Sandbox:''
 
''Sandbox:''
* {{Cricinfo/sandbox | ref= pakistan/content/player/39343.html | name= Abdul Aziz }}
+
* {{Cricinfo/sandbox | id= 39343 | name= Abdul Aziz }}
 +
 
 +
 
 +
== Using "ref" parameter ==
  
=== without .html in ref parameter ===
+
=== without .html ===
 
''Usage:''
 
''Usage:''
 
* <code><nowiki>{{</nowiki>Cricinfo | ref= pakistan/content/player/39343 | name= Abdul Aziz }}</code>
 
* <code><nowiki>{{</nowiki>Cricinfo | ref= pakistan/content/player/39343 | name= Abdul Aziz }}</code>
Line 19: Line 21:
 
* {{Cricinfo/sandbox | ref= pakistan/content/player/39343 | name= Abdul Aziz }}
 
* {{Cricinfo/sandbox | ref= pakistan/content/player/39343 | name= Abdul Aziz }}
  
== Unnamed parameters ==
+
=== with .html ===
 
 
=== with .html in first parameter ===
 
 
''Usage:''
 
''Usage:''
* <code><nowiki>{{</nowiki>Cricinfo | pakistan/content/player/39343.html | Abdul Aziz }}</code>
+
* <code><nowiki>{{</nowiki>Cricinfo | ref= pakistan/content/player/39343.html | name= Abdul Aziz }}</code>
 
''Output:''
 
''Output:''
* {{Cricinfo | pakistan/content/player/39343.html | Abdul Aziz }}
+
* {{Cricinfo | ref= pakistan/content/player/39343.html | name= Abdul Aziz }}
 
''Sandbox:''
 
''Sandbox:''
* {{Cricinfo/sandbox | pakistan/content/player/39343.html | Abdul Aziz }}
+
* {{Cricinfo/sandbox | ref= pakistan/content/player/39343.html | name= Abdul Aziz }}
 
 
=== without .html in first parameter ===
 
''Usage:''
 
* <code><nowiki>{{</nowiki>Cricinfo | pakistan/content/player/39343 | Abdul Aziz }}</code>
 
''Output:''
 
* {{Cricinfo | pakistan/content/player/39343 | Abdul Aziz }}
 
''Sandbox:''
 
* {{Cricinfo/sandbox | pakistan/content/player/39343 | Abdul Aziz }}
 

Revision as of 17:30, 18 January 2014

Using "id" parameter

Usage:

  • {{Cricinfo | id= 39343 | name= Abdul Aziz }}

Output:

Sandbox:


Using "ref" parameter

without .html

Usage:

  • {{Cricinfo | ref= pakistan/content/player/39343 | name= Abdul Aziz }}

Output:

Sandbox:

with .html

Usage:

  • {{Cricinfo | ref= pakistan/content/player/39343.html | name= Abdul Aziz }}

Output:

Sandbox: