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

Difference between revisions of "Template:Infobox controller"

From PCGamingWiki, the wiki about fixing PC games
m (1 revision imported)
(Doesn't seem to me like a "var:Controller" trigger has been properly added yet.)
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| class="vertical-navbox" cellspacing="1" cellpadding="0" style="float: right; clear: right; color: black; background: #f9f9f9; border: 1px solid #aaa; width: 300px; margin:0em 0 1.0em 1.0em; padding: 0.2em 0 0 0; border-spacing: 0.1em 0.1em 0.1em 0.1em; text-align: center; line-height: 1.4em; font-size: 93%;"
+
<table class="vertical-navbox template-infobox" id="infobox-controller">
|+ style="padding-bottom: 2px; font-size: 125%; line-height: 1.2em; font-weight: bold;" |{{{title|{{PAGENAME}}}}} <includeonly>[[Category:Controller]]</includeonly>
+
<caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}<includeonly>[[Category:Controller]]</includeonly></caption>
|-
+
<includeonly>{{#if: {{{cover|}}} |
{{#if:{{{cover|}}}|
+
<tr>
{{!}} style="font-size: 110%; align: center; padding-top:5px; padding-bottom:5px" {{!}} [[File:{{{cover}}}{{!}}282px]]
+
<td class="template-infobox-cover" colspan="2">{{#ifexist: File:{{{cover}}} | [[File:{{{cover}}}{{!}}{{{cover size|300px}}}{{!}}alt={{{title|{{PAGENAME}}}}} cover]] |''Cover image missing, please <span class="plainlinks">[https://pcgamingwiki.com/w/index.php?title=Special:Upload&wpDestFile={{urlencode:{{{cover}}}|WIKI}} upload it]</span>''{{#if:{{NAMESPACE}}||[[Category:Pages needing cover images]]}}}}</td>
 +
</tr>
 +
|{{#if:{{NAMESPACE}}||[[Category:Pages needing cover images]]}}}}</includeonly>
 +
 
 +
<!-- XInput -->
 +
{{#if: {{{xinput|}}} |
 +
<tr>
 +
<th class="template-infobox-header" colspan="2">XInput support</th>
 +
</tr>
 +
<tr>
 +
<td class="template-infobox-info" colspan="2" style="text-align: right; float: right;">{{tickcross|{{{xinput|}}}||unnecessary|size=18px}}</td>
 +
</tr>
 
}}
 
}}
|-
 
{{Alternating rows table section
 
|es=background:#f0f0f0;
 
  
<!-- XInput -->
+
<!-- Connection method -->
|{{#if: {{{xinput|}}}|
+
{{#if: {{{connection method|}}} |
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''XInput support'''
+
<tr>
<div style="position: relative; display: block;">
+
<th class="template-infobox-header" colspan="2">Connection method</th>
<div style="float: left; text-align: right; vertical-align: top; width: 100%; padding-right: 4px;><span style="float:right;">{{tickcross|{{{xinput|}}}|size=18px}}</span></div>
+
</tr>
</div>
+
<tr>
{{!-}}
+
<td class="template-infobox-info" colspan="2" style="text-align: right;">{{{connection method|}}}</td>
 +
</tr>
 
}}
 
}}
  
 
<!-- Predecessor -->
 
<!-- Predecessor -->
|{{#if: {{{predecessor|}}}|
+
{{#if: {{{predecessor|}}} |
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Predecessor'''
+
<tr>
<div style="position: relative; display: block;">
+
<th class="template-infobox-header" colspan="2">Predecessor</th>
<div style="float: left; text-align: right; vertical-align: top; width: 100%; padding-right: 4px;><span style="float:right;">{{{predecessor}}}</span></div>
+
</tr>
</div>
+
<tr>
{{!-}}
+
<td class="template-infobox-info" colspan="2" style="text-align: right;">{{{predecessor|}}}</td>
 +
</tr>
 
}}
 
}}
  
 
<!-- Successor -->
 
<!-- Successor -->
|{{#if: {{{successor|}}}|
+
{{#if: {{{successor|}}} |
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Successor'''
+
<tr>
<div style="position: relative; display: block;">
+
<th class="template-infobox-header" colspan="2">Successor</th>
<div style="float: left; text-align: right; vertical-align: top; width: 100%; padding-right: 4px;><span style="float:right;">{{{successor}}}</span></div>
+
</tr>
</div>
+
<tr>
{{!-}}
+
<td class="template-infobox-info" colspan="2" style="text-align: right;">{{{successor|}}}</td>
 +
</tr>
 
}}
 
}}
  
 
<!-- Icons -->
 
<!-- Icons -->
|{{#if: {{{wikipedia|}}}{{{steam appid|}}}|
+
{{#if: {{{wikipedia|}}}{{{steam appid|}}} |
{{!}} style="text-align: right; vertical-align: top; padding: 5px 4px 4px 6px;" {{!}} <!--
+
<tr>
-->{{#if: {{{steam appid|}}} | <div style="padding:0 2px; display:inline">[[File:SteamDB Icon.svg|16px|link=https://steamdb.info/app/{{{steam appid|}}}/|alt={{PAGENAME}} at SteamDB|{{PAGENAME}} at SteamDB]]</div> }}<!--
+
<td class="template-infobox-icons" colspan="2"><!--
-->{{#if: {{{wikipedia|}}} | &nbsp;[[File:Wikipedia Icon.svg|18px|link=Wikipedia:{{{wikipedia}}}|alt={{PAGENAME}} at Wikipedia|{{PAGENAME}} at Wikipedia]] }}
+
-->{{#if: {{{steam appid|}}} | <div title="{{PAGENAME}} on SteamDB" class="plainlinks template-infobox-icon svg-icon infobox-steamdb">[https://steamdb.info/app/{{{steam appid|}}}/ &nbsp;]</div> }}<!--
{{!-}}
+
-->{{#if: {{{wikipedia|}}} | <div title="{{PAGENAME}} on Wikipedia" class="template-infobox-icon svg-icon infobox-wikipedia">[[File:Icon overlay.png|link=Wikipedia:{{{wikipedia}}}|{{PAGENAME}} on Wikipedia]]</div> }}<!--
}}
+
--></td>
 
+
</tr>
<!-- Hidden properties -->
+
}}</table><noinclude>{{#cargo_declare:
{{#if: {{{steam appid|}}}| [[Steam AppID::{{{steam appid|}}}| ]] }}
+
_table=Controller
{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}
+
|XInput=String
}}
+
|Connection_Method=List (,) of String
|}<noinclude>{{Documentation}}</noinclude>
+
}}</noinclude><includeonly>{{#cargo_store:
 +
_table=Controller
 +
|XInput={{{xinput|}}}
 +
|Connection_Method={{{connection method|}}}
 +
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 03:55, 12 May 2023

Infobox controller

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

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

This template should be used for pages regarding a controller.

Arguments
  • title
Optional. Add if the title of the controller varies in some way from the page name.
  • cover
Include an image of the controller hosted on the PCGamingWiki.
  • xinput
True, false, or hackable.
  • connection method
The supported connection method on PC, e.g. USB-Micro, USB-C, USB-Mini, Bluetooth, custom physical adapters, PS/2, DE-9, and/or other methods. Recommended values and applicable cases:
  • USB-A: Controller end of the wire: Permanently attached. PC end: USB-A port, 2.0 unless otherwise stated.
  • USB-B: Controller end: USB-B, 2.0 unless otherwise stated. PC end: Any USB size or Thunderbolt 3.
  • USB-C: Controller end: USB-C, 2.0 unless otherwise stated. PC end: Any USB size or Thunderbolt 3.
  • USB-Micro: Controller end: Micro-USB, 2.0 unless otherwise stated. PC end: Any USB size or Thunderbolt 3.
  • USB-Mini: Controller end: USB Mini-B. PC end: Any USB size or Thunderbolt 3.
  • Bluetooth: When the controller is connected to the PC over Bluetooth. This means the PC must have Bluetooth functionality in some way to use such a connection.
  • Wired adapter: The controller uses a custom port on the machine end (e.g. DualShock 1/2 port, GameCube/N64 port) that no PCs can natively handle, requiring the use of dedicated adapters on PC.
  • Wireless dongle: Either the controller requires a 2.4GHz RF USB dongle (The dongle is USB-A 2.0 unless otherwise stated) for the PC, or it's controller-specific dongles (e.g. Xbox 360 Wireless Adapter).
  • Wi-Fi: The controller itself is able to connect to a home's Wi-Fi network, and can to varying extents be detected by a PC over Wi-Fi (if the PC has Wi-Fi support) or potentially Ethernet.
  • DE-9: 9-pin port used on many 80's and early 90's systems, and which strongly resemble (but are not known to be compatible with) PC standard serial ports.
  • Game Port: 13-pin serial port designed by Microsoft specifically for some 1990's game controllers.
  • Lightning: iOS apps that can be used to control PC games with a typical Lightning-to-USB cable.
  • Infrared adapter: Controllers with built-in infrared functionality to communicate with other devices. However, there are no known cases as of May 2023 of anyone getting such devices to communicate with a PC as a game controller.
  • predecessor
Optional. Link to the preceding controller if the controller belongs to a series or line of hardware. E.g. the DualShock series of controllers.
  • successor
Optional. Link to the succeeding controller if the controller belongs to a series or line of hardware. E.g. the DualShock series of controllers.
  • wikipedia
The title of the Wikipedia article on this specific controller or series of controllers.
Syntax
{{Infobox controller
|title             = 
|cover             = 
|xinput            = 
|connection method = 
|predecessor       = 
|successor         = 
|wikipedia         = 
}}