Difference between revisions of "Template:Linktext/doc"
imported>LittleBenW m |
imported>Ahora (Added Template:Wiktionary templates common doc, and a notice.) |
||
| Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
__NOTOC__ | __NOTOC__ | ||
| − | Links text, word by word | + | == 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. | 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. | ||
| Line 13: | Line 14: | ||
This is not required if Template:Linktext is [[MOS:CHINESE#Linking_to_Wiktionary|used inside a template that specifies the language]], such as [[Template:Zh]]. | This is not required if Template:Linktext is [[MOS:CHINESE#Linking_to_Wiktionary|used inside a template that specifies the language]], such as [[Template:Zh]]. | ||
| − | < | + | == Notice == |
| + | Do not use it for one word, so don't write {{tnull|linktext|sea urchin}}, but [[<nowiki />wikt:sea urchin|]]. The latter is more understandable to other contributors. | ||
| − | + | == Examples == | |
| − | Examples | ||
:<pre>{{Linktext|This| is| a| test}}</pre> | :<pre>{{Linktext|This| is| a| test}}</pre> | ||
| Line 38: | Line 39: | ||
== See also == | == See also == | ||
| − | + | * [[Wikipedia:Wikimedia sister projects]] | |
| − | * | ||
| − | |||
| − | |||
| − | |||
| − | + | {{Wiktionary templates common doc}} | |
| − | |||
| − | |||
| − | |||
| − | |||
<includeonly> | <includeonly> | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
| − | {{DEFAULTSORT: | + | {{DEFAULTSORT:Linktext}} |
[[Category:Interwiki link templates]] | [[Category:Interwiki link templates]] | ||
[[Category:Chinese multilingual support templates]] | [[Category:Chinese multilingual support templates]] | ||
Revision as of 08:21, 10 December 2012
| This is a documentation subpage for Template:Linktext. It contains usage information, categories and other content that is not part of the original template page. |
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 instead.
If you want to have a delimiter, such as ", ", 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.
Notice
Do not use it for one word, so don't write {{linktext|sea urchin}}, but [[wikt:sea urchin|]]. The latter is more understandable to other contributors.
Examples
{{Linktext|This| is| a| test}}
{{Linktext|This| is|n2= not| a| test}}
Also can be used to wikt-link individual Chinese characters:
Examples of result of specifying "lang" (differences in characters explained here and here):
See also
Template:Wiktionary templates common doc