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

From blackwiki
Jump to navigation Jump to search
imported>The1337gamer
imported>IceWelder
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
== Testing main template ==
 
== Testing main template ==
 
===Good cases, erroneous date===
 
===Good cases, erroneous date===
;{{tlf|Cite video game}} with all parameters
+
==== All parameters ====
:{{cite video game
+
{{test case
 
| title = Awesome Game!!!
 
| title = Awesome Game!!!
 
| developer = Contoso
 
| developer = Contoso
Line 16: Line 16:
 
}}
 
}}
  
;{{tlf|invoke:Citation/CS1}} equivalent
+
==== Essential only ====
:{{#invoke:Citation/CS1|citation
+
{{test case
| title = Awesome Game!!!
+
| title=Awesome Game!!!
| issue = v12.8
+
| developer=Contoso
| volume = Doorz<sup>Built on TNT Technology</sup>
 
| author = Contoso
 
| publisher = Fabrikam
 
| date = 2019-19-19<!--Deliberate invalid date-->
 
| at = Scene: Before talking about the stuff. Level/area: 19
 
| language = German
 
| quote = "And thou shall behold into the barrel of this laser gun!"
 
 
}}
 
}}
  
;{{tlf|Cite video game}} with essential parameters only:
+
==== All except level ====
:{{cite video game |title=Awesome Game!!! | developer=Contoso}}
+
{{test case
 
 
;{{tlf|Cite video game}} with all parameters except level
 
:{{cite video game
 
 
| title = Awesome Game!!!
 
| title = Awesome Game!!!
 
| developer = Contoso
 
| developer = Contoso
Line 42: Line 32:
 
| scene = Before talking about the stuff
 
| scene = Before talking about the stuff
 
| language = German
 
| language = German
| quote = "And thou shall behold into the barrel of this laser gun!"
+
| quote = And thou shall behold into the barrel of this laser gun!
}}
 
 
 
;{{tlf|Cite video game}} with all parameters except scene
 
:{{cite video game
 
| title = Awesome Game!!!
 
| developer = Contoso
 
| publisher = Fabrikam
 
| date = 2019-19-19<!--Deliberate invalid date-->
 
| platform = Doorz<sup>Built on TNT Technology</sup>
 
| version = 12.8
 
| level = 19
 
| language = German
 
| quote = "And thou shall behold into the barrel of this laser gun!"
 
 
}}
 
}}
  
*{{cite video game
+
==== All except scene ====
 +
{{test case
 
| title = [[World of Warcraft]]
 
| title = [[World of Warcraft]]
 
| developer = [[Blizzard Entertainment]]
 
| developer = [[Blizzard Entertainment]]
Line 71: Line 49:
  
 
===Error cases===
 
===Error cases===
;{{tlf|Cite video game}} with no parameters. Must generate an error:
+
These should each generate an error.
:{{cite video game}}
 
  
;{{tlf|Cite video game}} with all parameters except mandatory ones. Must generate an error:
+
==== No parameters ====
:{{cite video game
+
{{test case}}
 +
 
 +
==== All parameters less mandatory ====
 +
{{test case
 
| publisher = Fabrikam
 
| publisher = Fabrikam
 
| date = 2019-19-19<!--Deliberate invalid date-->
 
| date = 2019-19-19<!--Deliberate invalid date-->
Line 83: Line 63:
 
| level = 19
 
| level = 19
 
| language = German
 
| language = German
| quote = "And thou shall behold into the barrel of this laser gun!"
+
| quote = And thou shall behold into the barrel of this laser gun!
 
}}
 
}}
  
;{{tlf|Cite video game}} with all parameters without title. Must generate an error:
+
==== All parameters less title ====
:{{cite video game
+
{{test case
 
| developer = Contoso
 
| developer = Contoso
 
| publisher = Fabrikam
 
| publisher = Fabrikam
Line 96: Line 76:
 
| level = 19
 
| level = 19
 
| language = German
 
| language = German
| quote = "And thou shall behold into the barrel of this laser gun!"
+
| quote = And thou shall behold into the barrel of this laser gun!
 
}}
 
}}
  
;{{tlf|Cite video game}} with all parameters without developer. Must generate an error:
+
==== All parameters less developer ====
:{{cite video game
+
{{test case
 
| title = Awesome Game!!!
 
| title = Awesome Game!!!
 
| publisher = Fabrikam
 
| publisher = Fabrikam
Line 109: Line 89:
 
| level = 19
 
| level = 19
 
| language = German
 
| language = German
| quote = "And thou shall behold into the barrel of this laser gun!"
+
| quote = And thou shall behold into the barrel of this laser gun!
 
}}
 
}}
  

Latest revision as of 18:22, 12 June 2020

Testing main template

Good cases, erroneous date

All parameters

{{Cite video game}}

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)

{{Cite video game/sandbox}}

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)

Essential only

{{Cite video game}}

Contoso. Awesome Game!!!.

{{Cite video game/sandbox}}

Contoso. Awesome Game!!!.

All except level

{{Cite video game}}

Contoso (2019-19-19). Awesome Game!!! (DoorzBuilt on TNT Technology) (in German) (12.8 ed.). Fabrikam. Scene: Before talking about the stuff. And thou shall behold into the barrel of this laser gun! Check date values in: |date= (help)

{{Cite video game/sandbox}}

Contoso (2019-19-19). Awesome Game!!! (DoorzBuilt on TNT Technology) (in German) (12.8 ed.). Fabrikam. Scene: Before talking about the stuff. And thou shall behold into the barrel of this laser gun! Check date values in: |date= (help)

All except scene

{{Cite video game}}

Blizzard Entertainment (2004-11-23). World of Warcraft (Mac OS X) (1.0 ed.). Vivendi Universal. Level/area: Brill. Orc: For the horde!

{{Cite video game/sandbox}}

Blizzard Entertainment (2004-11-23). World of Warcraft (Mac OS X) (1.0 ed.). Vivendi Universal. Level/area: Brill. Orc: For the horde!

Error cases

These should each generate an error.

No parameters

{{Cite video game}}

Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall

{{Cite video game/sandbox}}

Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall

All parameters less mandatory

{{Cite video game}}

Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall

{{Cite video game/sandbox}}

Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall

All parameters less title

{{Cite video game}}

Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall

{{Cite video game/sandbox}}

Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall

All parameters less developer

{{Cite video game}}

Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall

{{Cite video game/sandbox}}

Error: {{Cite video game}} requires title and developer parametersTemplate:Namespace detect showall

test