Formatting Keystrikes

Matthias Meßmer matthias at familie-messmer.de
Mon Jul 5 17:26:08 UTC 2010


Hi,

formatting keystrikes using <keycap> is a bit exhausting. So i tried to
ease it using a template:

http://userbase.kde.org/Template:Keystrikes

Instead of

<keycap>Ctrl</keycap>+<keycap>Alt</keycap>+<keycap>Del</keycap>

simply write

{{Keystrike|Ctrl|Alt|Del}}

Annotations:

* I used ''' for making the key lables bold. It can be replaced with
<keycap> easily.

* If more than one key shall be hit concurrently I added a <span> with
title attribute which explains the meaning of the "+".

* Even frames around the keys labels are possible...

What do you think?

Matthias




More information about the kde-www mailing list