Bản mẫu:interlanguage link

(Đổi hướng từ Bản mẫu:Link-interwiki)
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

This template temporarily displays a link to a non-Vietnamese Wikipedia article, while the corresponding English-language Wikipedia article is lacking ("a red link"). The red link is explicitly shown, followed by the non-Vietnamese link. Hovering over the non-Vietnamese link will display the name of the article on the non-Vietnamese Wikipedia. Once the Vietnamese article is created, the non-Vietnamese link will not be shown.

The template name ill stands for InterLanguage Link.

Parameters sửa

The template accepts two or three unnamed parameters:

  1. (required) interwiki language code, i.e. fr, bg, no, nl, etc. (see Danh sách Wikipedia)
  2. (required) name of article in English-language Wikipedia
  3. (optional) name of article in non-Vietnamese Wikipedia, if different from above

Usage sửa

When article names would be the same in Vietnamese and foreign language Wikipedia:

When article names are different in Vietnamese and foreign language Wikipedia:

  • Usage: {{ill|Parlichevo|bg|Пърличево}}
  • Result: Parlichevo (bg)

When the Vietnamese article is created, the other language link won't be shown:

Piped links sửa

In some cases the Vietnamese Wikipedia might use a piped link:

  • Example: [[Rangel, Angola|Rangel]]
  • Result: Rangel

The template can create the same link shown above by using a fourth parameter:

  • Usage:{{ill|Rangel, Angola|lt=Rangel|pt|Rangel (Angola)}}
  • Result: Rangel (pt)

Alternatively the named parameter lt (for link text) can be used:

  • Usage:{{ill|Rangel, Angola|lt=Rangel|pt|Rangel (Angola)}}
  • Result: Rangel (pt)

Note Do not use the {{!}} template to create a piped link, since the interwiki links will not then disappear when the Vietnamese article exists: {{ill|pt|Rangel, Angola{{!}}Rangel|Rangel (Angola)}} is not equivalent to {{ill|pt|Rangel, Angola|Rangel (Angola)|Rangel}}.

See also sửa

Any language:

  • {{illm}} - similar template allowing links to more than one non-Vietnamese Wikipedia
  • {{link-interwiki}} - similar but clumsier template; parameters are named
  • {{ill-WD}} – to link to multiple other projects through Wikidata
  • {{ill2}} - like {{illm}} but interlanguage links always show

Other: