Difference between revisions of "Template:B"
From ALttP Speedrunning Wiki
Line 2: | Line 2: | ||
.snes-button, | .snes-button, | ||
.snes-button-face, | .snes-button-face, | ||
− | .snes-button-mid { | + | .snes-button-mid, |
+ | .snes-button-bumper { | ||
display: inline-block; | display: inline-block; | ||
text-align: center; | text-align: center; | ||
Line 41: | Line 42: | ||
background: #00916A; | background: #00916A; | ||
border-color:#00331B; | border-color:#00331B; | ||
+ | } | ||
+ | |||
+ | .snes-button-bumper { | ||
+ | width:40px; | ||
+ | border-color: #8D8D8D; | ||
+ | background: #B8B8A8; | ||
+ | } | ||
+ | |||
+ | .snes-button-R { | ||
+ | border-radius: 15px 0 0 0; | ||
+ | } | ||
+ | |||
+ | .snes-button-L { | ||
+ | border-radius: 0 15px 0 0; | ||
} | } | ||
Line 55: | Line 70: | ||
}}<span class="{{#switch:{{uc:{{{1}}}}} | }}<span class="{{#switch:{{uc:{{{1}}}}} | ||
− | |A|B|X|Y=snes-button-face snes-button- | + | |A|B|X|Y=snes-button-face |
− | |START|SELECT=snes-button-mid snes-button {{ucfirst:{{lc:{{{1}}}}} | + | |R|L=snes-button-bumper |
− | }}">{{ucfirst:{{lc:{{{1}}}}}}}</span><noinclude>{{Documentation}}</noinclude> | + | |START|SELECT=snes-button-mid}} snes-button-{{ucfirst:{{lc:{{{1}}}}}}}">{{ucfirst:{{lc:{{{1}}}}}}}</span><noinclude>{{Documentation}}</noinclude> |
Revision as of 17:36, 2 June 2018
Makes SNES buttons pretty.
{{B|A}} |
|
{{B|B}} |
|
{{B|X}} |
|
{{B|Y}} |
|
{{B|L}} |
|
{{B|R}} |
|
{{B|Start}} |
|
{{B|Select}} |
|
{{B|Directional}} |
|
{{B|D}} |
|
{{B|^}} |
|
{{B|v}} |
|
{{B|<}} |
|
{{B|>}} |
|
{{B|^<}} |
|
{{B|^>}} |
|
{{B|^v}} |
|
{{B|v<}} |
|
{{B|v>}} |
|
{{B|^<}} |
|
{{B|^v<>}} |
Chaining
Multiple buttons can be displayed by a single template call, with several delimiters being recognized as special text.
{{B|A|B|<|>}} |
|
{{B|A|+|B||+|<^}} |
|
{{B|A|,|B|,|<|,|>}} |
|
{{B|A|;|B|;|<|;|>}} |
The above documentation is transcluded from Template:B/doc. (edit | history) Please add categories to the /doc subpage. Subpages of this template. |