Template:Key

From Team Fortress Wiki
Revision as of 20:56, 1 September 2010 by Shine (talk | contribs)
Jump to: navigation, search

Usage

Based on the HUD display from HL2. Handles up to 5 keys and their descriptions.

  • {{key|CTRL}} generates inline:
Crouching is easy to do. Simply press the CTRL key to crouch.
  • {{key|MOUSE2|airblast}} generates inline also:
Lorem ipsum dolor sit amet, MOUSE2+airblast, dolor sit amet lorem.

{{{1}}}

  • The following code produces a right-aligned table, handy for multiple keys and their descriptions:
{{key | align = right
| key1  = W
| desc1 = forward
| key2  = A
| desc2 = left
| key3  = S
| desc3 = right
| key4  = D
| desc4 = backward
| key5  = MOUSE1
| desc5 = attack
}}