Difference between revisions of "Development:Infobox game/row/date"
From PCGamingWiki, the wiki about fixing PC games
(test 'available on') |
|||
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:available on|{{#if:{{#var:available on}}|{{#var:available on}}, | + | |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:available on|{{#if:{{#var:available on}}|{{#var:available on}},Windows 3.x|Windows 3.x}}}} |
|PC booter | |PC booter | ||
|DOS | |DOS | ||
Line 52: | Line 52: | ||
|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}},{{{ | + | |#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|true}} }} | {{{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> |
Revision as of 07:22, 4 September 2021
Documentation for the above template (sometimes hidden from view).
Visit Development:Infobox game/row/date/Documentation to edit this text. (How does this work?)