साँचा:Interlanguage link/doc

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

साँचा:high-use साँचा:notice

साँचा:hatnote So long as the page on this wiki does not exist (i.e. is "a red link"), this template temporarily displays links to one or more corresponding non-English Wikipedia articles. The red link is explicitly shown, followed by the non-English link(s). Hovering over the language code of a non-English link will display the name of the article on the non-English Wikipedia. Once the English article is created, the non-English link(s) will not be shown.

Usage

There are several ways of using this template. It can produce links to one or more specific languages, Magnus Manske's Reasonator, or to the Wikidata table of languages.

The shortcut साँचा:tl may be used.

A full list of language codes can be found at List of Wikipedias#Detailed list.

Note that as of February 2016 if there is a redirect for the term in English Wikipedia, both the redirected (blue) link and interlanguage link(s) are displayed. This is why "casa" appears as a bluelink in the example below.

Link to one foreign language

To link to a foreign language article with the same title as the English Wikipedia, the parameters are:

साँचा:tlc

To link to a foreign language article with a different title, the parameters are:

साँचा:tlc

Link to multiple languages

To link to multiple languages with the same title as the English language page, the titles of the page are not necessary; the parameters are:

साँचा:tlc

To link to multiple language articles, the parameters are:

साँचा:tlc

Link to Reasonator and Wikidata

To link to the Wikidata table of languages in which the article is available, the parameters are:

साँचा:tlc

All links to other Wikipedias are ignored if साँचा:para is present.

To link to Reasonator, add any value for the parameter साँचा:para. If a Wikidata item is linked, then the Reasonator link goes to the page for that item; if not, then a search is performed on Reasonator for that item.

Input Output
{{ill|Jokery|WD=Q131138|reasonator=1}} Jokery (Wikidata; Reasonator)
{{ill|Jokery|reasonator=1}} Jokery (Reasonator search)

Modifying the display

Displaying different text

To create a piped link (text displayed that is different from the title of the page to which the text links), use the साँचा:para parameter (which stands for "link text"). This is useful if disambiguation is necessary, for example to hide the (botanist) in Charles Darwin (botanist):

Note: Do not use साँचा:tlf to create piped links: साँचा:tlx is not equivalent to साँचा:tlx. The former will not cause the foreign language links to disappear when the English article exists.

Forcing links

To display the interlanguage links even if the English Wikipedia article exists, add any of the values 1, y, yes or force for the parameter साँचा:para.

Input Output
{{ill|Joke|fr|Blague|hu|Vicc|de|Witz}} Joke (fr; hu; de)
{{ill|Joke|fr|Blague|hu|Vicc|de|Witz|display=1}} Joke (fr; hu; de)

Remove bold formatting from links

Usually the display of the Interlanguage or Wikidata or the Reasonator (the "appended link") are in normal font, but if the appended link is for example in a title line of table, then along with the rest of the line the appended link will be bold. In such circumstances the appended link can be set to display unbolded by adding any value for the parameter साँचा:para.

Input Output
'''{{ill|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}''' Charles Darwin (botanist) (fr; de)
'''{{ill|nobold=1|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}}''' Charles Darwin (botanist) (fr; de)

Vertical alignment

The vertical alignment of the interlanguage/Wikidata/Reasonator links can be altered by adding:

  • vertical-align=sup to place the links in superscript
  • vertical-align=sub to place the links in subscript
Input Output
{{ill|vertical-align=sup|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}} Charles Darwin (botanist)[fr; de]
{{ill|vertical-align=sub|Charles Darwin (botanist)|fr|Charles Darwin|de|Charles Darwin}} Charles Darwin (botanist) (fr; de)

Examples

  • {{ill|TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}} gives TC Matic (af; nl; fr; es), because TC Matic exists here
  • {{ill|TC Matic (band)|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}} gives TC Matic (band) (af; nl; fr; es), because TC Matic (band) does not exist here
  • {{ill|TC Matic (band)|af||nl||fr||es|}} gives TC Matic (band) (af; nl; fr; es) – although shown in blue the interwiki links won't work because they default to the title "TC Matic (band)" which is wrong
  • {{ill|TC Matic (band)|lt=TC Matic|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}} gives TC Matic (af; nl; fr; es) – the text "TC Matic" now redlinks to "TC Matic (band)"
  • {{ill|TC Matic|lt=TC Matic (band)|af|TC Matic|nl|TC Matic|fr|TC Matic|es|TC Matic}} gives TC Matic (band) (af; nl; fr; es) – the text "TC Matic (band)" now links to "TC Matic" which exists

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. click here to see a monthly parameter usage report for this template.

TemplateData for Interlanguage link

साँचा:template other

JSON में सिंटेक्स त्रुटि।

Redirects

After a merge discussion, five other templates were merged into this template, and thus this template contains all of their features.

साँचा:Interlanguage link template list