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 (+example) |
Doorkeeper (talk | contribs) (nowrap property) |
||
(16 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <span style="white-space: nowrap;">{{key/0|{{{1|<includeonly>No key provided</includeonly><noinclude>Sample</noinclude>}}}}}{{#if:{{{2|}}}|{{{sep|}}}{{key/0|{{{2}}}}}}}{{#if:{{{3|}}}|{{{sep|}}}{{key/0|{{{3}}}}}}}{{#if:{{{4|}}}|{{{sep|}}}{{key/0|{{{4}}}}}}}{{#if:{{{5|}}}|{{{sep|}}}{{key/0|{{{5}}}}}}}{{#if:{{{6|}}}|{{{sep|}}}{{key/0|{{{6}}}}}}}{{#if:{{{7|}}}|{{{sep|}}}{{key/0|{{{7}}}}}}}{{#if:{{{8|}}}|{{{sep|}}}{{key/0|{{{8}}}}}}}{{#if:{{{9|}}}|{{{sep|}}}{{key/0|{{{9}}}}}}}{{#if:{{{10|}}}|{{{sep|}}}{{key/0|{{{10}}}}}}}{{#if:{{{11|}}}|{{{sep|}}}{{key/0|{{{11}}}}}}}{{#if:{{{12|}}}|{{{sep|}}}{{key/0|{{{12}}}}}}}{{#if:{{{13|}}}|{{{sep|}}}{{key/0|{{{13}}}}}}}{{#if:{{{14|}}}|{{{sep|}}}{{key/0|{{{14}}}}}}}{{#if:{{{15|}}}|{{{sep|}}}{{key/0|{{{15}}}}}}}</span><noinclude>{{documentation}}</noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 19:24, 28 November 2020
Sample
(view - edit - history - purge) Documentation
Example of Appearance
Example.
Single uppercase letters provide a tooltip when hovered over: A is Shift-a
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}} |
ab |
{{k|a|b|sep=,}} |
a,b |
{{k|sep=+|a|b|c}} |
a+b+c |
{{k|a|b|c|sep=-}} |
a-b-c |
{{k-|a|b|c}} |
a-b-c |
{{k|a|b|c|sep=→}} |
a→b→c |
Tests for special characters that sometimes break
- test * test
- test = test
- test ; test
- test : test
- test ' test
- test '' test
- test < test
- test > test