:Wikt-lang/설명문서

틀:Language templates

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 ). 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.

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.

  • {{Wikt-lang|<lang code>|<Wiktionary entry>|<Text displayed>|i}}

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=no or |italic=- to disable italicization of the text.

TemplateData

편집
이 글을 보려면 오른쪽 '펼치기' 버튼 클릭

Wikt-lang의 틀데이터

설명이 없습니다.

틀 변수

이 틀은 한 줄로 쓰는 것이 권장됩니다.

변수설명형식상태
Language code1

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

예시
'en', 'zh', 'fr', 'enm', 'la', 'sco', 'es'
짧은 문구필수
Wiktionary entry2

Entry to link to on Wiktionary

예시
an apple a day keeps the doctor away
문자열필수
Text displayed3

Text displayed, if different from the term being linked to

예시
an apple a day
문자열선택 사항
Disable italicsitalic italics i

Whether to not italicize the text

예시
no
문자열선택 사항

Examples

편집

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

편집