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

From blackwiki
Jump to navigation Jump to search
imported>Salix alba
(→‎Testing main template: minimal usage)
imported>IceWelder
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{template test cases notice}}
 
{{template test cases notice}}
 
== Testing sandbox version ==
 
 
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>/sandbox}}</nowiki></code>
 
 
{{{{BASEPAGENAME}}/sandbox}}
 
 
{{clear}}
 
 
 
== Testing main template ==
 
== Testing main template ==
 +
===Good cases, erroneous date===
 +
==== All parameters ====
 +
{{test case
 +
| 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
 +
| 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 | title = TILE | developer = DEVELOPER | publisher = PUBLISHER | date = {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} | platform = PLATFORM | version = VERSION | level = LEVEL | language = English | quote = '''Quote''' Quote }}</nowiki></code>
+
==== Essential only ====
 
+
{{test case
{{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
 +
}}
  
 +
==== All except level ====
 +
{{test case
 +
| 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
 +
| scene = Before talking about the stuff
 +
| language = German
 +
| quote = And thou shall behold into the barrel of this laser gun!
 +
}}
  
<code><nowiki>{{cite video game
+
==== All except scene ====
 +
{{test case
 
| title = [[World of Warcraft]]
 
| title = [[World of Warcraft]]
 
| developer = [[Blizzard Entertainment]]
 
| developer = [[Blizzard Entertainment]]
Line 26: Line 46:
 
| language = English
 
| language = English
 
| quote = '''Orc:''' For the horde!
 
| quote = '''Orc:''' For the horde!
}}</nowiki></code>
+
}}
 +
 
 +
===Error cases===
 +
These should each generate an error.
 +
 
 +
==== No parameters ====
 +
{{test case}}
  
{{cite video game
+
==== All parameters less mandatory ====
| title = [[World of Warcraft]]
+
{{test case
| 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>
| platform = [[Mac OS X]]
+
| version = 12.8
| version = 1.0
+
| scene = Before talking about the stuff
| level = [[Locations in the Warcraft Universe#Brill|Brill]]
+
| level = 19
| language = English
+
| language = German
| quote = '''Orc:''' For the horde!
+
| quote = And thou shall behold into the barrel of this laser gun!
 
}}
 
}}
  
Minimal usagel:
+
==== All parameters less title ====
<code><nowiki>{{cite video game
+
{{test case
| title = [[World of Warcraft]]
+
| developer = Contoso
| 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
 +
| level = 19
 +
| language = German
 +
| quote = And thou shall behold into the barrel of this laser gun!
 +
}}
  
{{cite video game
+
==== All parameters less developer ====
| title = [[World of Warcraft]]
+
{{test case
| developer = [[Blizzard Entertainment]]
+
| title = Awesome Game!!!
| publisher = [[Vivendi Universal]]
+
| publisher = Fabrikam
| date = 2004-11-23
+
| 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!
 
}}
 
}}
 +
 +
===test===
 +
* {{cite video game | title = Final Doom | developer = [[id Software]]  | developer2=[[TeamTNT]] | developer3=Casali brothers | publisher = [[GT Interactive]] | date = May 31, 1996| platform = PC}}
 +
* {{cite video game | title = Final Doom | developer = [[id Software]], [[TeamTNT]], Casali brothers | publisher = [[GT Interactive]] | date = May 31, 1996| platform = PC}}

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