Template:langlink
Appearance
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
- The first unnamed parameter is the language code to be passed to
{{lang}}. - The second unnamed parameter is the page name of the link target.
- The optional third unnamed parameter is a custom linktext. If not specified, the third parameter defaults to the page name.
- 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
- Two parameters:
{{langlink|fr|À bout de souffle}}→ À bout de souffle - With linktext:
{{langlink|fr|Breathless (1960 film)|À bout de souffle}}→ À bout de souffle - With
|straight=:{{langlink|fr|Jean-Luc Godard|straight=y}}→ Jean-Luc Godard - Four parameters:
{{langlink|fr|Breathless (1960 film)|À bout de souffle|straight=y}}→ À bout de souffle