Template:Button

Revision as of 22:54, 11 June 2024 by Hoshcof (talk | contribs) (Created page with "<includeonly>{{button icon|{{{1}}}|{{{2}}}|size={{{size|x16}}}{{#ifeq:{{#sub:{{{size}}}|-2}}|px||px}}}}{{#if:{{{3|}}}| / {{button icon|{{{3}}}|{{{4}}}|size={{{size|x16}}}{{#ifeq:{{#sub:{{{size}}}|-2}}|px||px}}}}}}{{#if:{{{5|}}}| / {{button icon|{{{5}}}|{{{6}}}|size={{{size|x16}}}{{#ifeq:{{#sub:{{{size}}}|-2}}|px||px}}}}{{#if:{{{7|}}}| / {{button icon|{{{7}}}|{{{8}}}|size={{{size|x16}}}{{#ifeq:{{#sub:{{{size}}}|-2}}|px||px}}}}}}}}</includeonly><noinclude>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Info

This template should be used when referring to a button, stick, or any other form of control. It places an icon with the corresponding button. This template was based on the old one from the Pikipedia, and calls Template:Tem for each of the presented buttons. If you write an icon that is not recognized, the page will become categorized under Category:Pages with unrecognized button icons.

Parameters

Parameter Mandatory Default Purpose Detailed description
1 Yes Console 1 The button's console ID.
2 Yes Button 1 The button's ID.
3 No Console 2 Secondary button's console ID.
4 No Button 2 Secondary button's ID.
5 No Console 3 Tertiary button's console ID.
6 No Button 3 Tertiary button's ID.
7 No Console 4 Fourth button's console ID.
8 No Button 4 Fourth button's ID.
size No x16px Size Size of the button.

The consoles and buttons are listed below. For the Chibi-Robo! Plug Into Adventure!, you normally type the combination for the GameCube button on console1 and button1, and alternate controls on console2, button2, console3 and button3; these are normally the equivalent New Play Control! buttons and buttons on different controllers.

Code Result Image
Nintendo GameCube
{{button|gc|stick}} GCN Stick.png [link]
{{button|gc|c}} GCN C.png [link]
{{button|gc|pad}} GCN Dpad.png [link]
{{button|gc|a}} GCN A.png [link]
{{button|gc|b}} GCN B.png [link]
{{button|gc|l}} GCN L.png [link]
{{button|gc|r}} GCN R.png [link]
{{button|gc|x}} GCN X.png [link]
{{button|gc|y}} GCN Y.png [link]
{{button|gc|z}} GCN Z.png [link]
{{button|gc|start}} GCN Start.png [link]

Skeleton

{{button|<console1>|<button1>|<console2>|<button2>|<console3>|<button3>|<console4>|<button4>|size=<size>}}