แม่แบบ:Morse

จากวิกิพีเดีย สารานุกรมเสรี

  

Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

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.

วิธีใช้[แก้]

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 boundary
  • ldash 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 and zerodash 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.

ตัวอย่าง[แก้]

  • {{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

Standard Morse alphabet[แก้]

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}}   ▄▄▄ ▄▄▄ ▄ ▄ 
? {{morse|dot|dot|dash|dash|dot|dot}}   ▄ ▄ ▄▄▄ ▄▄▄ ▄ ▄