Difference between revisions of "Template:API"

From PCGamingWiki, the wiki about fixing PC games
(updated OS X to only show for 'native' games)
(corrected invalid Cargo field names)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{#var:section}}
+
<noinclude>{{#cargo_declare:
 +
_table=API
 +
|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
 
|Audio
 
|Localizations/done
 
|Localizations/done
Line 216: Line 241:
 
{{#ifeq:{{{linux 32-bit executable|}}}{{{linux 64-bit executable|}}}|falsefalse|{{#ifeq:{{{linux powerpc app|}}}|true||[[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; <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>

Revision as of 00:09, 18 September 2021

This template defines the table "API". View table.

Documentation for the above template (sometimes hidden from view).
Description

The API template contains information on what APIs and additional features does the game support.

Supported values
Direct3D versions
2
3
4
5
6
7
8
9
10
10.1
11
11.1
11.2
11.3
11.4
12.0
OpenGL Versions
1.0
1.1
1.2
1.2.1
1.3
1.4
1.5
2.0
2.1
3.0
3.1
3.2
3.3
4.0
4.1
4.2
4.3
4.4
4.5
4.6
Vulkan Versions
1.0
1.1
The DOS row is only shown in the article when a DOS or PC booter release date row is also present in the Infobox.
DOS modes Mode description
text Output drawn by characters rather than pixels.
hgc Hercules Graphics Card
cga Color Graphics Adapter
mcga Multi-Color Graphics Array
ega Enhanced Graphics Adapter
tga Tandy Graphics Adapter
vga Video Graphics Array
svga Super Video Graphics Array
Syntax
{{API
|direct3d versions      = 
|direct3d notes         = 
|directdraw versions    = 
|directdraw notes       = 
|wing                   = 
|wing notes             = 
|opengl versions        = 
|opengl notes           = 
|glide versions         = 
|glide notes            = 
|software mode          = 
|software mode notes    = 
|mantle support         = 
|mantle support notes   = 
|metal support          = 
|metal support notes    = 
|vulkan versions        = 
|vulkan notes           = 
|dos modes              = 
|dos modes notes        = 
|shader model versions  = 
|shader model notes     = 
|windows 32-bit exe     = 
|windows 64-bit exe     = 
|windows arm app        = 
|windows exe notes      = 
|mac os x powerpc app   = 
|macos intel 32-bit app = 
|macos intel 64-bit app = 
|macos arm app          = 
|macos app notes        = 
|linux powerpc app      = 
|linux 32-bit executable= 
|linux 64-bit executable= 
|linux arm app          = 
|linux executable notes = 
}}
Related templates