Template:Transliterate/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Transliterate. It may contain usage information, categories and other content that is not part of the original template page. |
| This template may be substituted. |
| File:Lua-Logo.svg | This template uses Lua: |
Usage
[edit source]This template requires three parameters: a target string, a list of characters to replace and a list of replacements to be listed in the same order.
Wikitext:
{{transliterate
| 1 = Lorem ipsum dolor sit amet
| 2 = aeiou
| 3 = AEIOU
}}
Effect:
LOrEm IpsUm dOlOr sIt AmEt
If the second parameter is longer than the third, the characters in excess will be deleted from |1=. If the third parameter is longer than the second, the character in excess will be ignored.
See also
[edit source]- {{replace}}
- {{str rep}}
- {{#invoke:string|replace}}
- {{#invoke:params|mapping_by_replacing}}
- {{#invoke:multiReplace|main}}
- {{transliteration}}