Template:Button: Difference between revisions

New documentation style.
(Added Nunchuk shake.)
(New documentation style.)
Line 3: Line 3:
==Info==
==Info==
{{ToDo|Check if the names are 100% official.}}
{{ToDo|Check if the names are 100% official.}}
From [[fanon:Template:Button|Pikmin Fanon]].
This template should be used when referring to a button, stick, or any other form of [[Controls|control]]. It places an icon with the corresponding button. This template was based on the old one from [[fanon:Template:Button|Pikmin Fanon]], and calls {{tem|button icon}} for each of the presented buttons.


Usage: <nowiki>{{button|&lt;console1&gt;|&lt;button1&gt;|[&lt;console2&gt;]|[&lt;button2&gt;]|[&lt;console3&gt;]|[&lt;button3&gt;]|[size=&lt;icon size&gt;]}}</nowiki>
==Parameters==
{| class = "wikitable"
! Parameter || Mandatory || Description || Default value
|-
| 1 || '''Yes''' || The button's console ID. ||
|-
| 2 || '''Yes''' || The button's ID. ||
|-
| 3 || No || Secondary button's console ID. ||
|-
| 4 || No || Secondary button's ID. ||
|-
| 5 || No || Tertiary button's console ID. ||  
|-
| 4 || No || Tertiary button's ID. ||
|-
| size || No || Size of the button. || x16px
|}


The consoles and buttons are listed below. For the first two [[Pikmin series|''Pikmin'' games]], 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.
The consoles and buttons are listed below. For the first two [[Pikmin series|''Pikmin'' games]], 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.


{|align=center style=text-align:center;border-collapse:collapse cellpadding=3 border=1
{| align = "center" style = "text-align: center; border-collapse: collapse;" cellpadding = "3" border = "1"
!Code
! Code
!Result
! Result
!Image
! Image
|-
|-
!colspan=3|[[Nintendo GameCube]]
!colspan=3|[[Nintendo GameCube]]
Line 409: Line 426:
|}
|}


[[Category:Templates|{{PAGENAME}}]]</noinclude>
==Template==
<pre>
{{button | <console1> | <button1> | <console2> | <button2> | <console3> | <button3> | size = <size>}}
</pre>
 
[[Category:Templates]]</noinclude>