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
m (Garrett moved page Development:Network/Ports to Template:Network/Ports without leaving a redirect)
(fixed table displaying when only UPNP is specified - now shows a default "edit this page" note instead)
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{#if: {{{tcp|}}}{{{udp|}}}{{{upnp|}}} |
+
{{#if: {{{tcp|}}}{{{udp|}}}{{{upnp|}}} | <h3>Ports</h3>{{#vardefine:section|Network}}{{#vardefine:Network|true}}
===Ports===
+
{{#if: {{{tcp|}}}{{{udp|}}} | <div class="container-pcgwikitable"><table class="pcgwikitable template-infotable" id="table-network-ports">
{{{!}} class="template-infotable slottable wikitable"  
+
<tr class="template-infotable-head table-network-ports-head-row">
! scope="col" width="80" {{!}} Protocol
+
<th scope="col" style="width: 230px;" class="table-network-ports-head-parameter">Protocol</th>
! scope="col" width="280" {{!}} Port(s) and/or port range(s)
+
<th scope="col" style="width: 590px;" class="table-network-ports-head-value">Port(s) and/or port range(s){{{ref|}}}</th>
{{!-}}
+
</tr>
  
 
<!-- TCP -->
 
<!-- TCP -->
 
{{#if: {{{tcp|}}} |
 
{{#if: {{{tcp|}}} |
! TCP (outbound)
+
<tr class="template-infotable-body table-network-ports-body-row">
{{!}} {{{tcp|}}}
+
<th scope="row" class="table-network-ports-body-parameter">TCP</th>
{{!-}}
+
<td class="table-network-ports-body-value">{{{tcp|}}}</td>
 +
</tr>
 
}}
 
}}
  
 
<!-- UDP -->
 
<!-- UDP -->
 
{{#if: {{{udp|}}} |
 
{{#if: {{{udp|}}} |
! UDP (outbound)
+
<tr class="template-infotable-body table-network-ports-body-row">
{{!}} {{{udp|}}}
+
<th scope="row" class="table-network-ports-body-parameter">UDP</th>
{{!-}}
+
<td class="table-network-ports-body-value">{{{udp|}}}</td>
 +
</tr>
 
}}
 
}}
{{!}}}
+
</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| ]]
  |false  = {{--}} This game does not support [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) for automatic port configuration. [[UPnP support::false| ]]
+
  |false  = {{--}} This game does not support [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) for automatic port configuration.[[UPnP support::false| ]]
  |unknown = {{ii}} UPNP support status is unknown. [[UPnP support::unknown| ]]
+
  |unknown = {{ii}} [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) support status is unknown.[[UPnP support::unknown| ]]{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}
 
+
|n/a    = {{ii}} [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) support status is not applicable for this game.[[UPnP support::n/a| ]]
|#default =  
+
|#default = {{ii}} [[Wikipedia:Universal Plug and Play|Universal Plug and Play]] (UPnP) support status is unknown.[[UPnP support::unknown| ]][[Category:Invalid template usage (Network)]]{{#vardefine:tickcross unknown|{{#expr:{{#var:tickcross unknown}}+1}}}}}}{{{upnp ref|}}}}}{{#if:{{#var:screenshots}}|{{#vardefine:Network screenshots|true}}{{#vardefine:screenshots|}}}}<noinclude>{{Documentation}}</noinclude>
}}}}<noinclude>{{Documentation}}</noinclude>
 

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;
  • 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 = 
}}