Jump to content

Template:langlink

From Wikipedia, the free encyclopedia

This template creates an internal link with a linktext that is wrapped in {{lang}} or {{langr}}. This is necessary because, if the language tag is placed outside the link, both WP:PAGEPREVIEWS and WP:POPUPS will prevent display of the language tooltip created by {{lang}} and {{langr}}.

Usage

[edit]
  • The first unnamed parameter is the language code to be passed to {{lang}}.
  • The second unnamed parameter is the page title of the link target.
  • The optional third unnamed parameter is a custom linktext. If not specified, the third parameter defaults to the page title.
  • The parameter |straight=, if present and not empty, will suppress italics, as required for people, places, and organizations, per MOS:FOREIGNITALIC.
The wrapper template {{langrlink}} will set |straight= automatically.

Examples

[edit]