Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Parameters  





3 Examples  





4 Errors  





5 See also  














Template:Language with name/for






تۆرکجه


فارسی
Bahasa Indonesia
Kurdî
Македонски


Bahasa Melayu


ି

Română
Scots

Simple English
سنڌي
کوردی
Sunda
Tagalog
 

اردو
Tiếng Vit


 
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

< Template:Language with name
(Redirected from Template:Langnf)

Usage

This template provides a translation into English of a non-English term or phrase, and optionally links to the article on the foreign language.

Parameters

{{Language with name/for|<language tag>|<non-English text>|<term or phase>}} – note blank second positional parameter

There are three positional parameters:

  1. the ISO 639 or IETF language tag of the language of <non-English text> (positional parameter {{{2}}}). See note.
  2. <{{var|non-English text}}>{{lang}} will apply proper html markup for this text using the language tag specified in {{{1}}}
  3. the English translation of <non-English text>. Do not include quote marks; those are provided automatically by the template.

and several named parameters:

This 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}}
Casa (Spanish for 'house')
<span title="Spanish-language text"><i lang="es">Casa</i></span> ([[Spanish language|Spanish]] for &#39;house&#39;)

Do not do this:

{{langnf||Casa|house|lang-name=Spanish}}
Casa (Spanish for 'house')
<span title="uncoded-language text"><i lang="mis">Casa</i></span> ([[Spanish language|Spanish]] for &#39;house&#39;)

Examples

Basic use:

{{langnf|es|Casa|house}}
Casa (Spanish for 'house')

Using |lang-name=Massachusett:

{{langnf||kuncannowet|breast|lang-name=Massachusett}} – note empty {{{1}}}
kuncannowet (Massachusett for 'breast')

Using |break=yes:

{{langnf|es|Casa|house|break=yes}}
Casa
(Spanish for 'house')

Using |paren=none:

{{langnf|es|Casa|house|paren=none}}
Casa Spanish for 'house'

Using |paren=left:

{{langnf|fr|'''L'Aurore'''|The Dawn|paren=left}}; {{IPA-fr|loʁɔʁ|IPA}})
L'Aurore (French for 'The Dawn'; IPA: [loʁɔʁ])

Using |term1=house, |term2=hut, |term3=mansion:

{{langnf|es|Casa|term1=house|term2=hut|term3=mansion}}
Casa (Spanish for 'house' / 'hut' / 'mansion')

Using |term1=house, |term2=hut, |term3=mansion, and |italic-term=yes:

{{langnf|es|Casa|term1=house|term2=hut|term3=mansion|italic-term=yes}}
Casa (Spanish for 'house' / 'hut' / 'mansion')

Errors

This template detects errors. Those articles that have {{language with name/for}} errors are added to Category:Language with name/for errors (0). When errors are detected, this template emits error messages:

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Language_with_name/for&oldid=1144067658"

Categories: 
Lua-based templates
Wikipedia multilingual support templates
Hidden category: 
Wikipedia semi-protected templates
 



This page was last edited on 11 March 2023, at 17:08 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki