"साचा:Key press/doc" च्या विविध आवृत्यांमधील फरक

Content deleted Content added
Updating this /doc since I have just reworked the template. Intermediate save, more coming soon.
Finishing this doc. Adding explanation that it takes up to 5 key parameters, and error logs if it gets more.
ओळ १२:
:<code><nowiki>{{keypress|[[Alt key|Alt]]}}</nowiki></code> produces {{keypress|[[Alt key|Alt]]}}
 
To illustrate multiplekeystroke keystrokescombinations, just use extra parameters (max 4):
:<code><nowiki>{{keypress|[[Alt key|Alt]]|P}}</nowiki></code> produces {{keypress|[[Alt key|Alt]]|P}}
:<code><nowiki>{{keypress|[[Ctrl]]|Alt|Del}}</nowiki></code> produces {{keypress|[[Ctrl]]|Alt|Del}}
ओळ २९:
:<code><nowiki>{{keypress|Ctrl}} + {{keypress|Alt}} + {{keypress|Del}}</nowiki></code> produces {{keypress|Ctrl}} + {{keypress|Alt}} + {{keypress|Del}}
 
This template currently handles up to 5 key name parameters. If it gets too many key name parameters it reports the page into [[:Category:Wikipedia keypress template parameter needs fixing]]. This means we can easily find those pages and fix them, or we can discover if we need to make this template take more parameters.
This template calls {{tl|keypress/core}}, which holds the code that otherwise would be repeated several times in {{tl|keypress}}, thus simplifying the code in {{tl|keypress}}.
 
This template calls {{tl|keypress/core}}, which holds the code that otherwise would be repeated several times in {{tl|keypress}}, thus simplifying the code in {{tl|keypress}}.
 
=== See also ===