Templat ini menggunakan Lua: |
Templat ini sedang dalam masa transisi. Parameter posisi kedua yang mengambil nama bahasa teks yang diterjemahkan sudah tidak digunakan lagi. Gunakan parameter posisi pertama untuk menyimpan tag bahasa ISO 639 atau IETF untuk bahasa tersebut dan biarkan parameter posisi kedua kosong. |
Templat ini menyediakan terjemahan ke dalam bahasa Inggris dari istilah atau frasa non-Inggris, dan secara opsional menautkan ke artikel tentang bahasa asing.
{{Language with name/for|<language tag>|<non-English text>|<term or phase>}}
– note blank second positional parameter
There are three positional parameters:
<non-English text>
(positional parameter {{{2}}}
). See note.<{{var|non-English text}}>
– {{lang}}
will apply proper html markup for this text using the language tag specified in {{{1}}}
<non-English text>
. Do not include quote marks; those are provided automatically by the template.and several named parameters:
|term1=
– alias of {{{3}}}
(<term or phase>
)|term2=
.. |termn=
– additional 'or'-like translations; each rendered in single quotes; quoted terms separated by '<space>/<space>'|italic-term=
– yes
or no
; default is no
; useful for multi-term translations when all should be italicized|lang-name=
– for those cases where ISO 639 does not have a language tag; {{{1}}}
(<language tag>
) is ignored; {{lang}}
wraps {{{2}}}
(<non-English text>
) with html using mis
(uncoded language) tag. See note.|break=
– yes
or no
; default is no
; inserts <br />
between the non-English text and the language name|paren=
– accepts one of two values:
none
; omits parens around '<language-name> for <term or phase>'left
; template provides the left parenthesis only; the right is omittedThis template also accepts all parameters supported by {{lang}}
except |code=
and |text=
.
Note: When there is an ISO 639 language tag for the non-English text's language, use that tag; do not use |lang-name=
. When ISO 639 does not have a language that applies to the non-English text use |lang-name=
for the non-English language name. This template applies proper html markup to the non-English text only when given a proper language tag. When language name is provided by |lang-name=
this template sets the html lang=
attribute to mis
(uncoded language).
Do this:
{{langnf|es|Casa|house}}
<span title="Spanyol-language text"><i lang="es">Casa</i></span><span class="lang-comment" style="font-style: normal; display: none; color: #33aa33; margin-left: 0.3em;">code: es is deprecated </span> ([[Bahasa Spanyol|Spanyol]] for 'house')
Do not do this:
{{langnf||Casa|house|lang-name=Spanish}}
<span title="uncoded-language text"><i lang="mis">Casa</i></span><span class="lang-comment" style="font-style: normal; display: none; color: #33aa33; margin-left: 0.3em;">code: mis is deprecated </span> ([[Spanish language|Spanish]] for 'house')
Basic use:
{{langnf|es|Casa|house}}
Using |lang-name=Massachusett
:
{{langnf||kuncannowet|breast|lang-name=Massachusett}}
– note empty {{{1}}}
Using |break=yes
:
{{langnf|es|Casa|house|break=yes}}
Using |paren=none
:
{{langnf|es|Casa|house|paren=none}}
Using |paren=left
:
{{langnf|fr|'''L'Aurore'''|The Dawn|paren=left}}; {{IPA|fr|loʁɔʁ|IPA}})
Using |term1=house
, |term2=hut
, |term3=mansion
:
{{langnf|es|Casa|term1=house|term2=hut|term3=mansion}}
Using |term1=house
, |term2=hut
, |term3=mansion
, and |italic-term=yes
:
{{langnf|es|Casa|term1=house|term2=hut|term3=mansion|italic-term=yes}}
This template detects errors. Those articles that have {{language with name/for}}
errors are added to Kategori:Language with name/for errors (12). When errors are detected, this template emits error messages:
{{{1}}}
) or |lang-name=
. To resolve this error, provide an appropriate language tag in {{{1}}}
or an appropriate language name in |lang-name=
. See template documentation for specific requirements for these parameters.{{{1}}}
) and |lang-name=
may be conflicting, only one of these is allowed; use the most appropriate. See template documentation for specific requirements for these parameters.{{{3}}}
or |term1=
of the non-English text is required. To resolve this error, provide an appropriate translation.