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

From blackwiki
Jump to navigation Jump to search
imported>Salix alba
imported>IceWelder
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{template test cases notice}}
 
{{template test cases notice}}
 +
== 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!"
 +
}}
  
== Testing sandbox version ==
+
==== Essential only ====
 +
{{test case
 +
| 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>
+
==== All except level ====
 
+
{{test case
{{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 }}
+
| 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/sandbox
+
==== All except scene ====
 +
{{test case
 
| title = [[World of Warcraft]]
 
| title = [[World of Warcraft]]
 
| developer = [[Blizzard Entertainment]]
 
| developer = [[Blizzard Entertainment]]
Line 17: Line 46:
 
| language = English
 
| language = English
 
| quote = '''Orc:''' For the horde!
 
| quote = '''Orc:''' For the horde!
}}</nowiki></code>
+
}}
  
{{cite video game/sandbox
+
===Error cases===
| title = [[World of Warcraft]]
+
These should each generate an error.
| 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 usagel:
+
==== No parameters ====
<code><nowiki>{{cite video game/sandbox
+
{{test case}}
| title = [[World of Warcraft]]
 
| developer = [[Blizzard Entertainment]]
 
| publisher = [[Vivendi Universal]]
 
| date = 2004-11-23
 
}}</nowiki></code>
 
  
{{cite video game/sandbox
+
==== 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>
 +
| 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!
 
}}
 
}}
  
{{clear}}
+
==== All parameters less title ====
 
+
{{test case
== Testing main template ==
+
| 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>
+
==== All parameters less developer ====
 
+
{{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!!!
 
+
| publisher = Fabrikam
 
+
| date = 2019-19-19<!--Deliberate invalid date-->
<code><nowiki>{{cite video game
+
| platform = Doorz<sup>Built on TNT Technology</sup>
| title = [[World of Warcraft]]
+
| version = 12.8
| developer = [[Blizzard Entertainment]]
+
| scene = Before talking about the stuff
| publisher = [[Vivendi Universal]]
+
| level = 19
| date = 2004-11-23
+
| language = German
| platform = [[Mac OS X]]
+
| quote = And thou shall behold into the barrel of this laser gun!
| version = 1.0
 
| 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 usagel:
+
===test===
<code><nowiki>{{cite video game
+
* {{cite video game | title = Final Doom | developer = [[id Software]] | developer2=[[TeamTNT]] | developer3=Casali brothers | publisher = [[GT Interactive]] | date = May 31, 1996| platform = PC}}
| title = [[World of Warcraft]]
+
* {{cite video game | title = Final Doom | developer = [[id Software]], [[TeamTNT]], Casali brothers | publisher = [[GT Interactive]] | date = May 31, 1996| platform = PC}}
| developer = [[Blizzard Entertainment]]
 
| publisher = [[Vivendi Universal]]
 
| date = 2004-11-23
 
}}</nowiki></code>
 
 
 
{{cite video game
 
| title = [[World of Warcraft]]
 
| developer = [[Blizzard Entertainment]]
 
| publisher = [[Vivendi Universal]]
 
| date = 2004-11-23
 
}}
 

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