Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.

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

From PCGamingWiki, the wiki about fixing PC games
m (rephrased likely canceled)
m (temporarily comment away {{#var:PC booter}} from the DOSBox note population)
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<tr>
+
<includeonly><tr>
 
<td class="template-infobox-type"><!--
 
<td class="template-infobox-type"><!--
 
-->{{#switch:{{{1|}}}
 
-->{{#switch:{{{1|}}}
Line 10: Line 10:
 
|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]])[[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| ]]}}
 
|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| ]]}}
 
|Wineskin
 
|Wineskin
Line 49: Line 49:
 
  |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. Developer however has not officially denied nor confirmed its cancellation.}} [[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.}} [[Likely cancelled::{{{1}}}| ]]{{#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}} [[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}}}}}} | {{{2|}}} }}
+
|#Default = {{#iferror: {{Date|{{{2}}}|mdy}} [[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|true}} }} | {{{2|}}} }}
 
}}
 
}}
 
{{#ifeq: {{NAMESPACE}} | | [[Category:{{{1}}}]] }}
 
{{#ifeq: {{NAMESPACE}} | | [[Category:{{{1}}}]] }}
  |#Default = This value is not permitted. <includeonly>[[Category:Invalid template usage (infobox game)]]</includeonly>
+
  |#Default = This value is not permitted. [[Category:Invalid template usage (infobox game)]]
}}{{{ref|}}}<includeonly>{{#switch:{{{2|}}}|Canceled|Cancelled= <!-- 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>
+
}}{{{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>

Revision as of 16:51, 7 May 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.
  3. ref= - An optional third augment that can be used to display a reference next to the date, such as for a linked news/press release. Note that ref= must be included for the reference to be displayed.
Syntax
{{Infobox game/row/date| <OS NAME> | <DATE> | ref=<ref>{{Refurl|url=|title=|date=yyy-mm-dd}}</ref>}}
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.

Date formats

The template makes use of the #time parser function, see its official documentation for details. If a date or month is omitted from the input, the function will assume the first of the omitted data, e.g. January 1 if only a year is provided, or the first day of the month if only a month and year is provided. Do not use any other date format than the ones mentioned below.

The standardized format to use is as follows:

  • May 20, 2023 (always use this if an exact date is known)
  • May 2023 (this will be treated as May 1, 2023 in lists, which may be undesirable)
  • 2023 (will be treated as January 1, 2023 in lists; contemplate using December 31, 2023 instead as a placeholder)

The following alternate input is accepted, and handled separarely:

  • TBA (to be announced; use for unreleased games with an unknown release date)
  • Unknown (only for games that have been released)
  • EA
  • Early Access
  • Cancelled
  • Likely cancelled