Template:Morse
The purpose of this template is to produce a rendering of Morse code characters. It is capable of rendering the different timings of American Morse code as well as the standard International Morse code. The template can produce any character or prosign with up to ten symbols (including the word boundary symbol). A suitable space for letter boundaries is automatically inserted. A new call to the template should be made for each letter or prosign in a sequence.
Usage
[edit]All parameters can take on the following values:
dot
produces a one unit dot, ▄dash
produces a three unit dash, ▄▄▄adash
produces a two unit dash (American morse dash) ▄▄aspace
produces a two unit space (American morse inter-element long space)
Additionally, the first parameter can also take on the following values
word
produces spacing suitable for a word boundaryldash
produces a four unit dash for the American morse "L" symbol, ▄▄▄▄zerodash
produces the very long dash for the American and Continental morse zero symbol, ▄▄▄▄▄▄▄▄▄▄▄- The
ldash
andzerodash
may also be used as the second parameter if the first parameter is required for a word boundary.
Each invocation of the template is preceded by two spaces to provide the correct timing for inter-character spacing. When the template is used at the beginning of a paragraph this will appear as an indent of the first line of the paragraph. These spaces can be suppressed if desired by using |noindent=yes
.
Examples
[edit]{{morse|dash}}{{morse|dot}}{{morse|dot|dot|dot}}{{morse|dash}}
produces ▄▄▄ ▄ ▄ ▄ ▄ ▄▄▄ and means "TEST" in International Morse{{morse|dot|dot|dot|dot}}{{morse|dot}}{{morse|ldash}}{{morse|ldash}}{{morse|dot|aspace|dot}}{{morse|word|dot|dash}}{{morse|ldash}}{{morse|ldash}}
produces ▄ ▄ ▄ ▄ ▄ ▄▄▄▄ ▄▄▄▄ ▄ ▄ ▄ ▄▄ ▄▄▄▄ ▄▄▄▄ and means "HELLO ALL" in American Morse
Morse code 26 letters and 10 numerals
[edit]A | {{morse|dot|dash}} |
▄ ▄▄▄ |
B | {{morse|dash|dot|dot|dot}} |
▄▄▄ ▄ ▄ ▄ |
C | {{morse|dash|dot|dash|dot}} |
▄▄▄ ▄ ▄▄▄ ▄ |
D | {{morse|dash|dot|dot}} |
▄▄▄ ▄ ▄ |
E | {{morse|dot}} |
▄ |
F | {{morse|dot|dot|dash|dot}} |
▄ ▄ ▄▄▄ ▄ |
G | {{morse|dash|dash|dot}} |
▄▄▄ ▄▄▄ ▄ |
H | {{morse|dot|dot|dot|dot}} |
▄ ▄ ▄ ▄ |
I | {{morse|dot|dot}} |
▄ ▄ |
J | {{morse|dot|dash|dash|dash}} |
▄ ▄▄▄ ▄▄▄ ▄▄▄ |
K | {{morse|dash|dot|dash}} |
▄▄▄ ▄ ▄▄▄ |
L | {{morse|dot|dash|dot|dot}} |
▄ ▄▄▄ ▄ ▄ |
M | {{morse|dash|dash}} |
▄▄▄ ▄▄▄ |
N | {{morse|dash|dot}} |
▄▄▄ ▄ |
O | {{morse|dash|dash|dash}} |
▄▄▄ ▄▄▄ ▄▄▄ |
P | {{morse|dot|dash|dash|dot}} |
▄ ▄▄▄ ▄▄▄ ▄ |
Q | {{morse|dash|dash|dot|dash}} |
▄▄▄ ▄▄▄ ▄ ▄▄▄ |
R | {{morse|dot|dash|dot}} |
▄ ▄▄▄ ▄ |
S | {{morse|dot|dot|dot}} |
▄ ▄ ▄ |
T | {{morse|dash}} |
▄▄▄ |
U | {{morse|dot|dot|dash}} |
▄ ▄ ▄▄▄ |
V | {{morse|dot|dot|dot|dash}} |
▄ ▄ ▄ ▄▄▄ |
W | {{morse|dot|dash|dash}} |
▄ ▄▄▄ ▄▄▄ |
X | {{morse|dash|dot|dot|dash}} |
▄▄▄ ▄ ▄ ▄▄▄ |
Y | {{morse|dash|dot|dash|dash}} |
▄▄▄ ▄ ▄▄▄ ▄▄▄ |
Z | {{morse|dash|dash|dot|dot}} |
▄▄▄ ▄▄▄ ▄ ▄ |
1 | {{morse|dot|dash|dash|dash|dash}} |
▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ |
2 | {{morse|dot|dot|dash|dash|dash}} |
▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ |
3 | {{morse|dot|dot|dot|dash|dash}} |
▄ ▄ ▄ ▄▄▄ ▄▄▄ |
4 | {{morse|dot|dot|dot|dot|dash}} |
▄ ▄ ▄ ▄ ▄▄▄ |
5 | {{morse|dot|dot|dot|dot|dot}} |
▄ ▄ ▄ ▄ ▄ |
6 | {{morse|dash|dot|dot|dot|dot}} |
▄▄▄ ▄ ▄ ▄ ▄ |
7 | {{morse|dash|dash|dot|dot|dot}} |
▄▄▄ ▄▄▄ ▄ ▄ ▄ |
8 | {{morse|dash|dash|dash|dot|dot}} |
▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ |
9 | {{morse|dash|dash|dash|dash|dot}} |
▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ |
0 | {{morse|dash|dash|dash|dash|dash}} |
▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ |