Template:Ko-translit/doc
![]() | This is a documentation subpage for Template:Ko-translit. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
![]() | This template uses Lua: |
![]() | This template is rated as alpha. It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
Purpose
[edit]This template uses Module:Ko-translit to automatically generate romanized Korean text based on given Hangul text. The module currently implements Revised Romanization and McCune–Reischauer (the 1961 version).
The template also has an option to have the text be wrapped in {{Transliteration}} (see that template for explanation of why wrapping is preferred).
Usage
[edit]Example
[edit]Capitalize first letter:
{{ko-translit|rr|^한글}}
→ Hangeul
Wrap and disable italics (hover mouse over output):
{{ko-translit|rr|한글|wrap=yes|wrapital=no}}
→ hangeul
Name mode:
{{ko-translit|mr|%이승만}}
→ I Sŭngman
Parameters
[edit]|system=
- Required, either
rr
ormr
. The romanization system to use (Revised Romanization or McCune–Reischauer). |hangul=
- Required. Hangul text to romanize. The text may need to have special symbols be inserted in order to modify the output romanization. For example, to capitalize the first letter of the romanization, a
^
needs to be inserted before the Hangul. E.g.^한글
→ Hangul. |wrap=
- Optional, default
no
. Set toyes
to wrap the output romanization in {{transliteration}}. The language tags for that template are automatically set. |wrapital=
- Optional, default
yes
. Only relevant if|wrap=yes
. Set tono
to disable italics in {{transliteration}}.
TemplateData
[edit]TemplateData for Ko-translit
Semi-automatic romanization of Korean.
Parameter | Description | Type | Status | |
---|---|---|---|---|
System | system 1 | Romanization system to use
| String | required |
Hangul | hangul 2 | Hangul string to romanize. May need special symbols to modify the romanization. | String | required |
Wrap output? | wrap | Wrap text in transliteration template?
| String | suggested |
Italicize wrapped text? | wrapital | Italicize text wrapped in transliteration template?
| String | suggested |
See also
[edit]- {{Korean/auto}} – Another template that implements Module:Ko-translit
- {{Infobox Korean name/auto}} – Ditto