This template adds HTML markup for the given language if, and only if, the page language is different from the given language. It’s designed for use with “subst:” (where it’s important to not add unnecessary extra markup, making the result less readable), although it can be used without “subst:” as well.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
language1

Language in which the text snippet is written. In translatable templates, specify it as “{{TRANSLATIONLANGUAGE}}”.

Linerequired
text snippet2

The text snippet that will be output with or without language markup

Contentrequired
HTML tagtag

HTML tag to use in the language markup (if there is any). Usually “span” for inline text and “div” for multi-line content, but any other HTML tag accepted in wikitext can be used.

Suggested values
span div
Linerequired