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  



2.1  TemplateData  







3 Examples  





4 Help  





5 See also  














Template:Wikt-lang






العربية
Авар
تۆرکجه


Bosanski
فارسی
Gaeilge
Bahasa Indonesia
Ladin
Македонски

Bahasa Melayu
Монгол




Português
Scots

Simple English
سنڌي
Slovenščina
کوردی
Tagalog
ி
 


Українська

 

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
 




In other projects  



Wikimedia Commons
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


Template:Wikt-lang automatically determines the correct English Wiktionary entry by removing italics or bolding, and removing or replacing diacritical marks and letters that are not used in entry names on English Wiktionary.

It also adds italics for languages that use the Latin alphabet (see MOS:FOREIGNITALIC). Italics cannot be turned on for languages that use a non-Latin script, but they can be turned off by using the parameter |i=-. This is useful in tables, where italics are often unnecessary.

The template will also link to the Wiktionary Reconstruction: namespace, where entries on reconstructed languages are placed, or to the Appendix: namespace, where some constructed languages have their entries (such as Lojban), if there is data for them in the module.

Usage

This template takes a language code and one or two words, and generates a link to the correct section of the corresponding Wiktionary entry. If two words are provided, it is like a piped link: the first word is the entry name, while the second serves as link text.

Parameters

Template parameters
Parameter Description
1 ISO 639 language code (2 or 3 letters) representing which language the text is in. Only tags consisting of a language subtag, or a language subtag–private use subtag combination that represents a language that hasn't been assigned a language subtag, such as cel-x-proto (Proto-Celtic), are supported. Script, region, or variant subtags are not supported, as it is difficult to support both them and Wiktionary language tags that contain hyphens (such as ine-pro above).
2 Entry to link to on Wiktionary.
3 Optional. Text displayed, if different from the term being linked to.
italic Optional. Use |italic=noor|italic=- to disable italicization of the text.

TemplateData

TemplateData documentation used by VisualEditor and other tools

See a monthly parameter usage report for Template:Wikt-lang in articles based on its TemplateData.

TemplateData for Wikt-lang

No description.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Language code1

ISO 639 language code (2 or 3 letters) representing which language the text is in

Example
'en', 'zh', 'fr', 'enm', 'la', 'sco', 'es'
Linerequired
Wiktionary entry2

Entry to link to on Wiktionary

Example
an apple a day keeps the doctor away
Stringrequired
Text displayed3

Text displayed, if different from the term being linked to

Example
an apple a day
Stringoptional
Disable italicsitalic italics i

Whether to not italicize the text

Example
no
Stringoptional

Examples

Help

If you try to use this template and get an error message, but can't figure out how to fix it, please go to Module talk:Language and post a message about it.

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wikt-lang&oldid=1152179600"

Categories: 
Lua-based templates
Wiktionary link templates
Wikipedia multilingual support templates
Hidden categories: 
Wikipedia extended-confirmed-protected templates
Sidebars with styles needing conversion
Templates using TemplateData
 



This page was last edited on 28 April 2023, at 17:59 (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