Hello friends!
Since I was not satisfied with the existing Morse-Templates, often they are very inconvenient, I wrote a new template what, together with a Lua module, can also satisfy unusual requirements.
- What can the Template/Module do?
- Simple input of characters or strings that are converted into code in a flash. It's as simple as:
{{Morse|My Message}}
- output: ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄
{{Morse|b}
- output: ▄▄▄ ▄ ▄ ▄
- Can be used within ▄ ▄▄▄ ▄ ▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ the body of the text.
- The code size can be set with the 2nd parameter:
{{Morse|tiny|20}}
▄▄▄ ▄ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄▄▄ ▄▄▄ or{{Morse|big|80}}
▄▄▄ ▄ ▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄ (default=40)
- Of course, the template does not produce leading or trailing spaces.
It means that the code shown can be perfectly enclosed in brackets (▄▄▄ ▄ ▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄ ▄ ▄ ▄▄▄ ▄ ▄ ▄ ) - Individual letters or “SOS” can also be demonstrated acoustically:
{{Morse|2|audio=1}}
▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄{{Morse|SOS|audio=1}}
▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄
- Do you like it colored? Set the code color and/or background color
{{Morse|morse|color=blue}}
▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ ▄ ▄ ▄{{Morse|morse|color=yellow|background=green}}
▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ ▄ ▄ ▄{{Morse|#FF1EFF|color=#ff1eff}}
▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄ ▄ ▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄ ▄▄▄ ▄ ▄ ▄ ▄▄▄ ▄
- Some likes it more simple – Vissa gillar det enklare – Certains l'aiment plus simple
- USA uses a different , more compressed code, no problem!
- USA
{{morse|I love 007|us=1}}
▄ ▄ ▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄ ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄ - ALL OTHER:
{{morse|I love 007}}
▄ ▄ ▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄ ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄ - You prefer the long way like the real Template:morse? I'll accept it too:
{{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. Fine, but
{{morse|HELLO ALL|v=u}}
is a little bit shorter and produces ▄ ▄ ▄ ▄ ▄ ▄▄▄▄ ▄▄▄▄ ▄ ▄ ▄ ▄▄ ▄▄▄▄ ▄▄▄▄ .
- USA
- А что насчет России?
{{Morse|А что насчет России?}}
▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄ ▄
- Many other character sets are also accepted and translated correctly
- For a space-saving version (not official) try
|version=compressed
or|v=c
••• •❙ •••❙• ••• •❙❙• •❙❙•❙• • ❙• ❙❙❙ •❙❙ ❙•❙•❙❙{{Morse|äÖθψßישראלÈñĞΔ}}
▄ ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ ▄ ▄▄▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄
- Almost all parameters can be combined.
- How can you get it? Ask me.
- © (CC BY-SA 3.0) by Kpfiwa
- If you already have an existing „Module:Morse“, you have to run it in parallel under a different name.
- There are 5 files to be copied, together there are <1000 lines, <30 kb plus German documentation for translating into your own language.
- The Template:Morse and the Module:Morse, must be adapted to your own language environment. It takes 1 minute.
- T he documentation, about 100 lines, has to be translated. Your translation program will be happy to help you. There are no difficult texts.
You like it? GET IT for free Wikipedia use.
- If you need more international letters, you can easily add them to a separate file according to an existing template.