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

From PCGamingWiki, the wiki about fixing PC games
m (fixed vardefine parameter used)
(removed Semantic MediaWiki tagging (migrated to Cargo))
 
(3 intermediate revisions 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}}|[[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}}{{#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}}{{#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|}}}]]){{#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}}{{#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}}{{#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}}{{#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}}
 
|#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
Line 36: Line 36:
 
<td class="template-infobox-info"><!--
 
<td class="template-infobox-info"><!--
 
-->{{#switch:{{{1|}}}
 
-->{{#switch:{{{1|}}}
|Windows 3.x = {{Date|{{{2}}}|mdy}} {{#ifeq: {{NAMESPACE}} | | [[Category:Windows 3.x]]}}[[Available on::Windows 3.x| ]][[Release date Windows 3x::{{{2}}}| ]][[Release date::{{{2}}}| ]]{{#vardefine:released Windows 3.x|{{{2}}}}}{{#vardefine:released|{{#if:{{#var:released}}|{{#var:released}};{{{2}}}|{{{2}}}}}}}{{#vardefine:available on|{{#if:{{#var:available on}}|{{#var:available on}},Windows 3.x|Windows 3.x}}}}
+
|Windows 3.x = {{Date|{{{2}}}|mdy}} {{#ifeq: {{NAMESPACE}} | | [[Category:Windows 3.x]]}}{{#vardefine:released Windows 3.x|{{{2}}}}}{{#vardefine:released|{{#if:{{#var:released}}|{{#var:released}};{{{2}}}|{{{2}}}}}}}{{#vardefine:available on|{{#if:{{#var:available on}}|{{#var:available on}},Windows 3.x|Windows 3.x}}}}
 
|PC booter
 
|PC booter
 
|DOS
 
|DOS
Line 45: Line 45:
 
  |TBD
 
  |TBD
 
  |TBA = TBA{{#vardefine:show HDR|true}}
 
  |TBA = TBA{{#vardefine:show HDR|true}}
  |EA = Early access [[Available on::{{{1}}}| ]]{{#vardefine:available on|{{#if:{{#var:available on}}|{{#var:available on}};{{{1}}}|{{{1}}}}}}}{{#vardefine:show HDR|true}}
+
  |EA = Early access {{#vardefine:available on|{{#if:{{#var:available on}}|{{#var:available on}},{{{1}}}|{{{1}}}}}}}{{#vardefine:show HDR|true}}
 
  |Unknown = {{Abbr|Unknown|Despite the game being available for purchase, game remains incomplete and it is not known whether the game will ever be finished.}}{{#vardefine:show HDR|true}}
 
  |Unknown = {{Abbr|Unknown|Despite the game being available for purchase, game remains incomplete and it is not known whether the game will ever be finished.}}{{#vardefine:show HDR|true}}
 
  |Likely canceled
 
  |Likely canceled
 
  |Likely cancelled
 
  |Likely cancelled
  |LC = {{Abbr|Likely cancelled|While previously announced, and possibly even available to the public in some form, the full release of this version has likely been cancelled, although this have neither been confirmed nor denied by the developer.}} [[Likely cancelled::{{{1}}}| ]]{{#vardefine:show HDR|true}}
+
  |LC = {{Abbr|Likely cancelled|While previously announced, and possibly even available to the public in some form, the full release of this version has likely been cancelled, although this have neither been confirmed nor denied by the developer.}} {{#vardefine:show HDR|true}}
 
  |Canceled
 
  |Canceled
 
  |Cancelled = {{Abbr|Cancelled|While previously announced, and possibly even available to the public in some form, the full release of this version has been cancelled.}}
 
  |Cancelled = {{Abbr|Cancelled|While previously announced, and possibly even available to the public in some form, the full release of this version has been cancelled.}}
|#Default = {{#iferror: {{Date|{{{2}}}|mdy}} {{#vardefine:released {{{1}}}|{{{2}}}}}{{#vardefine:available on|{{#if:{{#var:available on}}|{{#var:available on}},{{{1}}}|{{{1}}}}}}}[[Release date {{{1}}}::{{{2}}}| ]][[Release date::{{{2}}}| ]][[Available on::{{{1}}}| ]]{{#ifexpr: {{#time: Y|{{{2|}}}}}>=2016|{{#if:{{#var:Windows native}}{{#var:OS X native}}{{#var:Linux native}}|{{#vardefine:show HDR|true}}}}}} {{#ifexpr: {{#time: U | {{{2|}}} }} <= {{#time: U | now }} | {{#vardefine:released|{{#if:{{#var:released}}|{{#var:released}};{{{2}}}|{{{2}}}}}}} }} | {{{2|}}} }}
+
|#Default = {{#iferror: {{Date|{{{2}}}|mdy}} {{#vardefine:released {{{1}}}|{{{2}}}}}{{#vardefine:available on|{{#if:{{#var:available on}}|{{#var:available on}},{{{1}}}|{{{1}}}}}}}{{#ifexpr: {{#time: Y|{{{2|}}}}}>=2016|{{#if:{{#var:Windows native}}{{#var:OS X native}}{{#var:Linux native}}|{{#vardefine:show HDR|true}}}}}} {{#ifexpr: {{#time: U | {{{2|}}} }} <= {{#time: U | now }} | {{#vardefine:released|{{#if:{{#var:released}}|{{#var:released}};{{{2}}}|{{{2}}}}}}} }} | {{{2|}}} }}
 
}}
 
}}
 
{{#ifeq: {{NAMESPACE}} | | [[Category:{{{1}}}]] }}
 
{{#ifeq: {{NAMESPACE}} | | [[Category:{{{1}}}]] }}
 
  |#Default = This value is not permitted. [[Category:Invalid template usage (infobox game)]]
 
  |#Default = This value is not permitted. [[Category:Invalid template usage (infobox game)]]
 
}}{{{ref|}}}{{#switch:{{{2|}}}|Canceled|Cancelled= {{#vardefine:{{{1}}} cancelled|true}} <!-- Don't set OS variable at all for cancelled releases --> |#Default={{#vardefine:{{{1}}}|true}}}}{{#ifeq: {{{2|}}} | ? | [[Category:Pages with no release dates]] | {{#ifeq: {{{2|}}} | | {{#ifeq: {{NAMESPACE}} | |[[Category:Pages with no release dates]]}}}} }}</td>{{#if: {{{3|}}}{{{port|}}}|[[Category:Invalid template usage (infobox game)]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}{{{ref|}}}{{#switch:{{{2|}}}|Canceled|Cancelled= {{#vardefine:{{{1}}} cancelled|true}} <!-- Don't set OS variable at all for cancelled releases --> |#Default={{#vardefine:{{{1}}}|true}}}}{{#ifeq: {{{2|}}} | ? | [[Category:Pages with no release dates]] | {{#ifeq: {{{2|}}} | | {{#ifeq: {{NAMESPACE}} | |[[Category:Pages with no release dates]]}}}} }}</td>{{#if: {{{3|}}}{{{port|}}}|[[Category:Invalid template usage (infobox game)]]}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 01:38, 17 October 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.