Template:Controls: Difference between revisions

implemented button template, simplified megamix controls
(Added includeonly and noinclude tags to prevent Usage from being transcluded onto other pages)
(implemented button template, simplified megamix controls)
Line 1: Line 1:
<includeonly>{{#if:{{{A|}}}|*: {{{A|}}}}}{{#if:{{{Ah|}}}|
<includeonly>{{#if:{{{A|}}}|*{{button|GBA|A}}: {{{A|}}}}}{{#if:{{{Ah|}}}|
*(Hold): {{{Ah|}}}}}{{#if:{{{Ar|}}}|
*{{button|GBA|A}} (Hold): {{{Ah|}}}}}{{#if:{{{Ar|}}}|
*(Release): {{{Ar|}}}}}{{#if:{{{B|}}}|
*{{button|GBA|A}} (Release): {{{Ar|}}}}}{{#if:{{{B|}}}|
*: {{{B|}}}}}{{#if:{{{Bh|}}}|
*{{button|GBA|B}}: {{{B|}}}}}{{#if:{{{Bh|}}}|
*(Hold): {{{Bh|}}}}}{{#if:{{{Br|}}}|
*{{button|GBA|B}} (Hold): {{{Bh|}}}}}{{#if:{{{Br|}}}|
*(Release): {{{Br|}}}}}{{#if:{{{D|}}}|
*{{button|GBA|B}} (Release): {{{Br|}}}}}{{#if:{{{D|}}}|
*: {{{D|}}}}}{{#if:{{{Dh|}}}|
*{{button|GBA|Pad}}: {{{D|}}}}}{{#if:{{{Dh|}}}|
*(Hold): {{{Dh|}}}}}{{#if:{{{Dr|}}}|
*{{button|GBA|Pad}} (Hold): {{{Dh|}}}}}{{#if:{{{Dr|}}}|
*(Release): {{{Dr|}}}}}{{#if:{{{AorB|}}}|
*{{button|GBA|Pad}} (Release): {{{Dr|}}}}}{{#if:{{{AorB|}}}|
*or : {{{AorB|}}}}}{{#if:{{{AorBh|}}}|
*{{button|GBA|A}} or {{button|GBA|B}}: {{{AorB|}}}}}{{#if:{{{AorBh|}}}|
*or (Hold): {{{AorBh|}}}}}{{#if:{{{AorBr|}}}|
*{{button|GBA|A}} or {{button|GBA|B}} (Hold): {{{AorBh|}}}}}{{#if:{{{AorBr|}}}|
*or (Release): {{{AorBr|}}}}}{{#if:{{{AorD|}}}|
*{{button|GBA|A}} or {{button|GBA|B}} (Release): {{{AorBr|}}}}}{{#if:{{{AorD|}}}|
*or : {{{AorD|}}}}}{{#if:{{{AorDh|}}}|
*{{button|GBA|A}} or {{button|GBA|Pad}}: {{{AorD|}}}}}{{#if:{{{AorDh|}}}|
*or (Hold): {{{AorDh|}}}}}{{#if:{{{AorDr|}}}|
*{{button|GBA|A}} or {{button|GBA|Pad}} (Hold): {{{AorDh|}}}}}{{#if:{{{AorDr|}}}|
*or (Release): {{{AorDr|}}}}}{{#if:{{{Up|}}}|
*{{button|GBA|A}} or {{button|GBA|Pad}} (Release): {{{AorDr|}}}}}{{#if:{{{Up|}}}|
*: {{{Up|}}}}}{{#if:{{{Down|}}}|
*{{button|Pad|Up}}: {{{Up|}}}}}{{#if:{{{Down|}}}|
*: {{{Down|}}}}}{{#if:{{{Left|}}}|
*{{button|Pad|Down}}: {{{Down|}}}}}{{#if:{{{Left|}}}|
*: {{{Left|}}}}}{{#if:{{{Right|}}}|
*{{button|Pad|Left}}: {{{Left|}}}}}{{#if:{{{Right|}}}|
*: {{{Right|}}}}}{{#if:{{{UpDown|}}}|
*{{button|Pad|Right}}: {{{Right|}}}}}{{#if:{{{UpDown|}}}|
*: {{{UpDown|}}}}}{{#if:{{{LeftRight|}}}|
*{{button|Pad|UpDown}}: {{{UpDown|}}}}}{{#if:{{{LeftRight|}}}|
*: {{{LeftRight|}}}}}{{#if:{{{T|}}}|
*{{button|Pad|LeftRight}}: {{{LeftRight|}}}}}{{#if:{{{T|}}}|
*Tap: {{{T|}}}}}{{#if:{{{Th|}}}|
*Tap: {{{T|}}}}}{{#if:{{{Th|}}}|
*Tap (Hold): {{{Th|}}}}}{{#if:{{{Tr|}}}|
*Tap (Hold): {{{Th|}}}}}{{#if:{{{Tr|}}}|
Line 25: Line 25:
*Flick: {{{F|}}}}}{{#if:{{{S|}}}|
*Flick: {{{F|}}}}}{{#if:{{{S|}}}|
*Slide: {{{S|}}}}}{{#if:{{{L|}}}|
*Slide: {{{S|}}}}}{{#if:{{{L|}}}|
*: {{{L|}}}}}{{#if:{{{R|}}}|
*{{button|DS|L}}: {{{L|}}}}}{{#if:{{{R|}}}|
*: {{{R|}}}}}{{#if:{{{Aw|}}}|
*{{button|DS|R}}: {{{R|}}}}}{{#if:{{{Aw|}}}|
*: {{{Aw|}}}}}{{#if:{{{Ahw|}}}|
*{{button|Wii|A}}: {{{Aw|}}}}}{{#if:{{{Ahw|}}}|
*(Hold): {{{Ahw|}}}}}{{#if:{{{Arw|}}}|
*{{button|Wii|A}} (Hold): {{{Ahw|}}}}}{{#if:{{{Arw|}}}|
*(Release): {{{Arw|}}}}}{{#if:{{{Bw|}}}|
*{{button|Wii|A}} (Release): {{{Arw|}}}}}{{#if:{{{Bw|}}}|
*: {{{Bw|}}}}}{{#if:{{{Bhw|}}}|
*{{button|Wii|B}}: {{{Bw|}}}}}{{#if:{{{Bhw|}}}|
*(Hold): {{{Bhw|}}}}}{{#if:{{{Brw|}}}|
*{{button|Wii|B}} (Hold): {{{Bhw|}}}}}{{#if:{{{Brw|}}}|
*(Release): {{{Brw|}}}}}{{#if:{{{A+B|}}}|
*{{button|Wii|B}} (Release): {{{Brw|}}}}}{{#if:{{{A+B|}}}|
*+: {{{A+B|}}}}}{{#if:{{{A+Bh|}}}|
*{{button|Wii|A}} + {{button|Wii|B}}: {{{A+B|}}}}}{{#if:{{{A+Bh|}}}|
*+(Hold): {{{A+Bh|}}}}}{{#if:{{{A+Br|}}}|
*{{button|Wii|A}} + {{button|Wii|B}} (Hold): {{{A+Bh|}}}}}{{#if:{{{A+Br|}}}|
*+(Release): {{{A+Br|}}}}}{{#if:{{{At|}}}|
*{{button|Wii|A}} + {{button|Wii|B}} (Release): {{{A+Br|}}}}}{{#if:{{{At|}}}|
*/{{Color|#0EB60E|Tap}}: {{{At|}}}}}{{#if:{{{Aht|}}}|
*{{button|3DS|A}} / {{Color|#0EB60E|Tap}}: {{{At|}}}}}{{#if:{{{Aht|}}}|
* (Hold)/{{Color|#0EB60E|Tap}} (Hold): {{{Aht|}}}}}{{#if:{{{Art|}}}|
*{{button|3DS|A}} / {{Color|#0EB60E|Tap}} (Hold): {{{Aht|}}}}}{{#if:{{{Art|}}}|
* (Release)/{{Color|#0EB60E|Tap}} (Release): {{{Art|}}}}}{{#if:{{{Bt|}}}|
*{{button|3DS|A}} / {{Color|#0EB60E|Tap}} (Release): {{{Art|}}}}}{{#if:{{{Bt|}}}|
*/{{Color|#0EB60E|Tap}}: {{{Bt|}}}}}{{#if:{{{Bht|}}}|
*{{button|3DS|B}} / {{Color|#0EB60E|Tap}}: {{{Bt|}}}}}{{#if:{{{Bht|}}}|
* (Hold)/{{Color|#0EB60E|Tap}} (Hold): {{{Bht|}}}}}{{#if:{{{Brt|}}}|
*{{button|3DS|B}} / {{Color|#0EB60E|Tap}} (Hold): {{{Bht|}}}}}{{#if:{{{Brt|}}}|
* (Release)/{{Color|#0EB60E|Tap}} (Release): {{{Brt|}}}}}{{#if:{{{Dt|}}}|
*{{button|3DS|B}} / {{Color|#0EB60E|Tap}} (Release): {{{Brt|}}}}}{{#if:{{{Dt|}}}|
*/{{Color|#0EB60E|Tap}}: {{{Dt|}}}}}{{#if:{{{Dht|}}}|
*{{button|3DS|Pad}} / {{Color|#0EB60E|Tap}}: {{{Dt|}}}}}{{#if:{{{Dht|}}}|
* (Hold)/{{Color|#0EB60E|Tap}} (Hold): {{{Dht|}}}}}{{#if:{{{Drt|}}}|
*{{button|3DS|Pad}} / {{Color|#0EB60E|Tap}} (Hold): {{{Dht|}}}}}{{#if:{{{Drt|}}}|
* (Release)/{{Color|#0EB60E|Tap}} (Release): {{{Drt|}}}}}{{#if:{{{AorBt|}}}|
*{{button|3DS|Pad}} / {{Color|#0EB60E|Tap}} (Release): {{{Drt|}}}}}{{#if:{{{AorBt|}}}|
*or /{{Color|#0EB60E|Tap}}: {{{AorBt|}}}}}{{#if:{{{AorBht|}}}|
*{{button|3DS|A}} or {{button|3DS|B}} / {{Color|#0EB60E|Tap}}: {{{AorBt|}}}}}{{#if:{{{AorBht|}}}|
*or  (Hold)/{{Color|#0EB60E|Tap}} (Hold): {{{AorBht|}}}}}{{#if:{{{AorBrt|}}}|
*{{button|3DS|A}} or {{button|3DS|B}} / {{Color|#0EB60E|Tap}} (Hold): {{{AorBht|}}}}}{{#if:{{{AorBrt|}}}|
*or  (Release)/{{Color|#0EB60E|Tap}} (Release): {{{AorBrt|}}}}}{{#if:{{{AorDt|}}}|
*{{button|3DS|A}} or {{button|3DS|B}} / {{Color|#0EB60E|Tap}} (Release): {{{AorBrt|}}}}}{{#if:{{{AorDt|}}}|
*or /{{Color|#0EB60E|Tap}}: {{{AorDt|}}}}}{{#if:{{{AorDht|}}}|
*{{button|3DS|A}} or {{button|3DS|Pad}} / {{Color|#0EB60E|Tap}}: {{{AorDt|}}}}}{{#if:{{{AorDht|}}}|
*or  (Hold)/{{Color|#0EB60E|Tap}} (Hold): {{{AorDht|}}}}}{{#if:{{{AorDrt|}}}|
*{{button|3DS|A}} or {{button|3DS|Pad}} / {{Color|#0EB60E|Tap}} (Hold): {{{AorDht|}}}}}{{#if:{{{AorDrt|}}}|
*or  (Release)/{{Color|#0EB60E|Tap}} (Release): {{{AorDrt|}}}}}{{#if:{{{Upt|}}}|
*{{button|3DS|A}} or {{button|3DS|Pad}} / {{Color|#0EB60E|Tap}} (Release): {{{AorDrt|}}}}}{{#if:{{{Upt|}}}|
*/{{Color|#0EB60E|Tap}}: {{{Upt|}}}}}{{#if:{{{Downt|}}}|
*{{button|Pad|Up}} / {{Color|#0EB60E|Tap}}: {{{Upt|}}}}}{{#if:{{{Downt|}}}|
*/{{Color|#0EB60E|Tap}}: {{{Downt|}}}}}{{#if:{{{Leftt|}}}|
*{{button|Pad|Down}} / {{Color|#0EB60E|Tap}}: {{{Downt|}}}}}{{#if:{{{Leftt|}}}|
*/{{Color|#0EB60E|Tap}}: {{{Leftt|}}}}}{{#if:{{{Rightt|}}}|
*{{button|Pad|Left}} / {{Color|#0EB60E|Tap}}: {{{Leftt|}}}}}{{#if:{{{Rightt|}}}|
*/{{Color|#0EB60E|Tap}}: {{{Rightt|}}}}}{{#if:{{{UpDownt|}}}|
*{{button|Pad|Right}} / {{Color|#0EB60E|Tap}}: {{{Rightt|}}}}}{{#if:{{{UpDownt|}}}|
*/{{Color|#0EB60E|Tap}}: {{{UpDownt|}}}}}{{#if:{{{LeftRightt|}}}|
*{{button|Pad|UpDown}} / {{Color|#0EB60E|Tap}}: {{{UpDownt|}}}}}{{#if:{{{LeftRightt|}}}|
*/{{Color|#0EB60E|Tap}}: {{{LeftRightt|}}}}}</includeonly><noinclude>
*{{button|Pad|LeftRight}} / {{Color|#0EB60E|Tap}}: {{{LeftRightt|}}}}}</includeonly><noinclude>
==Usage==
==Usage==
This input:
This input:
<pre>{{Controls
<pre>{{Controls
|A=Button Press
<!-- Rhythm Tengoku / Game Boy Advance -->
|Ah=Button Hold
|A=A Button Press
|Ar=Button Release
|Ah=A Button Hold
|B=Button Press
|Ar=A Button Release
|Bh=Button Hold
|B=B Button Press
|Br=Button Release
|Bh=B Button Hold
|D= Button Press
|Br=B Button Release
|Dh= Button Hold
|D=Control Pad Press
|Dr= Button Release
|Dh=Control Pad Hold
|AorB=or Buttons Press
|Dr=Control Pad Release
|AorBh=or Buttons Hold
|AorB=A or B Buttons Press
|AorBr=or Buttons Release
|AorBh=A or B Buttons Hold
|AorD=or  Buttons Press
|AorBr=A or B Buttons Release
|AorDh=or  Buttons Hold
|AorD=A or Control Pad Press
|AorDr=or  Buttons Release
|AorDh=A or Control Pad Hold
|Up= Button Press Up
|AorDr=A or Control Pad Release
|Down= Button Press Down
|Up=Control Pad (Up)
|Left= Button Press Left
|Down=Control Pad (Down)
|Right= Button Press Right
|Left=Control Pad (Left)
|UpDown= Button Press Up and Down
|Right=Control Pad (Right)
|LeftRight= Button Press Left and Right
|UpDown=Control Pad (Up and Down)
|LeftRight=Control Pad (Left and Right)
<!-- Rhythm Heaven / Nintendo DS -->
|T=Tap
|T=Tap
|Th=Tap Hold
|Th=Tap Hold
Line 86: Line 88:
|F=Flick
|F=Flick
|S=Slide
|S=Slide
|L=Button Press
|L=L Button Press
|R=Button Press
|R=R Button Press
|Aw=Button Press
<!-- Rhythm Heaven Fever / Wii -->
|Ahw=Button Hold
|Aw=A Button Press
|Arw=Button Release
|Ahw=A Button Hold
|Bw=Button Press
|Arw=A Button Release
|Bhw=Button Hold
|Bw=B Button Press
|Brw=Button Release
|Bhw=B Button Hold
|A+B=+Buttons Press
|Brw=B Button Release
|A+Bh=+Buttons Hold
|A+B=A+B Buttons Press
|A+Br=+Buttons Release
|A+Bh=A+B Buttons Hold
|At=Button Press/Tap
|A+Br=A+B Buttons Release
|Aht=Button Hold/Tap Hold
<!-- Rhythm Heaven Megamix / Nintendo 3DS -->
|Art Button Release/Tap Release
|At=A Button Press / Tap
|Bt=Button Press/Tap
|Aht=A Button Hold / Tap Hold
|Bht=Button Hold/Tap Hold
|Art=A Button Release / Tap Release
|Brt=Button Release/Tap Release
|Bt=B Button Press / Tap
|Dt= Button Press/Tap
|Bht=B Button Hold / Tap Hold
|Dht= Button Hold/Tap Hold
|Brt=B Button Release / Tap Release
|Drt= Button Release/Tap Release
|Dt=Control Pad Press / Tap
|AorBt=or Buttons Press/Tap
|Dht=Control Pad Hold / Tap Hold
|AorBht=or Buttons Press/Tap Hold
|Drt=Control Pad Release / Tap Release
|AorBrt=or Buttons Press/Tap Release
|AorBt=A or B Buttons Press / Tap
|AorDt=or  Buttons Press/Tap
|AorBht=A or B Buttons Press / Tap Hold
|AorDht=or  Buttons Press/Tap Hold
|AorBrt=A or B Buttons Press / Tap Release
|AorDrt=or  Buttons Press/Tap Release
|AorDt=A or Control Pad Press / Tap
|Upt= Button Press Up/Tap
|AorDht=A or Control Pad Press / Tap Hold
|Downt= Button Press Down/Tap
|AorDrt=A or Control Pad Press / Tap Release
|Leftt= Button Press Left/Tap
|Upt=Control Pad (Up) / Tap
|Rightt= Button Press Right/Tap
|Downt=Control Pad (Down) / Tap
|UpDownt= Button Press Up and Down/Tap
|Leftt=Control Pad (Left) / Tap
|LeftRightt= Button Press Left and Right/Tap}}</pre></noinclude>
|Rightt=Control Pad (Right) / Tap
|UpDownt=Control Pad (Up and Down) / Tap
|LeftRightt=Control Pad (Left and Right) / Tap}}</pre>
Produces this output:
{{Controls
<!-- Rhythm Tengoku / Game Boy Advance -->
|A=A Button Press
|Ah=A Button Hold
|Ar=A Button Release
|B=B Button Press
|Bh=B Button Hold
|Br=B Button Release
|D=Control Pad Press
|Dh=Control Pad Hold
|Dr=Control Pad Release
|AorB=A or B Buttons Press
|AorBh=A or B Buttons Hold
|AorBr=A or B Buttons Release
|AorD=A or Control Pad Press
|AorDh=A or Control Pad Hold
|AorDr=A or Control Pad Release
|Up=Control Pad (Up)
|Down=Control Pad (Down)
|Left=Control Pad (Left)
|Right=Control Pad (Right)
|UpDown=Control Pad (Up and Down)
|LeftRight=Control Pad (Left and Right)
<!-- Rhythm Heaven / Nintendo DS -->
|T=Tap
|Th=Tap Hold
|Tr=Tap Release
|F=Flick
|S=Slide
|L=L Button Press
|R=R Button Press
<!-- Rhythm Heaven Fever / Wii -->
|Aw=A Button Press
|Ahw=A Button Hold
|Arw=A Button Release
|Bw=B Button Press
|Bhw=B Button Hold
|Brw=B Button Release
|A+B=A+B Buttons Press
|A+Bh=A+B Buttons Hold
|A+Br=A+B Buttons Release
<!-- Rhythm Heaven Megamix / Nintendo 3DS -->
|At=A Button Press / Tap
|Aht=A Button Hold / Tap Hold
|Art=A Button Release / Tap Release
|Bt=B Button Press / Tap
|Bht=B Button Hold / Tap Hold
|Brt=B Button Release / Tap Release
|Dt=Control Pad Press / Tap
|Dht=Control Pad Hold / Tap Hold
|Drt=Control Pad Release / Tap Release
|AorBt=A or B Buttons Press / Tap
|AorBht=A or B Buttons Press / Tap Hold
|AorBrt=A or B Buttons Press / Tap Release
|AorDt=A or Control Pad Press / Tap
|AorDht=A or Control Pad Press / Tap Hold
|AorDrt=A or Control Pad Press / Tap Release
|Upt=Control Pad (Up) / Tap
|Downt=Control Pad (Down) / Tap
|Leftt=Control Pad (Left) / Tap
|Rightt=Control Pad (Right) / Tap
|UpDownt=Control Pad (Up and Down) / Tap
|LeftRightt=Control Pad (Left and Right) / Tap}}</noinclude>