Difference between revisions of "Template:Interlanguage link Wikidata/doc"

From blackwiki
Jump to navigation Jump to search
imported>AnomieBOT
imported>AnomieBOT
Line 16: Line 16:
 
# (Optional) Display text for the linked article here
 
# (Optional) Display text for the linked article here
  
So, for instance, {{tlx|ill-WD|Redlink (2013 film)|Q1|<nowiki>''Redlink''</nowiki>}} generates {{ill-WD|Redlink (2013 film)|Q1|''Redlink''}}.
+
So, for instance, {{tlx|ill-WD|Redlink (2013 film)|Q1|<nowiki>''Redlink''</nowiki>}} generates {{Interlanguage link multi|Redlink (2013 film)|WD=Q1|lt=''Redlink''}}.
  
Like {{tl|ill}}, if the redlinked article turns blue, the second half disappears. So {{tlx|ill-WD|redlink|Q1}} returns {{ill-WD|redlink|Q1}}, but {{tlx|ill-WD|universe|Q1}} returns {{ill-WD|universe|Q1}}.
+
Like {{tl|ill}}, if the redlinked article turns blue, the second half disappears. So {{tlx|ill-WD|redlink|Q1}} returns {{Interlanguage link multi|redlink|WD=Q1}}, but {{tlx|ill-WD|universe|Q1}} returns {{Interlanguage link multi|universe|WD=Q1}}.
  
 
== See also ==
 
== See also ==

Revision as of 03:08, 13 November 2016

Notice: This template is now a wrapper for {{Interlanguage link multi}}. Jc86035 (talkcontribs) Use {{re|Jc86035}} to reply to me 15:32, 9 April 2015 (UTC)

Shortcut

The shortcut {{Ill-WD }} is available.

Usage

This template is for use in cases where you wish to link to multiple other languages, and it would be inconvenient to list them all. For instance, if the English Wikipedia has no article on redlink, but 6 other Wikipedias do, it's rather cumbersome to list all 6—redlink [de; es; fr; he; pt]—, and there are all sorts of potential problems with picking and choosing which languages to list. This template, therefore, allows you to link to Wikidata, where readers can choose from several languages.

This template takes three unnamed parameters:

  1. The linked article here
  2. The Wikidata item
  3. (Optional) Display text for the linked article here

So, for instance, {{ill-WD|Redlink (2013 film)|Q1|''Redlink''}} generates Redlink [Wikidata].

Like {{ill}}, if the redlinked article turns blue, the second half disappears. So {{ill-WD|redlink|Q1}} returns redlink [Wikidata], but {{ill-WD|universe|Q1}} returns universe [Wikidata].

See also

Template:Interlanguage link template list