From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(Expanded: clarified how it works & added example)
No edit summary
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
Template to put at the top of control table declarations to standardize and prettify their appearance. It inserts:
Template to put at the top of control table declarations to standardize and prettify their appearance.
<pre>{{prettytable|class=controltable}}</pre>
 
The result is visually equivalent to {{t|prettytable|2=textcenter=1}}.


==Example==
==Example==
''From [[Sonic Riders/Controls]].''
''From [[Sonic Riders/Controls]].''
{| {{controlstable}}
{| {{controlstable}}
!width="10%"|GameCube
! GameCube
!width="10%"|PS2
! PS2
!width="10%"|Xbox
! Xbox
!width="10%"|Windows 1
! Windows 1
!width="10%"|Windows 2
! Windows 2
!Control
! style="width:30%" | Controls
|-
|-
|{{gc|Neutral|Control}} or {{gc|Neutral|Dpad}}||{{psx|Neutral|Lstick}}||{{xbox|Neutral|Lstick}}||{{kbd|up}}<br/>{{kbd|left}}{{kbd|down}}{{kbd|right}}||{{kbd|8}}<br/>{{kbd|4}}{{kbd|}}{{kbd|6}}<br/>{{kbd|2}}
|{{gc|Neutral|Control}} or {{gc|Neutral|Dpad}}||{{psx|Neutral|Lstick}}||{{xbox|Neutral|Lstick}}||{{kbd|up}}<br/>{{kbd|left}}{{kbd|down}}{{kbd|right}}||{{kbd|8}}<br/>{{kbd|4}}{{kbd|}}{{kbd|6}}<br/>{{kbd|2}}
|Change highlighted selection
|{{desc}} Change highlighted selection
|-
|-
|{{gc|A}}||{{psx|X}}||{{xbox|A}}||{{kbd|X}}||{{kbd|End}}
|{{gc|A}}||{{psx|X}}||{{xbox|A}}||{{kbd|X}}||{{kbd|End}}
|Enter Selection
|{{desc}} Enter Selection
|-
|-
|{{gc|B}}||{{psx|C}}||{{xbox|B}}||{{kbd|Z}}||{{kbd|Home}}
|{{gc|B}}||{{psx|T}}||{{xbox|B}}||{{kbd|Z}}||{{kbd|Home}}
|Cancel/Return to previous screen
|{{desc}} Cancel/Return to previous screen
|}
|}


Line 27: Line 24:
<pre>
<pre>
{| {{controlstable}}
{| {{controlstable}}
!width="10%"|GameCube
! GameCube
!width="10%"|PS2
! PS2
!width="10%"|Xbox
! Xbox
!width="10%"|Windows 1
! Windows 1
!width="10%"|Windows 2
! Windows 2
!Control
! style="width:30%" | Controls
|-
|-
|{{gc|Neutral|Control}} or {{gc|Neutral|Dpad}}||{{psx|Neutral|Lstick}}||{{xbox|Neutral|Lstick}}||{{kbd|up}}<br/>{{kbd|left}}{{kbd|down}}{{kbd|right}}||{{kbd|8}}<br/>{{kbd|4}}{{kbd|}}{{kbd|6}}<br/>{{kbd|2}}
|{{gc|Neutral|Control}} or {{gc|Neutral|Dpad}}||{{psx|Neutral|Lstick}}||{{xbox|Neutral|Lstick}}||{{kbd|up}}<br/>{{kbd|left}}{{kbd|down}}{{kbd|right}}||{{kbd|8}}<br/>{{kbd|4}}{{kbd|}}{{kbd|6}}<br/>{{kbd|2}}
|Change highlighted selection
|{{desc}} Change highlighted selection
|-
|-
|{{gc|A}}||{{psx|X}}||{{xbox|A}}||{{kbd|X}}||{{kbd|End}}
|{{gc|A}}||{{psx|X}}||{{xbox|A}}||{{kbd|X}}||{{kbd|End}}
|Enter Selection
|{{desc}} Enter Selection
|-
|-
|{{gc|B}}||{{psx|C}}||{{xbox|B}}||{{kbd|Z}}||{{kbd|Home}}
|{{gc|B}}||{{psx|T}}||{{xbox|B}}||{{kbd|Z}}||{{kbd|Home}}
|Cancel/Return to previous screen
|{{desc}} Cancel/Return to previous screen
|}
|}
</pre>
</pre><noinclude>


<noinclude>[[Category:Template documentation|C]]</noinclude>
[[Category:Template documentation]]</noinclude>

Latest revision as of 18:22, 2 January 2024

Template to put at the top of control table declarations to standardize and prettify their appearance.

Example[edit]

From Sonic Riders/Controls.

GameCube PS2 Xbox Windows 1 Windows 2 Controls
Neutral control or Neutral dpad Neutral lstick Neutral lstick  ↑ 
 ↓ 
 8 
 4    6 
 2 
Change highlighted selection
A button Cross button A button  X   End  Enter Selection
B button Triangle button B button  Z   Home  Cancel/Return to previous screen

Example markup[edit]

{| {{controlstable}}
! GameCube
! PS2
! Xbox
! Windows 1
! Windows 2
! style="width:30%" | Controls
|-
|{{gc|Neutral|Control}} or {{gc|Neutral|Dpad}}||{{psx|Neutral|Lstick}}||{{xbox|Neutral|Lstick}}||{{kbd|up}}<br/>{{kbd|left}}{{kbd|down}}{{kbd|right}}||{{kbd|8}}<br/>{{kbd|4}}{{kbd|}}{{kbd|6}}<br/>{{kbd|2}}
|{{desc}} Change highlighted selection
|-
|{{gc|A}}||{{psx|X}}||{{xbox|A}}||{{kbd|X}}||{{kbd|End}}
|{{desc}} Enter Selection
|-
|{{gc|B}}||{{psx|T}}||{{xbox|B}}||{{kbd|Z}}||{{kbd|Home}}
|{{desc}} Cancel/Return to previous screen
|}