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

Difference between revisions of "Template:Network/Ports"

From PCGamingWiki, the wiki about fixing PC games
(added yes and no to UPNP switch)
(removed Semantic MediaWiki property tagging (not used))
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if: {{{tcp|}}}{{{udp|}}}{{{upnp|}}} | <h3>Ports</h3>
+
<includeonly>{{#switch:{{#var:section}}
<div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-network-ports">
+
|Audio
<tr class="template-infotable-head">
+
|Localizations/done
<th scope="col" style="width: 230px;">Protocol</th>
+
|Network/Multiplayer
<th scope="col" style="width: 590px;">Port(s) and/or port range(s){{{ref|}}}</th>
+
|Network/Connections={{#vardefine:section|Network}}
 +
|#Default = [[Category:Invalid section order]]
 +
}}{{#if: {{{tcp|}}}{{{udp|}}}{{{upnp|}}} | <h3>Ports</h3>{{#vardefine:Network|true}}
 +
{{#if: {{{tcp|}}}{{{udp|}}} | <div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-network-ports">
 +
<tr class="template-infotable-head table-network-ports-head-row">
 +
<th scope="col" style="width: 230px;" class="table-network-ports-head-parameter">Protocol</th>
 +
<th scope="col" style="width: 590px;" class="table-network-ports-head-value">Port(s) and/or port range(s){{{ref|}}}</th>
 
</tr>
 
</tr>
  
 
<!-- TCP -->
 
<!-- TCP -->
 
{{#if: {{{tcp|}}} |
 
{{#if: {{{tcp|}}} |
<tr class="template-infotable-body">
+
<tr class="template-infotable-body table-network-ports-body-row">
<th scope="row">TCP (outbound)</th>
+
<th scope="row" class="table-network-ports-body-parameter">TCP</th>
<td>{{{tcp|}}}</td>
+
<td class="table-network-ports-body-value">{{{tcp|}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
Line 16: Line 22:
 
<!-- UDP -->
 
<!-- UDP -->
 
{{#if: {{{udp|}}} |
 
{{#if: {{{udp|}}} |
<tr class="template-infotable-body">
+
<tr class="template-infotable-body table-network-ports-body-row">
<th scope="row">UDP (outbound)</th>
+
<th scope="row" class="table-network-ports-body-parameter">UDP</th>
<td>{{{udp|}}}</td>
+
<td class="table-network-ports-body-value">{{{udp|}}}</td>
 
</tr>
 
</tr>
 
}}
 
}}
</table></div>
+
</table></div> | {{ii}} No port information; you can <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit this page]</span> to add it. }}
 
{{#switch: {{lc:{{{upnp}}}}}
 
{{#switch: {{lc:{{{upnp}}}}}
|yes
+
  |true     = {{++}} This game supports [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) for automatic port configuration.
  |true   = {{++}} This game supports [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) for automatic port configuration.{{{upnp ref|}}} [[UPnP support::true| ]]{{#vardefine:PCGWR Network|{{#expr:{{#var:PCGWR Network}}+1}}}}{{#vardefine:PCGWR Network known|{{#expr:{{#var:PCGWR Network known}}+1}}}}
+
  |false   = {{--}} This game does not support [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) for automatic port configuration.
|no
+
|unknown  = {{ii}} [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) support status is unknown.{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}
  |false   = {{--}} This game does not support [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) for automatic port configuration.{{{upnp ref|}}} [[UPnP support::false| ]]{{#vardefine:PCGWR Network known|{{#expr:{{#var:PCGWR Network known}}+1}}}}
+
  |n/a      = {{ii}} [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) support status is not applicable for this game.
  |unknown = {{ii}} [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) support status is unknown.{{#vardefine:PCGWR Network unknown|{{#expr:{{#var:PCGWR Network unknown}}+1}}}}{{{upnp ref|}}} [[UPnP support::unknown| ]]
+
|hackable = {{ii}} [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) support status can be hacked for this game: {{#if:{{{upnp notes|}}}|{{{upnp notes|}}}|<div title="Error: 'upnp notes' field required for hackable state" class="svg-icon svg-16 os-error"></div>[[Category:Invalid template usage (Network)]]}}
  |#default = {{ii}} [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) support status is unknown.{{#vardefine:PCGWR Network unknown|{{#expr:{{#var:PCGWR Network unknown}}+1}}}}{{{upnp ref|}}} [[UPnP support::unknown| ]][[Category:Invalid template usage (Network)]]}}}}<noinclude>{{Documentation}}</noinclude>
+
  |#default = {{ii}} [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) support status is unknown.<div title="Error: '{{{upnp}}}' not unrecognized" class="svg-icon svg-16 os-error"></div>[[Category:Invalid template usage (Network)]]{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}}}{{{upnp ref|}}}}}{{#vardefine:section|Network/Ports}}{{#if:{{#var:screenshots}}|{{#vardefine:Network screenshots|true}}{{#vardefine:screenshots|}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 08:33, 27 September 2021

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

This template contains all information relating to ports and UPnP support; see also {{Network/Multiplayer}} and {{Network/Connections}}.

Arguments

  • tcp - TCP ports used;
  • udp - UDP ports used;
  • ref - Reference for ports.
  • upnp - UPnP support status.
  • upnp ref - Reference for UPnP support status;
  • upnp notes - Note for hackable (only) state of UPnP support status;

Syntax

{{Network/Ports
|tcp        = 
|udp        = 
|ref        = 
|upnp       = 
|upnp ref   = 
|upnp notes = 
}}