Difference between revisions of "Template:Infobox controller"

From PCGamingWiki, the wiki about fixing PC games
m (1 revision imported)
(added default title handling)
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%;"
 
{| 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%;"
|+ style="padding-bottom: 2px; font-size: 125%; line-height: 1.2em; font-weight: bold;" |{{{title|{{PAGENAME}}}}} <includeonly>[[Category:Controller]]</includeonly>
+
|+ style="padding-bottom: 2px; font-size: 125%; line-height: 1.2em; font-weight: bold;" |{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}<includeonly>[[Category:Controller]]</includeonly>
 
|-
 
|-
 
{{#if:{{{cover|}}}|
 
{{#if:{{{cover|}}}|

Revision as of 09:51, 27 October 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    = 
}}