Difference between revisions of "Template:Linktext/doc"

From blackwiki
Jump to navigation Jump to search
imported>Kiyoweap
(Add use for Chinese and Japanese 2-byte characters (although extendable to any other language also))
imported>LittleBenW
("lang" examples kindly provided by User:Kiyoweap)
Line 28: Line 28:
 
:<pre>{{linktext|雲|居|道|膺}}</pre>
 
:<pre>{{linktext|雲|居|道|膺}}</pre>
 
:{{Linktext|雲|居|道|膺}}
 
:{{Linktext|雲|居|道|膺}}
 +
 +
Examples of result of specifying "lang":
 +
:<pre>{{Linktext|雲|緑|lang=ja}}</pre>
 +
:{{Linktext|雲|緑|lang=ja}}
 +
 +
:<pre>{{Linktext|雲|緑|lang=zh}}</pre>
 +
:{{Linktext|雲|緑|lang=zh}}
  
 
== See also ==
 
== See also ==

Revision as of 14:23, 14 September 2012

Links text, word by word. The link target defaults to Wiktionary.

If you don't want to link to Wiktionary entries, set pref equal to some other value, such as your favorite interlanguage prefix or "c" for Commons.

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.


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":

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

See also

Similar Templates

Related Templates

Usage Information