साँचा:मूल नाम/doc

मुक्त ज्ञानकोश विकिपीडिया से
< साँचा:मूल नाम
imported>Shubhamkanodia द्वारा परिवर्तित ०५:३७, १३ जनवरी २०१४ का अवतरण (नया पृष्ठ: <noinclude>{{documentation subpage}}</noinclude> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> An inline formatting template, based on {{tl|lang}} and {{tl|ISO 6...)
(अन्तर) ← पुराना अवतरण | वर्तमान अवतरण (अन्तर) | नया अवतरण → (अन्तर)
नेविगेशन पर जाएँ खोज पर जाएँ

साँचा:documentation subpage An inline formatting template, based on साँचा:tl and साँचा:tl, for indicating the language in which a native name has been given. By default, the native name is displayed in italics, followed by the language's name in parentheses in a smaller font size:

साँचा:lang  (language?)

The template's defaults can be overridden and the parentheses even excluded, in which case there may be no visible changes to the text where it's used. It still, however, identifies the native name as a linguistic element using the HTML span tag, which web browsers and screen readers can use to select an appropriate font, pronunciation, etc.

प्रयोग

सिंटेक्स

सामान्य
{{मूल नाम|ISO 639 भाषा कोड|जो भी मूल नाम है}}


So, the code for the example at the start of this documentation would be:

{{मूल नाम|de|Deutschland}}


पैरामीटर

Required parameters shown in bold italics.

पैरामीटर नाम विवरण एवं उदाहरण
[first unnamed] The ISO 639 code for the native language. French, for instance, is "fr"; Spanish is "es"; Arabic is "ar"; etc.
[second unnamed] The native name, in the native language (with accents, etc).
italics
साँचा:smaller
Set to "off" (or "no") to disable displaying the native name in italics.
|italics=off
paren
साँचा:smaller
Set to "off" (or "no") to suppress the appearance of the native language's name in brackets after the native name.
|paren=off
nbsp Set to "no" to suppress the addition of a second space between the native name and the native language's name in brackets.
Generally works in tandem with the italics or italic and/or paren or icon switches, as the automatic addition of the second space prevents the native name in italics from appearing to lean into the following bracket.
|nbsp=no
fontsize Use to set a font-size for the language name in parentheses different from the default (85%).
|fontsize=80%
nolink Set to anything (usually "yes") to suppress the appearance of the native language's name as a link.


अन्य समष्टि उदहारण

Code and result for the same name "Deutschland" above but with italics and nbsp switched off, nolink switched on and a fontsize of 80%:

{{मूल नाम|de|Deutschland|italics=off|nbsp=off|nolink=yes|fontsize=80%}}
साँचा:lang (error: de not found in ISO 639-1, -2, -2B, -3, -5 list (help))

Retaining no italics but suppressing the parentheses:

{{मूल नाम|de|Deutschland|italics=off|paren=off}}
साँचा:lang

This result is the same as if the साँचा:tl template had been used.

अन्य उदाहरण

कोड परिणाम
{{Infobox settlement
|name = The Hague
|native_name = {{मूल नाम|nl|Den Haag}}
}}
साँचा:if empty
साँचा:lang  (language?)
{{{type}}}
साँचा:location map
साँचा:template other
{{Infobox country
|conventional_long_name = French Republic
|native_name = {{मूल नाम|fr|République française|paren=off}}
}}

साँचा:infoboxसाँचा:main other