Difference between revisions of "Template:Network/Ports"

From PCGamingWiki, the wiki about fixing PC games
m (added n/a case)
(fixed table displaying when only UPNP is specified - now shows a default "edit this page" note instead)
 
Line 1: Line 1:
 
{{#if: {{{tcp|}}}{{{udp|}}}{{{upnp|}}} | <h3>Ports</h3>{{#vardefine:section|Network}}{{#vardefine:Network|true}}
 
{{#if: {{{tcp|}}}{{{udp|}}}{{{upnp|}}} | <h3>Ports</h3>{{#vardefine:section|Network}}{{#vardefine:Network|true}}
<div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-network-ports">
+
{{#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">
 
<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: 230px;" class="table-network-ports-head-parameter">Protocol</th>
Line 21: Line 21:
 
</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}}}}}
 
  |true    = {{++}} This game supports [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) for automatic port configuration.[[UPnP support::true| ]]
 
  |true    = {{++}} This game supports [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) for automatic port configuration.[[UPnP support::true| ]]

Latest revision as of 08:56, 22 May 2020

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;
  • upnp - UPnP support status. Defines Property:UPnP support;
  • upnp ref - Reference for UPnP support status;
  • ref - Reference for ports.

Syntax

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