Difference between revisions of "Template:Linktext/doc"

From blackwiki
Jump to navigation Jump to search
imported>LlywelynII
(removing wrong-headed "notice" section: [[wikt: is much *LESS* understandable than an easily-located template with a clear documentation page.)
imported>K175
m (rm interwiki links)
Line 46: Line 46:
 
[[Category:Chinese multilingual support templates]]
 
[[Category:Chinese multilingual support templates]]
 
[[Category:Japonic multilingual support templates]]
 
[[Category:Japonic multilingual support templates]]
 
[[ar:قالب:رابط نصي]]
 
[[ja:Template:Linktext]]
 
[[no:mal:Linktext]]
 
[[ur:سانچہ:Linktext]]
 
 
</includeonly>
 
</includeonly>

Revision as of 19:39, 10 September 2017

Usage

Links text, word by word to Wiktionary, or any other interwikis or interlangs.

The default target is Wiktionary. To change it, set the parameter pref to some other value. For example, "c" for commons, or "th" for Thai Wikipedia.

Use the arguments n1, n2, n3, etc. to specify items that should not be linked. Regular spaces will be removed from the beginning and end of these; if you must have spaces, use &nbsp; instead.

If you want to have a delimiter, such as ",&nbsp;", appear between links, specify the delimiter with lim.

If desired, you can specify the language code with lang (rationale explained here). This is not required if Template:Linktext is used inside a template that specifies the language, such as Template:Zh.

Examples

{{Linktext|This| is| a| test}}
This is a test
{{Linktext|This| is|n2=&nbsp;not| a| test}}
This is not a test

Also can be used to wikt-link individual Chinese characters:

{{linktext|雲|居|道|膺}}

Examples of result of specifying "lang" (differences in characters explained here and here):

{{Linktext|雲|緑|lang=ja}}
{{Linktext|雲|緑|lang=zh}}

See also

Template:Wiktionary templates common doc