Jump to navigation
Jump to search
(no longer need the note, we're going to implement it) |
Notmyhandle (talk | contribs) (Expanded: clarified how it works & added example) |
||
Line 1: | Line 1: | ||
Template to put at the top of control table declarations to standardize and prettify their appearance. | Template to put at the top of control table declarations to standardize and prettify their appearance. It inserts: | ||
<pre>{{prettytable|class=controltable}}</pre> | |||
The result is visually equivalent to {{t|prettytable|2=textcenter=1}}. | |||
==Example== | |||
''From [[Sonic Riders/Controls]].'' | |||
{| {{controlstable}} | |||
!width="10%"|GameCube | |||
!width="10%"|PS2 | |||
!width="10%"|Xbox | |||
!width="10%"|Windows 1 | |||
!width="10%"|Windows 2 | |||
!Control | |||
|- | |||
|{{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 | |||
|- | |||
|{{gc|A}}||{{psx|X}}||{{xbox|A}}||{{kbd|X}}||{{kbd|End}} | |||
|Enter Selection | |||
|- | |||
|{{gc|B}}||{{psx|C}}||{{xbox|B}}||{{kbd|Z}}||{{kbd|Home}} | |||
|Cancel/Return to previous screen | |||
|} | |||
===Example markup=== | |||
<pre> | |||
{| {{controlstable}} | |||
!width="10%"|GameCube | |||
!width="10%"|PS2 | |||
!width="10%"|Xbox | |||
!width="10%"|Windows 1 | |||
!width="10%"|Windows 2 | |||
!Control | |||
|- | |||
|{{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 | |||
|- | |||
|{{gc|A}}||{{psx|X}}||{{xbox|A}}||{{kbd|X}}||{{kbd|End}} | |||
|Enter Selection | |||
|- | |||
|{{gc|B}}||{{psx|C}}||{{xbox|B}}||{{kbd|Z}}||{{kbd|Home}} | |||
|Cancel/Return to previous screen | |||
|} | |||
</pre> | |||
<noinclude>[[Category:Template documentation|C]]</noinclude> | <noinclude>[[Category:Template documentation|C]]</noinclude> |