Difference between revisions of "Template:Infobox controller"

From PCGamingWiki, the wiki about fixing PC games
(added default title handling)
m (updated !- use)
Line 15: Line 15:
 
<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>
{{!-}}
+
{{!}}-
 
}}
 
}}
  
Line 24: Line 24:
 
<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>
{{!-}}
+
{{!}}-
 
}}
 
}}
  
Line 33: Line 33:
 
<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>
{{!-}}
+
{{!}}-
 
}}
 
}}
  
Line 41: Line 41:
 
-->{{#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: {{{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:Wikipedia Icon.svg|18px|link=Wikipedia:{{{wikipedia}}}|alt={{PAGENAME}} at Wikipedia|{{PAGENAME}} at Wikipedia]] }}
 
-->{{#if: {{{wikipedia|}}} | &nbsp;[[File:Wikipedia Icon.svg|18px|link=Wikipedia:{{{wikipedia}}}|alt={{PAGENAME}} at Wikipedia|{{PAGENAME}} at Wikipedia]] }}
{{!-}}
+
{{!}}-
 
}}
 
}}
  

Revision as of 11:06, 29 July 2016

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