Editing Template:Keyboard
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<div style=" | {{clear}} | ||
<div style="float:left; width:100%;"> | |||
[[image:64px-Keyboard.png|x64px|left|link=|Type This]]{{#tag:pre|{{{content|"Hello there"}}}|style="min-height:54px; margin:0px; padding:5px; border:1px solid #e0e0e0;"}} | |||
</div>{{clear}}<noinclude> | </div> | ||
{{clear}} | |||
<noinclude> | |||
== Usage == | == Usage == | ||
Line 18: | Line 20: | ||
== Warning == | == Warning == | ||
The | character (named pipe in wiki slang) breaks the template because is considered an indication to enter the next parameter of template <nowiki>{{keyboard}}</nowiki>, after the pipe it stops displaying the content<br> | The | character (named pipe in wiki slang) breaks the template because is considered an indication to enter the next parameter of template <nowiki>{{keyboard}}</nowiki>, after the pipe it stops displaying the content<br> | ||
To bypass this problem is needed to replace the pipe characters in the content by <nowiki>{{!}}</nowiki>. This is an official mediawiki hack, the template <nowiki>{{!}}</nowiki> is considered as standard characters by the template <nowiki>{{keyboard}}</nowiki> but is replaced by a | when is displayed | To bypass this problem is needed to replace the pipe characters in the content by <nowiki>{{!}}</nowiki>. This is an official mediawiki hack, the template <nowiki>{{!}}</nowiki> is considered as standard characters by the template <nowiki>{{keyboard}}</nowiki>... but is replaced by a | when is displayed | ||
<nowiki>{{Keyboard|content=1,2,3,4,5|6,7,8,9,10}}</nowiki> | <nowiki>{{Keyboard|content=1,2,3,4,5|6,7,8,9,10}}</nowiki> | ||
Line 24: | Line 26: | ||
<nowiki>{{Keyboard|content=1,2,3,4,5{{!}}6,7,8,9,10}}</nowiki> | <nowiki>{{Keyboard|content=1,2,3,4,5{{!}}6,7,8,9,10}}</nowiki> | ||
{{Keyboard|content=1,2,3,4,5{{!}}6,7,8,9,10}} | {{Keyboard|content=1,2,3,4,5{{!}}6,7,8,9,10}} | ||
[[Category:templates]]</noinclude> | [[Category:templates]]</noinclude> |