Difference between revisions of "Template:Middleware"

From PCGamingWiki, the wiki about fixing PC games
(moving multiplayer 'needed' check to Template:Middleware/multiplayer to handle exceptions better)
(added Cargo handling--store only called when table has content and is in the main namespace)
Line 1: Line 1:
<includeonly>{{#ifeq:{{#var:section}}|API|{{#vardefine:section|Middleware}}|[[Category:Invalid section order]]}}{{#if:{{{physics|}}}{{{audio|}}}{{{interface|}}}{{{input|}}}{{{cutscenes|}}}{{{multiplayer|}}}{{{anticheat|}}}|<div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-middleware">
+
<noinclude>{{#cargo_declare:
 +
_table=Middleware
 +
|Physics=List (,) of String
 +
|Audio=List (,) of String
 +
|Interface=List (,) of String
 +
|Input=List (,) of String
 +
|Cutscenes=List (,) of String
 +
|Multiplayer=List (,) of String
 +
|Anticheat=List (,) of String
 +
}}</noinclude><includeonly>{{#ifeq:{{#var:section}}|API|{{#vardefine:section|Middleware}}|[[Category:Invalid section order]]}}{{#if:{{{physics|}}}{{{audio|}}}{{{interface|}}}{{{input|}}}{{{cutscenes|}}}{{{multiplayer|}}}{{{anticheat|}}}|<div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-middleware">
 
<tr class="template-infotable-head table-middleware-head-row">
 
<tr class="template-infotable-head table-middleware-head-row">
 
<th scope="col" style="width: 230px;" class="table-middleware-head-parameter"></th>
 
<th scope="col" style="width: 230px;" class="table-middleware-head-parameter"></th>
Line 54: Line 63:
 
<td class="table-middleware-body-notes">{{{anticheat notes|}}}</td>
 
<td class="table-middleware-body-notes">{{{anticheat notes|}}}</td>
 
</tr>
 
</tr>
}}</table></div>|{{ii}} ''No middleware information; you can <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit this page]</span> to add it.''}}</includeonly><noinclude>{{Documentation}}</noinclude>
+
}}</table></div>{{#ifeq: {{NAMESPACE}} | | {{#cargo_store:
 +
_table=Middleware
 +
|Physics={{{physics|}}}
 +
|Audio={{{audio|}}}
 +
|Interface={{{interface|}}}
 +
|Input={{{input|}}}
 +
|Cutscenes={{{cutscenes|}}}
 +
|Multiplayer={{#var:multiplayer middleware}}
 +
|Anticheat={{#var:anticheat middleware}}
 +
}}}}|{{ii}} ''No middleware information; you can <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit this page]</span> to add it.''}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 23:11, 17 September 2021

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

Documentation for the above template (sometimes hidden from view).
Description
Arguments
  • -
Syntax
===Middleware===
{{Middleware
|physics          = 
|physics notes    = 
|audio            = 
|audio notes      = 
|interface        = 
|interface notes  = 
|input            = 
|input notes      = 
|cutscenes        = 
|cutscenes notes  = 
|multiplayer      = 
|multiplayer notes= 
|anticheat        = 
|anticheat notes  = 
}}