Benutzer:Kpfiwa/Morsetemplate

aus Wikipedia, der freien Enzyklopädie
Zur Navigation springen Zur Suche springen

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?
  1. 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: ▄▄▄ ▄ ▄ ▄ 
  2. Can be used within ▄ ▄▄▄ ▄ ▄   ▄ ▄ ▄   ▄▄▄ ▄▄▄ ▄▄▄  the body of the text.
  3. The code size can be set with the 2nd parameter:
    • {{Morse|tiny|20}}▄▄▄   ▄ ▄   ▄▄▄ ▄   ▄▄▄ ▄ ▄▄▄ ▄▄▄  or
    • {{Morse|big|80}}▄▄▄ ▄ ▄ ▄   ▄ ▄   ▄▄▄ ▄▄▄ ▄  (default=40)
  4. Of course, the template does not produce leading or trailing spaces.
    It means that the code shown can be perfectly enclosed in brackets (▄▄▄   ▄ ▄ ▄ ▄   ▄ ▄▄▄   ▄▄▄       ▄ ▄ ▄▄▄ ▄   ▄ ▄   ▄▄▄   ▄ ▄ ▄ )
  5. Individual letters or “SOS” can also be demonstrated acoustically:
  6. 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}}▄▄▄ ▄ ▄▄▄ ▄▄▄   ▄ ▄ ▄▄▄ ▄   ▄ ▄ ▄▄▄ ▄   ▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄   ▄   ▄ ▄ ▄▄▄ ▄   ▄ ▄ ▄▄▄ ▄ 
  7. Some likes it more simple – Vissa gillar det enklare – Certains l'aiment plus simple
    • SverigeSverige{{Morse|Sverige}}                                                      
    • FranceFrance{{Morse|la France}}.-../.-//..-./.-./.-/-./-.-././/
  8. USA uses a different , more compressed code, no problem!
    • USAUSA {{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 ▄ ▄ ▄ ▄   ▄   ▄▄▄▄   ▄▄▄▄   ▄  ▄       ▄ ▄▄   ▄▄▄▄   ▄▄▄▄ .
  9. А что насчет России?
    • {{Morse|А что насчет России?}}▄ ▄▄▄       ▄▄▄ ▄▄▄ ▄▄▄ ▄   ▄▄▄   ▄▄▄ ▄▄▄ ▄▄▄       ▄▄▄ ▄   ▄ ▄▄▄   ▄ ▄ ▄   ▄▄▄ ▄▄▄ ▄▄▄ ▄   ▄   ▄▄▄       ▄ ▄▄▄ ▄   ▄▄▄ ▄▄▄ ▄▄▄   ▄ ▄ ▄   ▄ ▄ ▄   ▄ ▄   ▄ ▄   ▄ ▄ ▄▄▄ ▄▄▄ ▄ ▄ 
  10. Many other character sets are also accepted and translated correctly
  11. For a space-saving version (not official) try|version=compressedor|v=c ••• •❙ •••❙•   ••• •❙❙• •❙❙•❙• •   ❙• ❙❙❙ •❙❙ ❙•❙•❙❙
    • {{Morse|äÖθψßישראלÈñĞΔ}}▄ ▄▄▄ ▄ ▄▄▄   ▄▄▄ ▄▄▄ ▄▄▄ ▄   ▄▄▄ ▄ ▄▄▄ ▄   ▄▄▄ ▄▄▄ ▄ ▄▄▄   ▄ ▄ ▄ ▄▄▄ ▄▄▄ ▄ ▄   ▄ ▄   ▄ ▄ ▄   ▄ ▄▄▄ ▄   ▄ ▄▄▄   ▄ ▄▄▄ ▄ ▄   ▄ ▄▄▄ ▄ ▄ ▄▄▄   ▄▄▄ ▄▄▄ ▄ ▄▄▄   ▄▄▄ ▄▄▄ ▄ ▄▄▄ ▄   ▄▄▄ ▄ ▄ 
  12. Almost all parameters can be combined.
  13. 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.

EU Klaus-Peter Deutschland

→Your messages and playground HERE←