Template:Interlanguage link

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

[[]] ()

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Interlanguage link/doc.

No description yet available.

Usage

{{Interlanguage link |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1emptyoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

TemplateData

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Inserts a link to a page on another language wiki.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Language code1 lang

The ISO language code for the language of the wiki

Example
en
Linesuggested
Page title2 en

The name of the page on the English-language wiki, or the suggested name if a page does not yet exist

Stringrequired
Page title on other wiki (if different)3 lang_title

The name of the page on the other-language wiki, if different from that on the English wiki

Linesuggested
Link text4 lt display en_text

The text to display as hyperlinked

Stringoptional
Don't make language code bold?nobold

Enter anything here to make the language-code link in the brackets normal font weight instead of bold.

Example
y
Auto value
y
Lineoptional
Superscript or subscript?vertical-align

Enter "sup"/"super" or "sub" here to make the language-code link in the brackets superscript or subscript.

Default
span
Example
sup
Lineoptional