Difference between revisions of "Template:Infobox controller"

From PCGamingWiki, the wiki about fixing PC games
(added Steam app ID support)
m
Line 6: Line 6:
 
}}
 
}}
 
|-
 
|-
{{Alternating rows table section
 
|es=background:#f0f0f0;
 
  
 
<!-- XInput -->
 
<!-- XInput -->
|{{#if: {{{xinput|}}}|
+
{{#if: {{{xinput|}}}|
 
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''XInput support'''
 
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''XInput support'''
 
<div style="position: relative; display: block;">
 
<div style="position: relative; display: block;">
 
<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>
 
<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>
 
</div>
 
</div>
{{!-}}
+
{{!}}-
 
}}
 
}}
  
 
<!-- Predecessor -->
 
<!-- Predecessor -->
|{{#if: {{{predecessor|}}}|
+
{{#if: {{{predecessor|}}}|
 
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Predecessor'''
 
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Predecessor'''
 
<div style="position: relative; display: block;">
 
<div style="position: relative; display: block;">
 
<div style="float: left; text-align: right; vertical-align: top; width: 100%; padding-right: 4px;><span style="float:right;">{{{predecessor}}}</span></div>
 
<div style="float: left; text-align: right; vertical-align: top; width: 100%; padding-right: 4px;><span style="float:right;">{{{predecessor}}}</span></div>
 
</div>
 
</div>
{{!-}}
+
{{!}}-
 
}}
 
}}
  
 
<!-- Successor -->
 
<!-- Successor -->
|{{#if: {{{successor|}}}|
+
{{#if: {{{successor|}}}|
 
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Successor'''
 
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Successor'''
 
<div style="position: relative; display: block;">
 
<div style="position: relative; display: block;">
 
<div style="float: left; text-align: right; vertical-align: top; width: 100%; padding-right: 4px;><span style="float:right;">{{{successor}}}</span></div>
 
<div style="float: left; text-align: right; vertical-align: top; width: 100%; padding-right: 4px;><span style="float:right;">{{{successor}}}</span></div>
 
</div>
 
</div>
{{!-}}
+
{{!}}-
 
}}
 
}}
  
 
<!-- Icons -->
 
<!-- Icons -->
|{{#if: {{{wikipedia|}}}{{{steam appid|}}}|
+
{{#if: {{{wikipedia|}}}|
 
{{!}} style="text-align: right; vertical-align: top; padding: 5px 4px 4px 6px;" {{!}} <!--
 
{{!}} style="text-align: right; vertical-align: top; padding: 5px 4px 4px 6px;" {{!}} <!--
-->{{#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> }}<!--
 
 
-->{{#if: {{{wikipedia|}}} | &nbsp;[[File:WikiLink.png|link=Wikipedia:{{{wikipedia}}}|alt={{PAGENAME}} at Wikipedia|{{PAGENAME}} at Wikipedia]] }}
 
-->{{#if: {{{wikipedia|}}} | &nbsp;[[File:WikiLink.png|link=Wikipedia:{{{wikipedia}}}|alt={{PAGENAME}} at Wikipedia|{{PAGENAME}} at Wikipedia]] }}
{{!-}}
+
{{!}}-
 
}}
 
}}
  
 
<!-- Hidden properties -->
 
<!-- Hidden properties -->
{{#if: {{{steam appid|}}}| [[Steam AppID::{{{steam appid|}}}| ]] }}
 
 
{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}
 
{{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }}
}}
 
 
|}<noinclude>{{Documentation}}</noinclude>
 
|}<noinclude>{{Documentation}}</noinclude>

Revision as of 19:14, 3 August 2015

Infobox controller
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.
  • 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       = 
|predecessor  = 
|successor    = 
|wikipedia    = 
}}