Difference between revisions of "Template:Infobox controller"

From PCGamingWiki, the wiki about fixing PC games
m (fixed inputmode hiding)
(changed input mode to XInput support)
Line 9: Line 9:
 
|es=background:#f0f0f0;
 
|es=background:#f0f0f0;
  
<!-- Input mode -->
+
<!-- XInput -->
|{{#if: {{{inputmode|}}}|
+
|{{#if: {{{xinput|}}}|
{{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Input mode'''
+
{{!}} 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;">{{{inputmode}}}</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>
 
{{!-}}
 
{{!-}}

Revision as of 09:46, 21 January 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    = 
}}