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


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

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|{{{port|}}}}}}| {{#switch:{{{1|}}}
+
}}{{#if:{{{wrapper|}}}| {{#switch:{{{1|}}}
|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>}}
+
|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|{{{port|}}}}}}
+
|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|{{{port|}}}}}}' 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 '{{{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|{{{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|}}}' 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>
+
|#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.