"ഫലകം:Korean" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

move ": " outside of piped links, otherwise this looks terrible with the MonoBook CSS on Mozilla Firefox, where all hyperlinks are underlined and blue
+
വരി 1:
{{Documentation subpage}}
{{#switch:{{{links|}}}|No|no=
 
|
==Purpose==
| [[Hangul{{#switch: {{{context|}}}|N|n|NK|nk|DPRK|dprk|North|north={{!}}Chosŏn'gŭl|Old|old={{!}}Hunminjeongeum| {{!}}Hangul}}]]: 
This template organizes Korean scripts and romanizations for use within article prose. It formats Korean [[Hangul]] and [[hanja]] using [[Template:Lang]] to ensure that web browsers use appropriate fonts, and screen readers use correct pronunciation. It also uses [[Template:Transl]] to mark romanizations as belonging in the "latinx" class of [[MediaWiki:Common.css]].
}}{{lang|ko-Hang|{{{hangul|{{{1|}}}}}}}}{{#if:{{{hanja|{{{2|}}} }}}|&#59; {{#switch:{{{links|}}}|No|no=
 
|
==Usage==
| [[Hanja{{#switch: {{{context|}}}|N|n|NK|nk|DPRK|dprk|North|north={{!}}hancha|{{!}}hanja}}]]: 
Full parameter set:
}}{{lang|ko-Hani|{{{hanja|{{{2|}}}}}}}} }}{{#switch: {{{context|}}}|North|N|n|NK|nk|DPRK|dprk|north={{#if:{{{mr|{{{4|}}}}}}|&#59; {{#switch:{{{links|}}}|No|no=
:<code><nowiki>{{Korean|hangul=|hanja=|rr=|mr=|links=|context=|lit=}}</nowiki></code>
|
Typical usage:
| [[McCune–Reischauer|MR]]:&nbsp;
:<code><nowiki>{{Korean|hangul=|hanja=|rr=}}</nowiki></code>
}}''{{transl|ko|{{{mr|{{{4|}}}}}}}}''}}}}{{#if:{{{rr|{{{3|}}}}}}|&#59; {{#switch:{{{links|}}}|No|no=
Example:
|
:<code><nowiki>{{Korean|hangul=대청황제공덕비|hanja=大清皇帝功德碑|rr=Daechong Hwangje Gongdeokbi}}</nowiki></code>
| [[Revised Romanization of Korean|RR]]:&nbsp;
will produce:
}}''{{transl|ko|{{{rr|{{{3|}}}}}}}}''}}{{#switch: {{{context|}}}|N|n|NK|nk|DPRK|dprk|North|north=|#default={{#if:{{{mr|{{{4|}}}}}}|&#59; {{#switch:{{{links|}}}|No|no=
:{{Korean|hangul=대청황제공덕비|hanja=大清皇帝功德碑|rr=Daechong Hwangje Gongdeokbi}}
|
 
| [[McCune–Reischauer|MR]]:&nbsp;
Alternatively, the template can be used without labels. Example:
}}''{{transl|ko|{{{mr|{{{4|}}}}}}}}''}}}}{{#if: {{{lit|}}}|&#59; lit.&nbsp;{{{lit}}}}}<noinclude>{{documentation}}</noinclude>
:<code><nowiki>{{Korean|대청황제공덕비|大清皇帝功德碑|Daechong Hwangje Gongdeokbi}}</nowiki></code>
This will produce the same output as above, but be careful to put the Hangul, hanja, and romanizations in the same order as you would if you were using the labels.
 
There are several optional parameters:
* '''mr=''' for [[McCune–Reischauer]] romanization; to be used in place of '''rr=''' in articles about [[North Korean language|North Korea]]
* '''context=north''' for use in articles about North Korea; displays "Hancha" instead of "Hanja" and "Chosŏn'gŭl" instead of "Hangul"
* '''context=old''' displays the more neutral [[Hunminjeongeum]] instead of "Hangul" or "Chosŏn'gŭl", can be used in articles about events that occurred before the development of North and South Korea (pre-1945)
* '''links=no''' to remove labels and links to language pages to improve readability; useful if the template is used multiple times in the same article (see [[WP:OLINK]])
* '''lit=''' allows for the inclusion of a literal English translation; should generally not be used for people's names
 
'''Note:''' This template should generally be placed in parentheses (see [[MOS:TEXT#Foreign terms|MOS:TEXT]])
 
==See also==
* [[Template:Infobox Korean name]]
* [[Template:Lang-ko]]
* [[Template:Hangul]]
* [[Template:Hanja]]
 
<includeonly>
[[Category:Korean name templates|{{PAGENAME}}]]
</includeonly>
"https://ml.wikipedia.org/wiki/ഫലകം:Korean" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്