Difference between revisions of "Template:Infobox game/row/date"

From PCGamingWiki, the wiki about fixing PC games
m (fixed EA vardefine separator)
(wrappers vardefine plural)
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
  |#Default = {{{1}}}
 
  |#Default = {{{1}}}
 
}}{{#if:{{{wrapper|}}}| {{#switch:{{{1|}}}
 
}}{{#if:{{{wrapper|}}}| {{#switch:{{{1|}}}
|Windows 3.x={{#ifeq:{{{wrapper|}}}|Win32s|([[Windows 3.x#Win32s|Win32s]])[[Wrapper::Win32s| ]]|[[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>}}
+
|Windows 3.x={{#ifeq:{{{wrapper|}}}|Win32s|([[Windows 3.x#Win32s|Win32s]]){{#vardefine:current wrapper|Win32s}}[[Wrapper::Win32s| ]]|[[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>}}
 
|Windows
 
|Windows
 
|OS X
 
|OS X
 
|Linux={{#switch: {{{wrapper|}}}
 
|Linux={{#switch: {{{wrapper|}}}
|DOSBox=([[DOSBox]])[[Wrapper::DOSBox| ]][[{{{1|}}} wrapper::DOSBox| ]]{{#if:{{#var:DOS}}<!--{{#var:PC booter}}-->|{{#vardefine:{{{1|}}} DOSBox|true}}|[[Category:Invalid template usage (infobox game)]]}}
+
|DOSBox=([[DOSBox]]){{#vardefine:current wrapper|DOSBox}}[[Wrapper::DOSBox| ]][[{{{1|}}} wrapper::DOSBox| ]]{{#if:{{#var:DOS}}<!--{{#var:PC booter}}-->|{{#vardefine:{{{1|}}} DOSBox|true}}|[[Category:Invalid template usage (infobox game)]]}}
|Wine={{#ifeq:{{{1|}}}|Windows|[[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper 'Wine' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>|([[Wine]])[[Wrapper::Wine| ]][[{{{1|}}} wrapper::Wine| ]]{{#vardefine:{{{1|}}} native|true}}}}
+
|Wine={{#ifeq:{{{1|}}}|Windows|[[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper 'Wine' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>|([[Wine]]){{#vardefine:current wrapper|Wine}}[[Wrapper::Wine| ]][[{{{1|}}} wrapper::Wine| ]]{{#vardefine:{{{1|}}} native|true}}}}
 
|Wineskin
 
|Wineskin
 
|Cider={{#ifeq:{{{1|}}}|OS X|([[{{{wrapper|}}}]])[[Wrapper::{{{wrapper|}}}| ]][[OS X wrapper::{{{wrapper|}}}| ]]{{#vardefine:OS X native|true}}|[[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>}}
 
|Cider={{#ifeq:{{{1|}}}|OS X|([[{{{wrapper|}}}]])[[Wrapper::{{{wrapper|}}}| ]][[OS X wrapper::{{{wrapper|}}}| ]]{{#vardefine:OS X native|true}}|[[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>}}
|ScummVM=([[ScummVM]])[[Wrapper::ScummVM| ]][[{{{1|}}} wrapper::ScummVM| ]]{{#vardefine:ScummVM|true}}
+
|ScummVM=([[ScummVM]]){{#vardefine:current wrapper|ScummVM}}[[Wrapper::ScummVM| ]][[{{{1|}}} wrapper::ScummVM| ]]{{#vardefine:ScummVM|true}}
 
|DOSBox, ScummVM
 
|DOSBox, ScummVM
|ScummVM, DOSBox=(<abbr title="DOSBox version also available">ScummVM</abbr>)[[Wrapper::DOSBox| ]][[Wrapper::ScummVM| ]][[{{{1|}}} wrapper::DOSBox| ]][[{{{1|}}} wrapper::ScummVM| ]]{{#vardefine:ScummVM|true}}{{#if:{{#var:DOS}}{{#var:PC booter}}||[[Category:Invalid template usage (infobox game)]]}}
+
|ScummVM, DOSBox=(<abbr title="DOSBox version also available">ScummVM</abbr>){{#vardefine:current wrapper|DOSBox, ScummVM}}[[Wrapper::DOSBox| ]][[Wrapper::ScummVM| ]][[{{{1|}}} wrapper::DOSBox| ]][[{{{1|}}} wrapper::ScummVM| ]]{{#vardefine:ScummVM|true}}{{#if:{{#var:DOS}}{{#var:PC booter}}||[[Category:Invalid template usage (infobox game)]]}}
 
|DOSBox, emulator
 
|DOSBox, emulator
|emulator, DOSBox=(<abbr title="DOSBox version also available">emulator</abbr>)[[Wrapper::DOSBox| ]][[Wrapper::emulator| ]][[{{{1|}}} wrapper::DOSBox| ]][[{{{1|}}} wrapper::emulator| ]]{{#if:{{#var:DOS}}{{#var:PC booter}}||[[Category:Invalid template usage (infobox game)]]}}
+
|emulator, DOSBox=(<abbr title="DOSBox version also available">emulator</abbr>){{#vardefine:current wrapper:DOSBox, emulator}}[[Wrapper::DOSBox| ]][[Wrapper::emulator| ]][[{{{1|}}} wrapper::DOSBox| ]][[{{{1|}}} wrapper::emulator| ]]{{#if:{{#var:DOS}}{{#var:PC booter}}||[[Category:Invalid template usage (infobox game)]]}}
|emulator=(emulator)[[Wrapper::emulator| ]][[{{{1|}}} wrapper::emulator| ]]
+
|emulator=(emulator){{#vardefine:current wrapper|emulator}}[[Wrapper::emulator| ]][[{{{1|}}} wrapper::emulator| ]]
 
|#Default = [[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>
 
|#Default = [[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>
 
}}
 
}}
 
|#Default = [[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>
 
|#Default = [[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>
}}|{{#switch:{{{1|}}}
+
}}{{#vardefine:wrappers|{{#if:{{#var:wrappers}}|{{#var:wrappers}},{{#var:current wrapper}}|{{#var:current wrapper}}}}}}{{#vardefine:{{{1|}}} wrappers|{{#if:{{#var:{{{1|}}} wrappers}}|{{#var:{{{1|}}} wrappers}},{{#var:current wrapper}}|{{#var:current wrapper}}}}}}{{#vardefine:current wrapper|}}|{{#switch:{{{1|}}}
 
|Windows 3.x
 
|Windows 3.x
 
|Windows
 
|Windows

Revision as of 00:20, 25 September 2021

Documentation for the above template (sometimes hidden from view).

{{Infobox game/row/date}} is used to list the release dates of different operating systems that the game was released for on PCs. Correctly using the appropriate OS name will result in the appropriate categories and rows being automatically placed on the page.

Arguments
  1. <OS NAME> - The first argument defines the OS the date is related to. Possible options include:
    • DOS
    • Windows
    • OS X - Remember that OS X isn't the same thing as Mac OS!
    • Linux
    • Mac OS - Remember that Mac OS isn't the same thing as OS X!
  2. <DATE> - The second argument should specify the date the game was released on the system in question.
    • The date must be in a valid format to be recognized ("21 February 2001", "February 21, 2001", "2001", "February 2001"), or a recognized special state such as "TBA", "EA", "Unknown", "Likely cancelled", or "Cancelled". See the notes further down for more information.
Syntax
{{Infobox game/row/date| <OS NAME> | <DATE> }}
Notes
  • Regional release dates should never be listed. Only ever list the relevant OS release date, always choosing the earliest it was made available in any region on that specific platform. Similarly, release dates for digital distribution services should also be ignored.
  • For release dates, list the earliest official platform release first (ex. if the game was released on OS X first, list the OS X release date at the top)
  • In the case that multiple releases share the same date, organize the dates in the following order (for all the platforms that apply):
    • PC booter
    • DOS
    • Windows 3.x
    • Windows
    • Mac OS
    • macOS/OS X
    • Linux
  • For games with unannounced release date, use TBA as the date. Only replace the date when the game has official release date.
  • For games in Early Access, use EA as the date. Only replace the date when the game has officially left Early Access.
  • For games that are still available to public via Early Access or public beta test, but remain incomplete and it is not known whether the game will ever be finished, use Unknown as the date.
  • For games that used to be available to public via Early Access or public beta test and are no longer available with no official announcement of their cancellation, use LC (Likely cancelled) as the date.
  • For games that used to be available in some form and were officially cancelled, use Cancelled as the date.