Difference between revisions of "Template:Cite video game/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Salix alba
(move sandbox test lower)
imported>Codename Lisa
(Starting error control stress test)
Line 1: Line 1:
 
{{template test cases notice}}
 
{{template test cases notice}}
 
 
 
== Testing main template ==
 
== Testing main template ==
 
+
===Good cases, erroneous date===
<code><nowiki>{{cite video game | title = TILE | developer = DEVELOPER | publisher = PUBLISHER | date = {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} | platform = PLATFORM | version = VERSION | level = LEVEL | language = English | quote = '''Quote''' Quote }}</nowiki></code>
+
;{{tlf|Cite video game}} with all parameters
 
+
:{{cite video game
{{cite video game | title = TILE | developer = DEVELOPER | publisher = PUBLISHER | date = {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} | platform = PLATFORM | version = VERSION | level = LEVEL | language = English | quote = '''Quote''' Quote }}
+
| title = Awesome Game!!!
 
+
| developer = Contoso
 
+
| publisher = Fabrikam
<code><nowiki>{{cite video game
+
| date = 2019-19-19<!--Deliberate invalid date-->
| title = [[World of Warcraft]]
+
| platform = Doorz<sup>Built on TNT Technology</sup>
| developer = [[Blizzard Entertainment]]
+
| version = 12.8
| publisher = [[Vivendi Universal]]
+
| scene = Before talking about the stuff
| date = 2004-11-23
+
| level = 19
| platform = [[Mac OS X]]
+
| language = German
| version = 1.0
+
| quote = "And thou shall behold into the barrel of this laser gun!"
| level = [[Locations in the Warcraft Universe#Brill|Brill]]
 
| language = English
 
| quote = '''Orc:''' For the horde!
 
}}</nowiki></code>
 
 
 
{{cite video game
 
| title = [[World of Warcraft]]
 
| developer = [[Blizzard Entertainment]]
 
| publisher = [[Vivendi Universal]]
 
| date = 2004-11-23
 
| platform = [[Mac OS X]]
 
| version = 1.0
 
| level = [[Locations in the Warcraft Universe#Brill|Brill]]
 
| language = English
 
| quote = '''Orc:''' For the horde!
 
 
}}
 
}}
  
Minimal usage:
+
;{{tlf|invoke:Citation/CS1}} equivalent
<code><nowiki>{{cite video game
+
:{{#invoke:Citation/CS1|citation
| title = [[World of Warcraft]]
+
| title = Awesome Game!!!
| developer = [[Blizzard Entertainment]]
+
| issue = v12.8
| publisher = [[Vivendi Universal]]
+
| volume = Doorz<sup>Built on TNT Technology</sup>
| date = 2004-11-23
+
| author = Contoso
}}</nowiki></code>
+
| publisher = Fabrikam
 
+
| date = 2019-19-19<!--Deliberate invalid date-->
{{cite video game
+
| at = Scene: Before talking about the stuff. Level/area: 19
| title = [[World of Warcraft]]
+
| language = German
| developer = [[Blizzard Entertainment]]
+
| quote = "And thou shall behold into the barrel of this laser gun!"
| publisher = [[Vivendi Universal]]
 
| date = 2004-11-23
 
 
}}
 
}}
  
== Testing sandbox version ==
+
;{{tlf|Cite video game}} with essential parameters only:
 +
:{{cite video game |title=Awesome Game!!! | developer=Contoso}}
  
<code><nowiki>{{cite video game/sandbox | title = TILE | developer = DEVELOPER | publisher = PUBLISHER | date = {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} | platform = PLATFORM | version = VERSION | level = LEVEL | language = English | quote = '''Quote''' Quote }}</nowiki></code>
+
===Error cases===
 +
;{{tlf|Cite video game}} with no parameters. Must generate an error:
 +
:{{cite video game}}
  
{{cite video game/sandbox | title = TILE | developer = DEVELOPER | publisher = PUBLISHER | date = {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} | platform = PLATFORM | version = VERSION | level = LEVEL | language = English | quote = '''Quote''' Quote }}
+
;{{tlf|Cite video game}} with all parameters except mandatory ones. Must generate an error:
 +
:{{cite video game
 +
| publisher = Fabrikam
 +
| date = 2019-19-19<!--Deliberate invalid date-->
 +
| platform = Doorz<sup>Built on TNT Technology</sup>
 +
| version = 12.8
 +
| scene = Before talking about the stuff
 +
| level = 19
 +
| language = German
 +
| quote = "And thou shall behold into the barrel of this laser gun!"
 +
}}
  
<code><nowiki>{{cite video game/sandbox
+
;{{tlf|Cite video game}} with all parameters without title. Must generate an error:
| title = [[World of Warcraft]]
+
:{{cite video game
| developer = [[Blizzard Entertainment]]
+
| developer = Contoso
| publisher = [[Vivendi Universal]]
+
| publisher = Fabrikam
| date = 2004-11-23
+
| date = 2019-19-19<!--Deliberate invalid date-->
| platform = [[Mac OS X]]
+
| platform = Doorz<sup>Built on TNT Technology</sup>
| version = 1.0
+
| version = 12.8
| level = [[Locations in the Warcraft Universe#Brill|Brill]]
+
| scene = Before talking about the stuff
| language = English
+
| level = 19
| quote = '''Orc:''' For the horde!
+
| language = German
}}</nowiki></code>
+
| quote = "And thou shall behold into the barrel of this laser gun!"
 
 
{{cite video game/sandbox
 
| title = [[World of Warcraft]]
 
| developer = [[Blizzard Entertainment]]
 
| publisher = [[Vivendi Universal]]
 
| date = 2004-11-23
 
| platform = [[Mac OS X]]
 
| version = 1.0
 
| level = [[Locations in the Warcraft Universe#Brill|Brill]]
 
| language = English
 
| quote = '''Orc:''' For the horde!
 
 
}}
 
}}
  
Minimal usage:
+
;{{tlf|Cite video game}} with all parameters without developer. Must generate an error:
<code><nowiki>{{cite video game/sandbox
+
:{{cite video game
| title = [[World of Warcraft]]
+
| title = Awesome Game!!!
| developer = [[Blizzard Entertainment]]
+
| publisher = Fabrikam
| publisher = [[Vivendi Universal]]
+
| date = 2019-19-19<!--Deliberate invalid date-->
| date = 2004-11-23
+
| platform = Doorz<sup>Built on TNT Technology</sup>
}}</nowiki></code>
+
| version = 12.8
 
+
| scene = Before talking about the stuff
{{cite video game/sandbox
+
| level = 19
| title = [[World of Warcraft]]
+
| language = German
| developer = [[Blizzard Entertainment]]
+
| quote = "And thou shall behold into the barrel of this laser gun!"
| publisher = [[Vivendi Universal]]
 
| date = 2004-11-23
 
 
}}
 
}}

Revision as of 09:43, 27 December 2013

Testing main template

Good cases, erroneous date

{{Cite video game}} with all parameters
Contoso (2019-19-19). Awesome Game!!! (DoorzBuilt on TNT Technology) (in German) (12.8 ed.). Fabrikam. Scene: Before talking about the stuff. Level/area: 19. And thou shall behold into the barrel of this laser gun! Check date values in: |date= (help)
{{invoke:Citation/CS1}} equivalent
Empty citation (help)
{{Cite video game}} with essential parameters only
Contoso. Awesome Game!!!.

Error cases

{{Cite video game}} with no parameters. Must generate an error
Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall
{{Cite video game}} with all parameters except mandatory ones. Must generate an error
Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall
{{Cite video game}} with all parameters without title. Must generate an error
Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall
{{Cite video game}} with all parameters without developer. Must generate an error
Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall