Jump to navigation
Jump to search
Notmyhandle (talk | contribs) (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 | Template to put at the top of control table declarations to standardize and prettify their appearance. | ||
==Example== | ==Example== | ||
''From [[Sonic Riders/Controls]].'' | ''From [[Sonic Riders/Controls]].'' | ||
{| {{controlstable}} | {| {{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}} | |{{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| | |{{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}} | ||
! | ! 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}} | |{{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| | |{{gc|B}}||{{psx|T}}||{{xbox|B}}||{{kbd|Z}}||{{kbd|Home}} | ||
|Cancel/Return to previous screen | |{{desc}} Cancel/Return to previous screen | ||
|} | |} | ||
</pre> | </pre><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 |
---|---|---|---|---|---|
or | ↑ ← ↓ → |
8 4 6 2 |
Change highlighted selection | ||
X | End | Enter Selection | |||
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 |}