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 AppleGamingWiki, the wiki about gaming on M1 Apple silicon Macs
(d)
 
m (d)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><tr>
 
<includeonly><tr>
<td class="template-infobox-type"></td>
+
<td class="template-infobox-type">{{#switch:{{lc:{{{1|}}}}}
 +
|macos = macOS
 +
|ios = iOS
 +
|ipados = iPadOS
 +
|tvos = tvOS
 +
|#Default = <div title="Error: '{{{1|}}}' not recognized" class="svg-icon svg-16 os-error"></div> [[Category:Invalid template usage (infobox game)]]
 +
}}</td>
 
<td class="template-infobox-info">{{#switch:{{{2|}}}
 
<td class="template-infobox-info">{{#switch:{{{2|}}}
 
  |TBD
 
  |TBD
Line 11: Line 17:
 
  |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}}}}}} {{#ifexpr: {{#time: U | {{{2|}}} }} <= {{#time: U | now }} | {{#vardefine:released|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|}}}}}
 
}}{{{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 18:01, 28 March 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 property (that is, with 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:
    • macOS
    • iOS
    • iPadOS
    • tvOS
  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):
    • macOS
    • iOS
    • iPadOS
    • tvOS
  • 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.