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

Difference between revisions of "Development:API"

From PCGamingWiki, the wiki about fixing PC games
(added DOS modes vardefine for "unknown")
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{direct3d versions|}}}{{{directdraw versions|}}}{{{wing|}}}{{{opengl versions|}}}{{{glide versions|}}}{{{software mode|}}}{{{mantle support|}}}{{{metal support|}}}{{{vulkan versions|}}}{{#var:DOS}}{{#var:PC booter}}{{{shader model versions|}}}{{{64-bit executable|}}}{{#var:Windows 3.x}}{{#var:Windows native}}{{{windows exe notes|}}}{{#var:OS X}}{{{macos app notes|}}}{{#var:Linux native}}{{{linux executable notes|}}}|
+
<noinclude>{{#cargo_declare:
{{#if:{{{direct3d versions|}}}{{{directdraw versions|}}}{{{wing|}}}{{{opengl versions|}}}{{{glide versions|}}}{{{software mode|}}}{{{mantle support|}}}{{{metal support|}}}{{{vulkan versions|}}}{{#var:DOS}}{{#var:PC booter}}{{{shader model versions|}}}{{{64-bit executable|}}}
+
_table=API
|<div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-api">{{#vardefine:section|Other_information}}
+
|Direct3D_versions=List (,) of String
 +
|DirectDraw_versions=List (,) of String
 +
|WinG=String
 +
|OpenGL_versions=List (,) of String
 +
|Glide_versions=List (,) of String
 +
|Software_renderer=String
 +
|Mantle_support=String
 +
|Metal_support=String
 +
|Vulkan_versions=List (,) of String
 +
|DOS_video_modes=List (,) of String
 +
|Shader_Model_versions=List (,) of String
 +
|Windows_16bit_executable=String
 +
|Windows_32bit_executable=String
 +
|Windows_64bit_executable=String
 +
|Windows_ARM_app=String
 +
|Mac_OS_X_PowerPC_app=String
 +
|macOS_Intel_32bit_app=String
 +
|macOS_Intel_64bit_app=String
 +
|macOS_ARM_app=String
 +
|Linux_PowerPC_app=String
 +
|Linux_32bit_executable=String
 +
|Linux_64bit_executable=String
 +
|Linux_ARM_app=String
 +
}}</noinclude><includeonly>{{#switch:{{#var:section}}
 +
|Audio
 +
|Localizations/done
 +
|Network/Multiplayer
 +
|Network/Connections
 +
|Network/Ports
 +
|VR support={{#vardefine:section|API}}
 +
|#Default = [[Category:Invalid section order]]
 +
}}{{#vardefine:API|present}}{{#if:{{{direct3d versions|}}}{{{directdraw versions|}}}{{{wing|}}}{{{opengl versions|}}}{{{glide versions|}}}{{{software mode|}}}{{{mantle support|}}}{{{metal support|}}}{{{vulkan versions|}}}{{#var:DOS}}{{#var:PC booter}}{{{shader model versions|}}}{{#var:Windows 3.x}}{{#var:Windows native}}{{{windows exe notes|}}}{{#var:OS X native}}{{{macos app notes|}}}{{#var:Linux native}}{{{linux executable notes|}}}|
 +
{{#if:{{{direct3d versions|}}}{{{directdraw versions|}}}{{{wing|}}}{{{opengl versions|}}}{{{glide versions|}}}{{{software mode|}}}{{{mantle support|}}}{{{metal support|}}}{{{vulkan versions|}}}{{#var:DOS}}{{#var:PC booter}}{{{shader model versions|}}}
 +
|<div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-api">
 
<tr class="template-infotable-head table-api-head-row">
 
<tr class="template-infotable-head table-api-head-row">
 
<th scope="col" style="width: 230px;" class="table-api-head-parameter">Technical specs</th>
 
<th scope="col" style="width: 230px;" class="table-api-head-parameter">Technical specs</th>
Line 14: Line 47:
 
<td class="table-api-body-support">{{#switch:{{lc:{{{direct3d versions|}}}}}
 
<td class="table-api-body-support">{{#switch:{{lc:{{{direct3d versions|}}}}}
 
|true
 
|true
|unknown={{Tickcross|{{{direct3d versions|}}}|Direct3D versions|unknown}}
+
|unknown={{Tickcross|{{{direct3d versions|}}}||unknown}}
|hackable={{Tickcross|hackable|Direct3D versions|{{{direct3d notes|}}}}}
+
|hackable={{Tickcross|hackable||{{{direct3d notes|}}}}}
 
|#default={{#arraymaptemplate:{{{direct3d versions}}}|API/switch Direct3D|,|,&#32;}} }}</td>
 
|#default={{#arraymaptemplate:{{{direct3d versions}}}|API/switch Direct3D|,|,&#32;}} }}</td>
 
<td class="table-api-body-notes">{{{direct3d notes|}}}</td>
 
<td class="table-api-body-notes">{{{direct3d notes|}}}</td>
Line 27: Line 60:
 
<td class="table-api-body-support">{{#switch:{{lc:{{{directdraw versions|}}}}}
 
<td class="table-api-body-support">{{#switch:{{lc:{{{directdraw versions|}}}}}
 
|true
 
|true
|unknown={{Tickcross|{{{directdraw versions|}}}|DirectDraw versions|unknown}}
+
|unknown={{Tickcross|{{{directdraw versions|}}}||unknown}}
|hackable={{Tickcross|hackable|DirectDraw versions|{{{directdraw notes|}}}}}
+
|hackable={{Tickcross|hackable||{{{directdraw notes|}}}}}
|#default={{{directdraw versions|}}}{{#arraymap:{{{directdraw versions|}}}|,|var|[[DirectDraw versions::var| ]]|&#32;}} }}</td>
+
|#default={{{directdraw versions|}}}
 +
}}</td>
 
<td class="table-api-body-notes">{{{directdraw notes|}}}</td>
 
<td class="table-api-body-notes">{{{directdraw notes|}}}</td>
 
</tr>
 
</tr>
Line 40: Line 74:
 
<tr class="template-infotable-body table-api-body-row">
 
<tr class="template-infotable-body table-api-body-row">
 
<th scope="row" class="table-api-body-parameter">WinG</th>
 
<th scope="row" class="table-api-body-parameter">WinG</th>
<td class="table-api-body-support">{{Tickcross|{{{wing|}}}|WinG|{{{wing notes|}}}}}</td>
+
<td class="table-api-body-support">{{Tickcross|{{{wing|}}}||{{{wing notes|}}}}}</td>
 
<td class="table-api-body-notes">{{{wing notes|}}}</td>
 
<td class="table-api-body-notes">{{{wing notes|}}}</td>
 
</tr>
 
</tr>
Line 53: Line 87:
 
<td class="table-api-body-support">{{#switch:{{lc:{{{opengl versions|}}}}}
 
<td class="table-api-body-support">{{#switch:{{lc:{{{opengl versions|}}}}}
 
|true
 
|true
|unknown={{Tickcross|{{{opengl versions|}}}|OpenGL versions|unknown}}
+
|unknown={{Tickcross|{{{opengl versions|}}}||unknown}}
|hackable={{Tickcross|hackable|OpenGL versions|{{{opengl notes|}}}}}
+
|hackable={{Tickcross|hackable||{{{opengl notes|}}}}}
|#default={{{opengl versions|}}}{{#arraymap:{{{opengl versions|}}}|,|var|[[OpenGL versions::var| ]]|&#32;}} }}</td>
+
|#default={{{opengl versions|}}}
 +
}}</td>
 
<td class="table-api-body-notes">{{{opengl notes|}}}</td>
 
<td class="table-api-body-notes">{{{opengl notes|}}}</td>
 
</tr>
 
</tr>
Line 67: Line 102:
 
|true
 
|true
 
|unknown
 
|unknown
|hackable={{Tickcross|{{{glide versions|}}}|Glide versions|{{{glide notes|}}}}}
+
|hackable={{Tickcross|{{{glide versions|}}}||{{{glide notes|}}}}}
|#default={{{glide versions|}}}{{#arraymap:{{{glide versions|}}}|,|var|[[Glide versions::var| ]]|&#32;}} }}</td>
+
|#default={{{glide versions|}}}
 +
}}</td>
 
<td class="table-api-body-notes">{{{glide notes|}}}</td>
 
<td class="table-api-body-notes">{{{glide notes|}}}</td>
 
</tr>
 
</tr>
Line 78: Line 114:
 
<tr class="template-infotable-body table-api-body-row">
 
<tr class="template-infotable-body table-api-body-row">
 
<th scope="row" class="table-api-body-parameter">Software renderer</th>
 
<th scope="row" class="table-api-body-parameter">Software renderer</th>
<td class="table-api-body-support">{{Tickcross|{{{software mode|}}}|Software renderer|{{{software mode notes|}}}}}</td>
+
<td class="table-api-body-support">{{Tickcross|{{{software mode|}}}||{{{software mode notes|}}}}}</td>
 
<td class="table-api-body-notes">{{{software mode notes|}}}</td>
 
<td class="table-api-body-notes">{{{software mode notes|}}}</td>
 
</tr>
 
</tr>
Line 90: Line 126:
 
<tr class="template-infotable-body table-api-body-row">
 
<tr class="template-infotable-body table-api-body-row">
 
<th scope="row" class="table-api-body-parameter"><abbr title="Only supported on compatible AMD video cards">Mantle support</abbr></th>
 
<th scope="row" class="table-api-body-parameter"><abbr title="Only supported on compatible AMD video cards">Mantle support</abbr></th>
<td class="table-api-body-support">{{Tickcross|{{{mantle support|}}}|Mantle support|{{{mantle support notes|}}}}}{{#vardefine:Warnings|true}}</td>
+
<td class="table-api-body-support">{{Tickcross|{{{mantle support|}}}||{{{mantle support notes|}}}}}{{#vardefine:Warnings|true}}</td>
<td class="table-api-body-notes">{{{mantle support notes|}}}</td>
+
<td class="table-api-body-notes">{{#if:{{{mantle support notes|}}}|{{{mantle support notes|}}}|''Requires an AMD video card with a driver version earlier than 19.5.1 (2019).''<ref name="Mantle support"/>}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 97: Line 133:
 
}}
 
}}
 
{{#if: {{{metal support|}}} |
 
{{#if: {{{metal support|}}} |
{{#if: {{#var:OS X}} |
+
{{#if: {{#var:OS X native}} |
 
{{#ifeq: {{lc:{{{metal support|}}}}} | false ||
 
{{#ifeq: {{lc:{{{metal support|}}}}} | false ||
 
{{#ifeq: {{lc:{{{metal support|}}}}} | unknown ||
 
{{#ifeq: {{lc:{{{metal support|}}}}} | unknown ||
 
<tr class="template-infotable-body table-api-body-row">
 
<tr class="template-infotable-body table-api-body-row">
 
<th scope="row" class="table-api-body-parameter"><abbr title="Only supported on macOS (OS X)">Metal support</abbr></th>
 
<th scope="row" class="table-api-body-parameter"><abbr title="Only supported on macOS (OS X)">Metal support</abbr></th>
<td class="table-api-body-support">{{Tickcross|{{{metal support|}}}|Metal support|{{{metal support notes|}}}}}</td>
+
<td class="table-api-body-support">{{Tickcross|{{{metal support|}}}||{{{metal support notes|}}}}}</td>
 
<td class="table-api-body-notes">{{{metal support notes|}}}</td>
 
<td class="table-api-body-notes">{{{metal support notes|}}}</td>
 
</tr>
 
</tr>
Line 115: Line 151:
 
<th scope="row" class="table-api-body-parameter">Vulkan</th>
 
<th scope="row" class="table-api-body-parameter">Vulkan</th>
 
<td class="table-api-body-support">{{#switch:{{lc:{{{vulkan versions|}}}}}
 
<td class="table-api-body-support">{{#switch:{{lc:{{{vulkan versions|}}}}}
|true={{Tickcross|true|Vulkan versions|true}}
+
|true={{Tickcross|true||true}}{{#vardefine:Vulkan versions|true}}
|hackable={{Tickcross|hackable|Vulkan versions|{{{vulkan notes|}}}}}
+
|hackable={{Tickcross|hackable||{{{vulkan notes|}}}}}{{#vardefine:Vulkan versions|hackable}}
 
|#default={{#arraymaptemplate:{{{vulkan versions}}}|API/switch Vulkan|,|,&#32;}} }}</td>
 
|#default={{#arraymaptemplate:{{{vulkan versions}}}|API/switch Vulkan|,|,&#32;}} }}</td>
 
<td class="table-api-body-notes">{{{vulkan notes|}}}</td>
 
<td class="table-api-body-notes">{{{vulkan notes|}}}</td>
Line 126: Line 162:
 
<tr class="template-infotable-body table-api-body-row">
 
<tr class="template-infotable-body table-api-body-row">
 
<th scope="row" class="table-api-body-parameter"><abbr title="Only applies to DOS and/or PC booter versions">DOS video modes</abbr></th>
 
<th scope="row" class="table-api-body-parameter"><abbr title="Only applies to DOS and/or PC booter versions">DOS video modes</abbr></th>
<td class="table-api-body-support">{{#if: {{{dos modes|}}} | {{#ifeq: {{{dos modes|}}} | unknown | {{tickcross|unknown|DOS video modes}} | {{#arraymaptemplate:{{{dos modes}}}|API/switch DOS|,|,&#32;}} }} | {{tickcross|unknown|DOS video modes}} }}</td></td>
+
<td class="table-api-body-support">{{#if: {{{dos modes|}}} | {{#ifeq: {{{dos modes|}}} | unknown | {{tickcross|unknown}}{{#vardefine:DOS modes|unknown}} | {{#arraymaptemplate:{{{dos modes}}}|API/switch DOS|,|,&#32;}} }} | {{tickcross|unknown}}{{#vardefine:DOS modes|unknown}} }}</td></td>
 
<td class="table-api-body-notes">{{{dos modes notes|}}}</td>
 
<td class="table-api-body-notes">{{{dos modes notes|}}}</td>
 
</tr>
 
</tr>
Line 145: Line 181:
 
}}
 
}}
 
}}
 
}}
{{#if: {{{64-bit executable|}}} |
+
</table></div>}}{{#if:{{#var:Windows 3.x native}}{{#var:Windows native}}{{{windows exe notes|}}}{{#var:OS X native}}{{{macos app notes|}}}{{#var:Linux native}}{{{linux executable notes|}}}|<div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-api-executable">
<tr class="template-infotable-body table-api-body-row">
+
<tr class="template-infotable-head table-api-head-row"><!--
<th scope="row" class="table-api-body-parameter"><abbr title="Compiled for 64-bit">64-bit executable</abbr></th>
+
-->{{#switch:{{{mac os x powerpc app|}}}|true|hackable={{#vardefine:powerpc app|true}}}}<!--
<td class="table-api-body-support">{{Tickcross|{{{64-bit executable|}}}|64-bit executable|{{{64-bit executable notes|}}}}}</td>
+
-->{{#switch:{{{linux powerpc app|}}}|true|hackable={{#vardefine:powerpc app|true}}}}<!--
<td class="table-api-body-notes">{{{64-bit executable notes|}}}</td>
+
-->{{#switch:{{{windows arm app|}}}|true|hackable={{#vardefine:arm app|true}}}}<!--
</tr>
+
-->{{#switch:{{{macos arm app|}}}|true|hackable={{#vardefine:arm app|true}}}}<!--
}}
+
-->{{#switch:{{{linux arm app|}}}|true|hackable|limited={{#vardefine:arm app|true}}}}<!--
</table></div>}}{{#if:{{#var:Windows 3.x native}}{{#var:Windows native}}{{{windows exe notes|}}}{{#var:OS X}}{{{macos app notes|}}}{{#var:Linux native}}{{{linux executable notes|}}}|{{#if:{{{64-bit executable|}}}||<div class="container-pcgwikitable"><table class="pcgwikitable template-infotable">
+
-->{{#vardefine:api notes width|490}}<!--
<tr class="template-infotable-head table-api-head-row">
+
-->{{#if:{{#var:Windows 3.x native}}|{{#vardefine:api notes width|{{#expr: {{#var:api notes width}} - 50}}}}}}<!--
 +
-->{{#if:{{#var:powerpc app}}|{{#vardefine:api notes width|{{#expr: {{#var:api notes width}} - 50}}}}}}<!--
 +
-->{{#if:{{#var:arm app}}|{{#vardefine:api notes width|{{#expr: {{#var:api notes width}} - 50}}}}}}
 
<th scope="col" style="width: 230px;" class="table-api-head-parameter">Executable</th><!--
 
<th scope="col" style="width: 230px;" class="table-api-head-parameter">Executable</th><!--
-->{{#switch:{{{macos powerpc app|}}}|true|hackable=<th scope="col" style="width: 50px;" class="table-api-head-support"><abbr title="PowerPC>PPC</abbr></th>}}<!--
+
-->{{#if:{{#var:powerpc app}}|<th scope="col" style="width: 50px;" class="table-api-head-support"><abbr title="PowerPC">PPC</abbr></th>}}<!--
-->{{#if:{{#var:Windows 3.x native}}|<th scope="col" style="width: 50px;" class="table-api-head-support">16-bit</th>}}
+
-->{{#if:{{#var:Windows 3.x native}}|<th scope="col" style="width: 50px;" class="table-api-head-support"><abbr title="Intel 16-bit">16-bit</abbr></th>}}
<th scope="col" style="width: 50px;" class="table-api-head-support">32-bit</th>
+
<th scope="col" style="width: 50px;" class="table-api-head-support"><abbr title="Intel 32-bit (x86)">32-bit</abbr></th>
<th scope="col" style="width: 50px;" class="table-api-head-support">64-bit</th>
+
<th scope="col" style="width: 50px;" class="table-api-head-support"><abbr title="Intel 64-bit (x64 / x86-64)">64-bit</abbr></th><!--
<th scope="col" style="width: 490px;" class="table-api-head-notes">Notes</th>
+
-->{{#if:{{#var:arm app}}|<th scope="col" style="width: 50px;" class="table-api-head-support">ARM</th>}}
 +
<th scope="col" style="width: {{#var:api notes width}}px;" class="table-api-head-notes">Notes</th>
 
</tr>
 
</tr>
 
{{#if:{{#var:Windows 3.x native}}{{#var:Windows native}}{{{windows exe notes|}}}|
 
{{#if:{{#var:Windows 3.x native}}{{#var:Windows native}}{{{windows exe notes|}}}|
 
<tr class="template-infotable-body table-api-body-row">
 
<tr class="template-infotable-body table-api-body-row">
 
<th scope="row" class="table-api-body-parameter">Windows</th><!--
 
<th scope="row" class="table-api-body-parameter">Windows</th><!--
-->{{#switch:{{{macos powerpc app|}}}|true|hackable=<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}}<!--
+
-->{{#if:{{#var:powerpc app}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}}<!--
 
-->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross|true}}</td>}}
 
-->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross|true}}</td>}}
<td class="table-api-body-support">{{Tickcross|{{{windows 32-bit exe|}}}|Windows 32-bit executable|{{{windows exe notes|}}}}}</td>
+
<td class="table-api-body-support">{{Tickcross|{{{windows 32-bit exe|}}}||{{{windows exe notes|}}}}}</td>
<td class="table-api-body-support">{{Tickcross|{{{windows 64-bit exe|}}}|Windows 64-bit executable|{{{windows exe notes|}}}}}</td>
+
<td class="table-api-body-support">{{Tickcross|{{{windows 64-bit exe|}}}||{{{windows exe notes|}}}}}</td><!--
 +
-->{{#if:{{#var:arm app}}|<td class="table-api-body-support">{{Tickcross|{{{windows arm app|}}}||{{{windows exe notes|}}}}}</td>}}
 
<td class="table-api-body-notes">{{#if: {{{windows exe notes|}}}|{{{windows exe notes|}}}|{{#if:{{#var:Windows 3.x native}}|''Windows 3.x version might be playable on a 64-bit OS using {{#if:{{#var:ScummVM}}|[[ScummVM]]|[https://github.com/otya128/winevdm winevdm]}}.''}}}}</td>
 
<td class="table-api-body-notes">{{#if: {{{windows exe notes|}}}|{{{windows exe notes|}}}|{{#if:{{#var:Windows 3.x native}}|''Windows 3.x version might be playable on a 64-bit OS using {{#if:{{#var:ScummVM}}|[[ScummVM]]|[https://github.com/otya128/winevdm winevdm]}}.''}}}}</td>
 
</tr>
 
</tr>
 
{{#ifeq:{{{windows 32-bit exe|}}}{{{windows 64-bit exe|}}}|falsetrue|{{#vardefine:Windows 64-bit only|true}}}}
 
{{#ifeq:{{{windows 32-bit exe|}}}{{{windows 64-bit exe|}}}|falsetrue|{{#vardefine:Windows 64-bit only|true}}}}
{{#if:{{#var:Windows native}}|{{#ifeq:{{{windows 32-bit exe|}}}{{{windows 64-bit exe|}}}|falsefalse|[[Category:Invalid template usage (API)]]}}}}
+
{{#if:{{#var:Windows native}}|{{#ifeq:{{{windows 32-bit exe|}}}{{{windows 64-bit exe|}}}|falsefalse|{{#ifeq:{{{windows arm app|}}}|true||[[Category:Invalid template usage (API)]]}}}}}}
 
}}
 
}}
{{#if:{{#var:OS X}}{{{macos app notes|}}}|
+
{{#if:{{#var:OS X native}}{{{macos app notes|}}}{{{macos arm notes|}}}|
 
<tr class="template-infotable-body table-api-body-row">
 
<tr class="template-infotable-body table-api-body-row">
 
<th scope="row" class="table-api-body-parameter">macOS (OS X)</th><!--
 
<th scope="row" class="table-api-body-parameter">macOS (OS X)</th><!--
-->{{#switch:{{{macos powerpc app|}}}|true|hackable=<td class="table-api-body-support">{{Tickcross|{{{macos powerpc app|}}}}}</td><!--
+
-->{{#if:{{#var:powerpc app}}|<td class="table-api-body-support">{{Tickcross|{{{mac os x powerpc app|}}}||{{{macos app notes|}}}}}</td><!--
-->{{#ifeq:{{{macos powerpc app|}}}{{{macos intel 32-bit app|}}}{{{macos 32-bit app|}}}{{{macos intel 64-bit app|}}}{{{macos 64-bit app|}}}|truefalsefalse|{{#vardefine:Warnings|true}}}}}}<!--
+
-->{{#ifeq:{{{mac os x powerpc app|}}}{{{macos intel 32-bit app|}}}{{{macos 32-bit app|}}}{{{macos intel 64-bit app|}}}{{{macos 64-bit app|}}}|truefalsefalse|{{#ifeq:{{{macos arm app|}}}|true||{{#vardefine:Warnings|true}}}}}}}}<!--
 
-->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}}
 
-->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}}
 
<td class="table-api-body-support">{{Tickcross|{{{macos intel 32-bit app|{{{macos 32-bit app|}}}}}}|macOS Intel 32-bit app|{{{macos app notes|}}}}}</td>
 
<td class="table-api-body-support">{{Tickcross|{{{macos intel 32-bit app|{{{macos 32-bit app|}}}}}}|macOS Intel 32-bit app|{{{macos app notes|}}}}}</td>
<td class="table-api-body-support">{{Tickcross|{{{macos intel 64-bit app|{{{macos 64-bit app|}}}}}}|macOS Intel 64-bit app|{{{macos app notes|}}}}}</td>
+
<td class="table-api-body-support">{{Tickcross|{{{macos intel 64-bit app|{{{macos 64-bit app|}}}}}}|macOS Intel 64-bit app|{{{macos app notes|}}}}}</td><!--
<td class="table-api-body-notes">{{#ifeq:{{{macos intel 32-bit app|{{{macos 32-bit app|}}}}}}{{{macos intel 64-bit app|{{{macos 64-bit app|}}}}}}|truefalse|{{#if:{{{macos app notes|}}}|{{{macos app notes|}}}|''This 32-bit-only macOS game '''does not work''' on macOS Catalina (10.15) or later.''}}|{{{macos app notes|}}}}}</td>
+
-->{{#if:{{#var:arm app}}|<td class="table-api-body-support">{{Tickcross|{{{macos arm app|}}}||{{{macos app notes|}}}}}</td>}}
 +
<td class="table-api-body-notes">{{#ifeq:{{{macos intel 32-bit app|{{{macos 32-bit app|}}}}}}{{{macos intel 64-bit app|{{{macos 64-bit app|}}}}}}|truefalse|{{#ifeq:{{{macos arm app|}}}|true||{{#if:{{{macos app notes|}}}{{{macos arm notes|}}}|{{{macos app notes|}}} {{{macos arm notes|}}}|''This 32-bit-only macOS game '''does not work''' on macOS Catalina (10.15) or later.''}}}}|{{{macos app notes|}}} {{{macos arm notes|}}}}}</td>
 
</tr>
 
</tr>
 
{{#switch:{{{macos intel 32-bit app|{{{macos 32-bit app|}}}}}}{{{macos intel 64-bit app|{{{macos 64-bit app|}}}}}}
 
{{#switch:{{{macos intel 32-bit app|{{{macos 32-bit app|}}}}}}{{{macos intel 64-bit app|{{{macos 64-bit app|}}}}}}
 
|falsetrue={{#vardefine:OS X 64-bit only|true}}
 
|falsetrue={{#vardefine:OS X 64-bit only|true}}
 
|truefalse
 
|truefalse
|truehackable={{#vardefine:Warnings|true}}
+
|truehackable={{#ifeq:{{{macos arm app|}}}|true||{{#vardefine:Warnings|true}}}}
|falsefalse={{#ifeq:{{{macos powerpc app|}}}|true||[[Category:Invalid template usage (API)]]}}
+
|falsefalse={{#ifeq:{{{mac os x powerpc app|}}}|true||{{#ifeq:{{{macos arm app|}}}|true||[[Category:Invalid template usage (API)]]}}}}
 
}}
 
}}
 
}}
 
}}
Line 193: Line 234:
 
<tr class="template-infotable-body table-api-body-row">
 
<tr class="template-infotable-body table-api-body-row">
 
<th scope="row" class="table-api-body-parameter">Linux</th><!--
 
<th scope="row" class="table-api-body-parameter">Linux</th><!--
-->{{#switch:{{{macos powerpc app|}}}|true|hackable=<td class="table-api-body-support">{{Tickcross-na|unknown}}</td>}}<!--
+
-->{{#if:{{#var:powerpc app}}|<td class="table-api-body-support">{{Tickcross|{{{linux powerpc app|}}}||{{{linux executable notes|}}}}}</td>}}<!--
 
-->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}}
 
-->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}}
<td class="table-api-body-support">{{Tickcross|{{{linux 32-bit executable|}}}|Linux 32-bit executable|{{{linux executable notes|}}}}}</td>
+
<td class="table-api-body-support">{{Tickcross|{{{linux 32-bit executable|}}}||{{{linux executable notes|}}}}}</td>
<td class="table-api-body-support">{{Tickcross|{{{linux 64-bit executable|}}}|Linux 64-bit executable|{{{linux executable notes|}}}}}</td>
+
<td class="table-api-body-support">{{Tickcross|{{{linux 64-bit executable|}}}||{{{linux executable notes|}}}}}</td><!--
 +
-->{{#if:{{#var:arm app}}|<td class="table-api-body-support">{{Tickcross|{{{linux arm app|}}}||{{{linux executable notes|}}}}}</td>}}
 
<td class="table-api-body-notes">{{{linux executable notes|}}}</td>
 
<td class="table-api-body-notes">{{{linux executable notes|}}}</td>
 
</tr>
 
</tr>
 
{{#ifeq:{{{linux 32-bit executable|}}}{{{linux 64-bit executable|}}}|falsetrue|{{#vardefine:Linux 64-bit only|true}}}}
 
{{#ifeq:{{{linux 32-bit executable|}}}{{{linux 64-bit executable|}}}|falsetrue|{{#vardefine:Linux 64-bit only|true}}}}
{{#ifeq:{{{linux 32-bit executable|}}}{{{linux 64-bit executable|}}}|falsefalse|[[Category:Invalid template usage (API)]]}}
+
{{#ifeq:{{{linux 32-bit executable|}}}{{{linux 64-bit executable|}}}|falsefalse|{{#ifeq:{{{linux powerpc app|}}}|true||[[Category:Invalid template usage (API)]]}}}}
 
}}
 
}}
</table></div>}} }}|{{ii}} ''No API information; you can <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit this page]</span> to add it.''}}{{#if: {{{vulkan support|}}} |[[Category:Invalid template usage (API)]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
</table></div> }}{{#ifeq: {{NAMESPACE}} | | {{#cargo_store:
 +
_table=API
 +
|Direct3D_versions={{#var:Direct3D versions}}
 +
|DirectDraw_versions={{{directdraw versions|}}}
 +
|WinG={{{wing|}}}
 +
|OpenGL_versions={{{opengl versions|}}}
 +
|Glide_versions={{{glide versions|}}}
 +
|Software_renderer={{{software mode|}}}
 +
|Mantle_support={{{mantle support|}}}
 +
|Metal_support={{{metal support|}}}
 +
|Vulkan_versions={{#var:Vulkan versions}}
 +
|DOS_video_modes={{#var:DOS modes}}
 +
|Shader_Model_versions={{{shader model versions|}}}
 +
|Windows_16bit_executable={{#var:Windows 3.x}}
 +
|Windows_32bit_executable={{{windows 32-bit exe|}}}
 +
|Windows_64bit_executable={{{windows 64-bit exe|}}}
 +
|Windows_ARM_app={{{windows arm app|}}}
 +
|Mac_OS_X_PowerPC_app={{{mac os x powerpc app|}}}
 +
|macOS_Intel_32bit_app={{{macos intel 32-bit app|}}}
 +
|macOS_Intel_64bit_app={{{macos intel 64-bit app|}}}
 +
|macOS_ARM_app={{{macos arm app|}}}
 +
|Linux_PowerPC_app={{{linux powerpc app|}}}
 +
|Linux_32bit_executable={{{linux 32-bit executable|}}}
 +
|Linux_64bit_executable={{{linux 64-bit executable|}}}
 +
|Linux_ARM_app={{{linux arm app|}}}
 +
}}}}|{{ii}} ''No API information; <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit this page]</span> to add it.''}}{{#if: {{{vulkan support|}}} |[[Category:Invalid template usage (API)]]}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 02:10, 3 October 2021

Error: #cargo_declare must be called from a template page.
Documentation for the above template (sometimes hidden from view).