Template:Keystrikes: Difference between revisions

From KDE UserBase Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
==Examples==
==Examples==


<nowiki>{{Keystrike|Enter}}</nowiki> will give you '''Enter'''.
<nowiki>{{Keystrikes|Enter}}</nowiki> will give you '''Enter'''.


<nowiki>{{Keystrike|Alt|Ctrl|Del}}</nowiki> will give you <span title='Note that "+" is used to link keys to be pressed concurrently.'>'''Alt'''+'''Ctrl'''+'''Del'''</span>.
<nowiki>{{Keystrikes|Alt|Ctrl|Del}}</nowiki> will give you <span title='Note that "+" is used to link keys to be pressed concurrently.'>'''Alt'''+'''Ctrl'''+'''Del'''</span>.


==Source Code==
==Source Code==


<pre>{{#if: {{{2|}}} |<span title='Note that "+" is used to link keys to be pressed concurrently.'>}}'''{{{1}}}'''{{#if: {{{2|}}} |+'''{{{2}}}'''|}}{{#if: {{{3|}}} |+'''{{{3}}}'''|}}{{#if: {{{4|}}} |+'''{{{4}}}'''|}}{{#if: {{{2|}}} |</span>}}</pre>
<pre>{{#if: {{{2|}}} |<span title='Note that "+" is used to link keys to be pressed concurrently.'>}}'''{{{1}}}'''{{#if: {{{2|}}} |+'''{{{2}}}'''|}}{{#if: {{{3|}}} |+'''{{{3}}}'''|}}{{#if: {{{4|}}} |+'''{{{4}}}'''|}}{{#if: {{{2|}}} |</span>}}</pre>
[[Category:UnusedTemplates]]


----
----

Latest revision as of 09:31, 27 July 2012

Usage

This template accepts up to 4 parameters.

Examples

{{Keystrikes|Enter}} will give you Enter.

{{Keystrikes|Alt|Ctrl|Del}} will give you Alt+Ctrl+Del.

Source Code

{{#if: {{{2|}}} |<span title='Note that "+" is used to link keys to be pressed concurrently.'>}}'''{{{1}}}'''{{#if: {{{2|}}} |+'''{{{2}}}'''|}}{{#if: {{{3|}}} |+'''{{{3}}}'''|}}{{#if: {{{4|}}} |+'''{{{4}}}'''|}}{{#if: {{{2|}}} |</span>}}


{{{1}}}