Difference between revisions of "Template:Cricinfo/testcases"
Jump to navigation
Jump to search
imported>Zyxw m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB) |
imported>Zyxw (→Using "ref" parameter: update URL) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Testcases notice <!--|toc=on-->}} |
+ | |||
+ | == Missing or empty "id" or "ref" == | ||
+ | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | ||
+ | |code=<nowiki>{{__TEMPLATENAME__}}</nowiki> | ||
+ | }} | ||
+ | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | ||
+ | |code=<nowiki>{{__TEMPLATENAME__ | }}</nowiki> | ||
+ | }} | ||
+ | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | ||
+ | |code=<nowiki>{{__TEMPLATENAME__ |id= }}</nowiki> | ||
+ | }} | ||
+ | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | ||
+ | |code=<nowiki>{{__TEMPLATENAME__ |ref= }}</nowiki> | ||
+ | }} | ||
== Using "id" parameter == | == Using "id" parameter == | ||
+ | <kbd>[http://www.espncricinfo.com/ci/content/player/35320.html http://www.espncricinfo.com/ci/content/player/{{hilite|35320}}.html]</kbd> | ||
− | + | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | |
− | + | |code=<nowiki>{{__TEMPLATENAME__ |id=35320 }}</nowiki> | |
− | + | }} | |
− | + | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | |
− | + | |code=<nowiki>{{__TEMPLATENAME__ |id=35320 |name=Sachin Tendulkar }}</nowiki> | |
− | + | }} | |
− | + | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | |
− | + | |code=<nowiki>{{__TEMPLATENAME__ |id=35320 |name=Sachin Tendulkar |accessdate=25 February 2017 }}</nowiki> | |
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Using "ref" parameter == | |
− | + | <kbd>[http://www.espncricinfo.com/pakistan/content/ground/59011.html http://www.espncricinfo.com/{{hilite|pakistan/content/ground/59011}}.html]</kbd> | |
− | |||
− | |||
− | + | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | |
− | + | |code=<nowiki>{{__TEMPLATENAME__ |ref=pakistan/content/ground/59011 }}</nowiki> | |
− | + | }} | |
− | + | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | |
+ | |code=<nowiki>{{__TEMPLATENAME__ |ref=pakistan/content/ground/59011 |name=Zafar Ali Stadium }}</nowiki> | ||
+ | }} | ||
+ | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | ||
+ | |code=<nowiki>{{__TEMPLATENAME__ |ref=pakistan/content/ground/59011.html |name=Zafar Ali Stadium }}</nowiki> | ||
+ | }} | ||
+ | {{Test case nowiki|format=tablerows|collapsible=yes|output=nowiki+|showcode=no|titlecode=yes | ||
+ | |code=<nowiki>{{__TEMPLATENAME__ |ref=pakistan/content/ground/59011 |name=Zafar Ali Stadium |accessdate=25 February 2017 }}</nowiki> | ||
+ | }} | ||
− | + | <!-- | |
− | + | {{clear}} | |
− | + | == References == | |
− | + | {{reflist}} | |
+ | --> |
Latest revision as of 06:26, 10 December 2019
![]() | 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: |
Missing or empty "id" or "ref"
{{Cricinfo}} | ||||||
---|---|---|---|---|---|---|
|
{{Cricinfo | }} | ||||||
---|---|---|---|---|---|---|
|
{{Cricinfo |id= }} | ||||||
---|---|---|---|---|---|---|
|
{{Cricinfo |ref= }} | ||||||
---|---|---|---|---|---|---|
|
Using "id" parameter
http://www.espncricinfo.com/ci/content/player/35320.html
{{Cricinfo |id=35320 }} | ||||||
---|---|---|---|---|---|---|
|
{{Cricinfo |id=35320 |name=Sachin Tendulkar }} | ||||||
---|---|---|---|---|---|---|
|
{{Cricinfo |id=35320 |name=Sachin Tendulkar |accessdate=25 February 2017 }} | ||||||
---|---|---|---|---|---|---|
|
Using "ref" parameter
http://www.espncricinfo.com/pakistan/content/ground/59011.html
{{Cricinfo |ref=pakistan/content/ground/59011 }} | ||||||
---|---|---|---|---|---|---|
|
{{Cricinfo |ref=pakistan/content/ground/59011 |name=Zafar Ali Stadium }} | ||||||
---|---|---|---|---|---|---|
|
{{Cricinfo |ref=pakistan/content/ground/59011.html |name=Zafar Ali Stadium }} | ||||||
---|---|---|---|---|---|---|
|
{{Cricinfo |ref=pakistan/content/ground/59011 |name=Zafar Ali Stadium |accessdate=25 February 2017 }} | ||||||
---|---|---|---|---|---|---|
|