Template:Lang if different
Uses Lua: |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
language | 1 | Language in which the text snippet is written. In translatable templates, specify it as “{{TRANSLATIONLANGUAGE}}”. | Line | required |
text snippet | 2 | The text snippet that will be output with or without language markup | Content | required |
HTML tag | tag | 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.
| Line | required |