Template:Key/doc

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Shortcut:
Template:K

Example of Appearance[edit]

Example.

Single uppercase letters provide a tooltip when hovered over: A is Shift-a

Usage[edit]

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=→}} abc

Tests for special characters that sometimes break[edit]

  • test * test
  • test = test
  • test ; test
  • test : test
  • test ' test
  • test '' test
  • test < test
  • test > test