Advertisement:

Template:Linktext/doc

From Roovet Articles
Revision as of 03:06, 25 June 2024 by Thewolf12 (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{High-use|demo={{ROOTPAGENAME}}}} {{COinS safe|n}} __NOTOC__ {{For|linking from one Wikimedia project to another (e.g. Wikipedia to Wiktionary)|Help:Interwikimedia links}} {{For|a list of interlanguage codes|List of ISO 639-1 codes|meta:List of Wikipedias}} {{Linking and page manipulation|linking and diffs}} The {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Linking and page manipulation The {{Linktext}} template creates inline links for text within the template's parameters. Each word separately links to a page with a title that matches that word on Wiktionary, by default, or on any other interwiki or interlanguage Wikipedias.

Interlanguage links in general are links from a page in one Wikipedia in one language to a page in another Wikipedia in another language.

Usage

The default target that this template links to is Wiktionary. To change the target, set the parameter pref to some other value. For example, "c" for commons, or "th" for Thai Wikipedia. Thus, in order to link to a foreign language Wiktionary, set to "wikt:de" or whatever {{lang}} code.Template:New entry

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 &ensp; instead.

If you want to have a delimiter, such as ",&ensp;", 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.

Note: Do not add this template everywhere. For some reason, this template is frequently used in articles containing CJK terms, but this is not recommended. Use this template only when a link to Wiktionary is really needed.

Examples

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

The following links to the German Wiktionary:

{{Linktext|Das | Ewig-Weibliche| zieht| uns |hinan|pref=wikt:de}}
Das Ewig-Weibliche zieht uns hinan

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 Template:Wikipedia technical help Template:Manual of Style