Difference between revisions of "Template:Infobox console"
From PCGamingWiki, the wiki about fixing PC games
(Added "related controllers", "successor" (e.g. GameCube is the successor to the N64), "predecessor" fields. Added Emulation category, documentation.) |
m |
||
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; 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:Emulation]]</includeonly> | |+ style="padding-bottom: 2px; font-size: 125%; line-height: 1.2em; font-weight: bold;" |{{{title|{{PAGENAME}}}}} <includeonly>[[Category:Emulation]]</includeonly> | ||
|- | |- | ||
{{#if:{{{cover|}}}| | {{#if:{{{cover|}}}| | ||
− | {{!}} | + | {{!}} style="font-size: 110%; align: center; padding-top:5px; padding-bottom:5px" {{!}} [[File:{{{cover}}}{{!}}282px]] |
}} | }} | ||
|- | |- | ||
− | {{ | + | {{Alternating rows table section |
− | {{ | + | |es=background:#f0f0f0; |
− | {{ | + | |
− | |} | + | <!-- Related controllers --> |
− | <noinclude>{{Documentation}}</noinclude> | + | |{{#if: {{{related|}}}| |
+ | {{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Related controllers''' | ||
+ | <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;">{{{related}}}</span></div> | ||
+ | </div> | ||
+ | {{!-}} | ||
+ | }} | ||
+ | |||
+ | <!-- Predecessor --> | ||
+ | |{{#if: {{{predecessor|}}}| | ||
+ | {{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Predecessor''' | ||
+ | <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> | ||
+ | {{!-}} | ||
+ | }} | ||
+ | |||
+ | <!-- Successor --> | ||
+ | |{{#if: {{{successor|}}}| | ||
+ | {{!}} style="text-align: left; vertical-align: top; padding: 2px 7px 2px 6px;" {{!}} '''Successor''' | ||
+ | <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> | ||
+ | {{!-}} | ||
+ | }} | ||
+ | |||
+ | <!-- Icons --> | ||
+ | |{{#if: {{{wikipedia|}}}| | ||
+ | {{!}} style="text-align: right; vertical-align: top; padding: 5px 4px 4px 6px;" {{!}} <!-- | ||
+ | -->{{#if: {{{wikipedia|}}} | [[File:WikiLink.png|link=Wikipedia:{{{wikipedia}}}|alt={{PAGENAME}} at Wikipedia|{{PAGENAME}} at Wikipedia]] }} | ||
+ | {{!-}} | ||
+ | }} | ||
+ | |||
+ | <!-- Hidden properties --> | ||
+ | {{#if: {{{wikipedia|}}}| [[Wikipedia::{{{wikipedia}}}| ]] }} | ||
+ | }} | ||
+ | |}<noinclude>{{Documentation}}</noinclude> |
Revision as of 21:24, 9 February 2014
Template:Alternating rows table section
Documentation for the above template (sometimes hidden from view).
- Description
This template should be used for pages regarding Emulation of a console.
- Arguments
title
- Optional. Add if the title of the console varies in some way from page name, e.g. NES vs. Nintendo Entertainment System
cover
- Include this if there is an image of the console hosted on the PCGamingWiki or Wikimedia Commons.
related
- Controllers related to the respective console, e.g. the Xbox 360 and Xbox 360's Controller. Possible rows include:
{{Infobox game/row/controller| }}
- The first argument is to be used for the controller's name, with a link to the controller's page.
predecessor
- Optional. Link to the preceding console if the console belongs to a series of hardware or is made by a company which has made multiple consoles. E.g. the NES, SNES, N64, GameCube, Wii, and Wii U.
successor
- Optional. Link to the succeeding console if the console belongs to a series of hardware or is made by a company which has made multiple consoles. E.g. the NES, SNES, N64, GameCube, Wii, and Wii U.
wikipedia
- The title of the Wikipedia article on this specific console.
- Syntax
{{Infobox console |title = |cover = |related = {{Infobox console/row/controller| [[Controller: | ]] }} |predecessor = |successor = |wikipedia = }}
Visit Template:Infobox console/Documentation to edit this text. (How does this work?)