Difference between revisions of "Template:B"

From ALttP Speedrunning Wiki
Jump to: navigation, search
Line 26: Line 26:
 
.snes-button-A {
 
.snes-button-A {
 
background: #DA3948;
 
background: #DA3948;
border-color:#610102;
+
border-color: #610102;
 
}
 
}
  
 
.snes-button-B {
 
.snes-button-B {
 
background: #FEBB52;
 
background: #FEBB52;
border-color:#3E0A00;
+
border-color: #3E0A00;
 
}
 
}
  
 
.snes-button-X {
 
.snes-button-X {
 
background: #00489F;
 
background: #00489F;
border-color:#000A35;
+
border-color: #000A35;
 
}
 
}
  
 
.snes-button-Y {
 
.snes-button-Y {
 
background: #00916A;
 
background: #00916A;
border-color:#00331B;
+
border-color: #00331B;
 
}
 
}
  
 
.snes-button-bumper {
 
.snes-button-bumper {
width:40px;
+
width: 40px;
 +
height: 16px;
 +
font-weight: bold;
 
border-color: #8D8D8D;
 
border-color: #8D8D8D;
 
background: #B8B8A8;
 
background: #B8B8A8;
Line 61: Line 63:
 
.snes-button-Start,
 
.snes-button-Start,
 
.snes-button-Select {
 
.snes-button-Select {
width:60px;
+
width: 60px;
height:12px;
+
height: 12px;
 
background: #4B545B;
 
background: #4B545B;
border-color:#050704;
+
border-color: #050704;
padding-bottom:8px;
+
padding-bottom: 8px;
font-variant:small-caps;
+
font-variant: small-caps;
 
}
 
}
  

Revision as of 17:37, 2 June 2018

{{{1}}}
Template documentation[view] [edit] [history] [purge]

Makes SNES buttons pretty.

{{B|A}} A
{{B|B}} B
{{B|X}} X
{{B|Y}} Y
{{B|L}} L
{{B|R}} R
{{B|Start}} Start
{{B|Select}} Select
{{B|Directional}} directional
{{B|D}} d
{{B|^}} ^
{{B|v}} v
{{B|<}} <
{{B|>}} >
{{B|^<}} ^<
{{B|^>}} ^>
{{B|^v}} ^v
{{B|v<}} v<
{{B|v>}} v>
{{B|^<}} ^<
{{B|^v<>}} ^v<>

Chaining

Multiple buttons can be displayed by a single template call, with several delimiters being recognized as special text.

{{B|A|B|<|>}} AB<>
{{B|A|+|B||+|<^}} A+B+<^
{{B|A|,|B|,|<|,|>}} A,B,<,>
{{B|A|;|B|;|<|;|>}} A;B;<;>