User:Benedict/Template:SpecialChars

< User:Benedict

Template:SpecialChars is a template for calling special chars forward on a page. This template also can put a Pipe (|) symbol in templates without messing them up. All are currently Case Sensitive, so make sure you type it all lowercase (Unless you are doing É or something similar)!

Contents

Usage

For a special character you would use {{User:Benedict/Template:SpecialChars|Syntax here}}. Here is a list of all possible values to put in the "Syntax Here". For example: {{User:Benedict/Template:SpecialChars|larr}} would produce ←

Pipe (|) Symbol

  • pipe
  • !

eacute (é) Symbol

  • e'
  • e

Caps eacute (É) Symbol

  • E'
  • E

Left Arrow (←) Symbol

  • larr
  • la
  • <-

Right Arrow (→) Symbol

  • rarr
  • ra
  • ->

Up Arrow (↑) Symbol

  • uarr
  • ua
  • ^

Down Arrow (↓) Symbol

  • darr
  • da
  • v

Code

Uncompressed

Notice: The actual code is different from the visual code below due to the transformation of & chars.

{{#switch: {{{1}}}
|! = |
|pipe = |
|e' = é
|e = é
|E' = É
|E = É
|larr = ←
|la = ←
|<- = ←
|rarr = →
|ra = →
|-> = →
|uarr = ↑
|ua = ↑
|^ = ↑
|darr = ↓
|da = ↓
|v = ↓
}}

Compressed

{{#switch: {{{1}}}|! = ||pipe = ||e' = é|e = é|E' = É|E = É|larr = ←|la = ←|<- = ←|rarr = →|ra = →|-> = →|uarr = ↑|ua = ↑|^ = ↑|darr = ↓|da = ↓|v = ↓}}