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:API/Documentation"

From PCGamingWiki, the wiki about fixing PC games
(added Vulkan support)
m (updated template)
(11 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
The API template contains information on what APIs and additional features does the game support.
 
The API template contains information on what APIs and additional features does the game support.
  
;Arguments
+
;Supported values
* {{Code|direct3d versions}} -  
+
{| class="mw-collapsible mw-collapsed wikitable"
* {{Code|directdraw versions}} -  
+
|-
* {{Code|opengl versions}} -  
+
! Direct3D versions
* {{Code|glide versions}} -
+
|-
* {{Code|software mode}} -
+
| 2
* {{Code|mantle support}} -  
+
|-
* {{Code|dos modes}} -  
+
| 3
* {{Code|shader model versions}} -  
+
|-
* {{Code|64-bit executable}} -
+
| 4
 +
|-
 +
| 5
 +
|-
 +
| 6
 +
|-
 +
| 7
 +
|-
 +
| 8
 +
|-
 +
| 9
 +
|-
 +
| 10
 +
|-
 +
| 10.1
 +
|-
 +
| 11
 +
|-
 +
| 11.1
 +
|-
 +
| 11.2
 +
|-
 +
| 11.3
 +
|-
 +
| 11.4
 +
|-
 +
| 12.0
 +
|}
 +
 
 +
{| class="mw-collapsible mw-collapsed wikitable"
 +
|-
 +
! 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
 +
|}
 +
 
 +
{| class="mw-collapsible mw-collapsed wikitable"
 +
|-
 +
! Vulkan Versions
 +
|-
 +
| 1.0
 +
|-
 +
| 1.1
 +
|}
 +
 
 +
{{ii}} The DOS row is only shown in the article when a DOS or PC booter release date row is also present in [[PCGamingWiki:Editing guide/The Infobox|the Infobox]].
 +
{| class="mw-collapsible mw-collapsed wikitable"
 +
|-
 +
! DOS modes !! Mode description
 +
|-
 +
| <code>text</code> || Output drawn by characters rather than pixels.
 +
|-
 +
| <code>hgc</code> || Hercules Graphics Card
 +
|-
 +
| <code>cga</code> || Color Graphics Adapter
 +
|-
 +
| <code>mcga</code> || Multi-Color Graphics Array
 +
|-
 +
| <code>ega</code> || Enhanced Graphics Adapter
 +
|-
 +
| <code>tga</code> || Tandy Graphics Adapter
 +
|-
 +
| <code>vga</code> || Video Graphics Array
 +
|-
 +
| <code>svga</code> || Super Video Graphics Array
 +
|}
  
 
;Syntax
 
;Syntax
Line 20: Line 123:
 
|directdraw versions    =  
 
|directdraw versions    =  
 
|directdraw notes      =  
 
|directdraw notes      =  
 +
|wing                  =
 +
|wing notes            =
 
|opengl versions        =  
 
|opengl versions        =  
 
|opengl notes          =  
 
|opengl notes          =  
Line 28: Line 133:
 
|mantle support        =  
 
|mantle support        =  
 
|mantle support notes  =  
 
|mantle support notes  =  
|vulkan support        =  
+
|metal support          =
|vulkan support notes   =  
+
|metal support notes    =
 +
|vulkan versions        =  
 +
|vulkan notes           =  
 
|dos modes              =  
 
|dos modes              =  
 
|dos modes notes        =  
 
|dos modes notes        =  
 
|shader model versions  =  
 
|shader model versions  =  
 
|shader model notes    =  
 
|shader model notes    =  
|64-bit executable     =  
+
|windows 32-bit exe    =
|64-bit executable notes=  
+
|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 =  
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
 +
 +
;Related templates
 +
* [[Template:API/switch Direct3D]];
 +
* [[Template:API/switch DOS]].
  
 
<includeonly>[[Category:Table templates]]</includeonly>
 
<includeonly>[[Category:Table templates]]</includeonly>
 
<noinclude>[[Category:Documentation templates]]</noinclude>
 
<noinclude>[[Category:Documentation templates]]</noinclude>

Revision as of 15:33, 7 May 2021

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