Difference between revisions of "Template:Infobox game/row/date"
From PCGamingWiki, the wiki about fixing PC games
(adjusted HDR check to make starting year (2016) clearer and only set for native ports) |
(overhauled non-native handling ("wrapper" instead of "port", check for valid OS+wrapper combo, visible error messages), added Windows 3.x category namespace check) |
||
Line 5: | Line 5: | ||
|Mac OS = Mac OS (Classic) | |Mac OS = Mac OS (Classic) | ||
|#Default = {{{1}}} | |#Default = {{{1}}} | ||
− | }}{{#if:{{{port|}}}|{{#switch:{{{port|}}} | + | }}{{#if:{{{wrapper|{{{port|}}}}}}| {{#switch:{{{1|}}} |
− | |DOSBox | + | |Windows 3.x={{#ifeq:{{{wrapper|{{{port|}}}}}}|Win32s|([[Windows 3.x#Win32s|Win32s]])[[Wrapper::Win32s| ]]|[[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|{{{port|}}}}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>}} |
− | |Wine= | + | |Windows |
− | |ScummVM= | + | |OS X |
− | |DOSBox, ScummVM | + | |Linux={{#switch: {{{wrapper|{{{port|}}}}}} |
− | |ScummVM, DOSBox= | + | |DOSBox=([[DOSBox]])[[Wrapper::DOSBox| ]][[{{{1|}}} wrapper::DOSBox| ]] |
− | |DOSBox, emulator | + | |Wine={{#ifeq:{{{1|}}}|Windows|[[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|{{{port|}}}}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div>|([[Wine]])[[Wrapper::Wine| ]][[{{{1|}}} wrapper::Wine| ]]}} |
− | |emulator, DOSBox= | + | |ScummVM=([[ScummVM]])[[Wrapper::ScummVM| ]][[{{{1|}}} wrapper::ScummVM| ]]{{#vardefine:ScummVM|true}} |
− | |emulator= | + | |DOSBox, ScummVM |
− | |#Default = [[Category:Invalid template usage (infobox game)]] | + | |ScummVM, DOSBox=(<abbr title="DOSBox version also available">ScummVM</abbr>)[[Wrapper::DOSBox| ]][[Wrapper::ScummVM| ]][[{{{1|}}} wrapper::DOSBox| ]][[{{{1|}}} wrapper::ScummVM| ]]{{#vardefine:ScummVM|true}} |
− | }}|{{#switch:{{{1|}}} | + | |DOSBox, emulator |
− | |Windows | + | |emulator, DOSBox=(<abbr title="DOSBox version also available">emulator</abbr>)[[Wrapper::DOSBox| ]][[Wrapper::emulator| ]][[{{{1|}}} wrapper::DOSBox| ]][[{{{1|}}} wrapper::emulator| ]] |
− | |OS X | + | |emulator=(emulator)[[Wrapper::emulator| ]][[{{{1|}}} wrapper::emulator| ]] |
− | |Linux={{#vardefine:{{{1|}}} native|true}}}}}}</td> | + | |#Default = [[Category:Invalid template usage (infobox game)]]<div title="Error: wrapper '{{{wrapper|{{{port|}}}}}}' 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|{{{port|}}}}}}' not supported for this operating system" class="svg-icon svg-25 tickcross-error"></div> | ||
+ | }}|{{#switch:{{{1|}}} | ||
+ | |Windows 3.x | ||
+ | |Windows | ||
+ | |OS X | ||
+ | |Linux={{#vardefine:{{{1|}}} native|true}}}}}}</td> | ||
<td class="template-infobox-info"><!-- | <td class="template-infobox-info"><!-- | ||
-->{{#switch:{{{1|}}} | -->{{#switch:{{{1|}}} | ||
− | |Windows 3.x = {{Date|{{{2}}}|mdy}} [[Category:Windows 3.x]][[Available on::Windows 3.x| ]][[Release date Windows 3x::{{{2}}}| ]][[Release date::{{{2}}}| ]] | + | |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}}}| ]] |
|PC booter | |PC booter | ||
|DOS | |DOS |
Revision as of 08:37, 8 June 2019
{{{1}}} This value is not permitted.