19,666
edits
m (typo) |
m (updated doc template calls for new name) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
position:relative;">{{{bot_char}}}</span><!-- | position:relative;">{{{bot_char}}}</span><!-- | ||
--></div></includeonly><noinclude> | --></div></includeonly><noinclude> | ||
Call this template when you want to draw an image of a keyboard button. | Call this template when you want to draw an image of a large keyboard button, as seen at {{SectionLink|Developer Mode|Using the console}}. Currently only designed to display buttons with two symbols on them. For a small button that can be printed inline with text, see [[Template:KeySmall]]. | ||
==Parameters== | ==Parameters== | ||
Line 29: | Line 29: | ||
==Sample usage== | ==Sample usage== | ||
<tt><nowiki>{{ | <tt><nowiki>{{KeyLarge|top_char=§|bot_char=½}}</nowiki></tt><br> | ||
yields:<br> | yields:<br> | ||
{{ | {{KeyLarge|top_char=§|bot_char=½}} | ||
<tt><nowiki>{{ | <tt><nowiki>{{KeyLarge|top_char=~|top_scale=117|bot_char=`|bot_scale=133}}</nowiki></tt><br> | ||
yields:<br> | yields:<br> | ||
{{ | {{KeyLarge|top_char=~|top_scale=117|bot_char=`|bot_scale=133}} | ||
vs. how it would look without the special scaling for each character:<br> | vs. how it would look without the special scaling for each character:<br> | ||
{{ | {{KeyLarge|top_char=~|bot_char=`}} | ||
The same button at 50% scale:<br> | The same button at 50% scale:<br> | ||
<tt><nowiki>{{ | <tt><nowiki>{{KeyLarge|scale=50|top_char=~|top_scale=117|bot_char=`|bot_scale=133}}</nowiki></tt><br> | ||
yields:<br> | yields:<br> | ||
{{ | {{KeyLarge|scale=50|top_char=~|top_scale=117|bot_char=`|bot_scale=133}} | ||
[[Category:Basic formatting templates]]</noinclude> | [[Category:Basic formatting templates]]</noinclude> |