Difference between revisions of "Template:B"

From ALttP Speedrunning Wiki
Jump to: navigation, search
Line 75: Line 75:
 
.snes-button-dpad {
 
.snes-button-dpad {
 
display: inline-block;
 
display: inline-block;
width: 42px;
+
width: 30px;
height: 42px;
+
height: 30px;
 
}
 
}
  
Line 82: Line 82:
 
display: block;
 
display: block;
 
position: relative;
 
position: relative;
width: 14px;
+
width: 10px;
height: 14px;
+
height: 10px;
 
background: #000000;
 
background: #000000;
 
border-radius: 20px;
 
border-radius: 20px;
 
z-index: 9000;
 
z-index: 9000;
left: 14px;
+
left: 10px;
bottom: 42px;
+
bottom: 30px;
 
}
 
}
  
Line 100: Line 100:
 
border-width: 0;
 
border-width: 0;
 
border-color: #595E62;
 
border-color: #595E62;
width: 14px;
+
width: 10px;
height: 14px;
+
height: 10px;
 
}
 
}
  
 
.snes-button-dpad-vert {
 
.snes-button-dpad-vert {
left: 14px;
+
left: 10px;
border-width: 14px 0;
+
border-width: 10px 0;
 
}
 
}
  
 
.snes-button-dpad-horz {
 
.snes-button-dpad-horz {
bottom: 28px;
+
bottom: 20px;
border-width: 0 14px;
+
border-width: 0 10px;
 
}
 
}
  

Revision as of 19:31, 2 June 2018

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;<;>