Difference between revisions of "Template:Infobox game/row/date"
From PCGamingWiki, the wiki about fixing PC games
(overhauled non-native handling ("wrapper" instead of "port", check for valid OS+wrapper combo, visible error messages), added Windows 3.x category namespace check) |
(removed old "port" parameter) |
||
Line 5: | Line 5: | ||
|Mac OS = Mac OS (Classic) | |Mac OS = Mac OS (Classic) | ||
|#Default = {{{1}}} | |#Default = {{{1}}} | ||
− | }}{{#if:{{{wrapper | + | }}{{#if:{{{wrapper|}}}| {{#switch:{{{1|}}} |
− | |Windows 3.x={{#ifeq:{{{wrapper | + | |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 | |Windows | ||
|OS X | |OS X | ||
− | |Linux={{#switch: {{{wrapper| | + | |Linux={{#switch: {{{wrapper|}}} |
|DOSBox=([[DOSBox]])[[Wrapper::DOSBox| ]][[{{{1|}}} wrapper::DOSBox| ]] | |DOSBox=([[DOSBox]])[[Wrapper::DOSBox| ]][[{{{1|}}} wrapper::DOSBox| ]] | ||
− | |Wine={{#ifeq:{{{1|}}}|Windows|[[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper| | + | |Wine={{#ifeq:{{{1|}}}|Windows|[[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>|([[Wine]])[[Wrapper::Wine| ]][[{{{1|}}} wrapper::Wine| ]]}} |
|ScummVM=([[ScummVM]])[[Wrapper::ScummVM| ]][[{{{1|}}} wrapper::ScummVM| ]]{{#vardefine:ScummVM|true}} | |ScummVM=([[ScummVM]])[[Wrapper::ScummVM| ]][[{{{1|}}} wrapper::ScummVM| ]]{{#vardefine:ScummVM|true}} | ||
|DOSBox, ScummVM | |DOSBox, ScummVM | ||
Line 18: | Line 18: | ||
|emulator, DOSBox=(<abbr title="DOSBox version also available">emulator</abbr>)[[Wrapper::DOSBox| ]][[Wrapper::emulator| ]][[{{{1|}}} wrapper::DOSBox| ]][[{{{1|}}} wrapper::emulator| ]] | |emulator, DOSBox=(<abbr title="DOSBox version also available">emulator</abbr>)[[Wrapper::DOSBox| ]][[Wrapper::emulator| ]][[{{{1|}}} wrapper::DOSBox| ]][[{{{1|}}} wrapper::emulator| ]] | ||
|emulator=(emulator)[[Wrapper::emulator| ]][[{{{1|}}} wrapper::emulator| ]] | |emulator=(emulator)[[Wrapper::emulator| ]][[{{{1|}}} wrapper::emulator| ]] | ||
− | |#Default = [[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper| | + | |#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| | + | |#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|}}} | }}|{{#switch:{{{1|}}} | ||
|Windows 3.x | |Windows 3.x | ||
Line 45: | Line 45: | ||
{{#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. <includeonly>[[Category:Invalid template usage (infobox game)]]</includeonly> | ||
− | }}{{{ref|}}}<includeonly>{{#vardefine:{{{1}}}|true}}{{#ifeq: {{{2|}}} | ? | [[Category:Pages with no release dates]] | {{#ifeq: {{{2|}}} | | {{#ifeq: {{NAMESPACE}} | |[[Category:Pages with no release dates]]}}}} }}</td>{{#if: {{{3|}}}|[[Category:Invalid template usage (infobox game)]]}}</includeonly> | + | }}{{{ref|}}}<includeonly>{{#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> |
Revision as of 12:01, 8 June 2019
{{{1}}} This value is not permitted.