v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:Key"
Jump to navigation
Jump to search
m (border color for capital letters) |
m (use #strlen) |
||
Line 1: | Line 1: | ||
− | <includeonly><span style="background-color: #f0f0f0; {{#ifeq:{{ | + | <includeonly><span style="background-color: #f0f0f0; {{#ifeq:{{#strlen:{{{1}}}}}{{#rmatch:{{{1}}}|[A-Z]|a}}|1a|border-color:#bbf;}} width: 32px; border-style: outset; border-width: 1px; margin:0; padding:0 2px; clear:none; font-family:monospace">{{{1}}}</span></includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 23:50, 6 February 2014
(view - edit - history - purge) Documentation
Example of Appearance
Example.
Single uppercase letters provide a tooltip when hovered over: A is Shift
Usage
E{{key|x}}ample.
{{k}} redirects here, for quicker access to this command, and should be used as a shortcut.
E{{k|x}}ample.
Multiple keys can be passed as separate parameters to this template, with the sep
parameter determining the separator (the default is an empty string). {{k-}} can be used as a shortcut for {{k|sep=-}}:
{{k|a|b}} |
a |
{{k|a|b|sep=,}} |
a |
{{k|sep=+|a|b|c}} |
a |
{{k|a|b|c|sep=-}} |
a |
{{k-|a|b|c}} |
a |
{{k|a|b|c|sep=→}} |
a |
Tests for special characters that sometimes break
- test * test
- test = test
- test ; test
- test : test
- test ' test
- test test
- test < test
- test > test