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:Network/Ports"

From PCGamingWiki, the wiki about fixing PC games
m (fixed switch)
(improved ratings support)
Line 23: Line 23:
 
</table></div>
 
</table></div>
 
{{#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 ref|}}} [[UPnP support::true| ]]
+
  |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.{{{upnp ref|}}} [[UPnP support::false| ]]
+
  |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}}}}
|unknown = {{ii}} UPNP support status is unknown.{{{upnp ref|}}} [[UPnP support::unknown| ]]}}}}{{#if:{{{section|}}}|{{#switch:{{lc:{{{upnp}}}}}
+
  |unknown = {{ii}} UPNP support status is unknown.{{#vardefine:PCGWR Network unknown|{{#expr:{{#var:PCGWR Network unknown}}+1}}}}{{{upnp ref|}}} [[UPnP support::unknown| ]]}}}}<noinclude>{{Documentation}}</noinclude>
|yes
 
|true    = {{#vardefine:PCGWR Network|{{#expr:{{#var:PCGWR Network}}+1}}}}{{#vardefine:PCGWR Network known|{{#expr:{{#var:PCGWR Network known}}+1}}}}
 
  |no
 
|false    = {{#vardefine:PCGWR Network known|{{#expr:{{#var:PCGWR Network known}}+1}}}}
 
|unknown = {{#vardefine:PCGWR Network unknown|{{#expr:{{#var:PCGWR Network unknown}}+1}}}}
 
}}}}<noinclude>{{Documentation}}</noinclude>
 

Revision as of 08:35, 22 February 2018

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