Template:Enlink: Difference between revisions

From Bonkipedia
[[mw:]]>Tacsipacsi
(Undid revision 4098674 by Baris6161TURK (talk): I don’t know how unused that thing is (at least there’s a link to it at the bottom of this page), but inverting the #ifexist (making the “else” branch the “if” branch) doesn’t seem right to me)
 
m (1 revision imported: Workaround and Utility Templates)
 
(No difference)

Latest revision as of 17:53, 12 November 2022

Template documentation

Purpose

This template is deprecated: use Special:MyLanguage instead.

This template is mainly used in hook-related pages.

If the translation page doesn't exist, generates a link to the corresponding English page.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
base page name1

The title of the English page

Page namerequired

Mainly-useful for navigation templates. e.g. Template:Databases/ja

Example

Use Special:MyLanguage instead of using this template:

  • [[Special:MyLanguage/MediaWiki 1.22|MediaWiki 1.22]]

MediaWiki 1.22

If you really need to link a specific language code and the translation page doesn't exist:

  • [[MediaWiki 1.22/qqq]]{{enlink|MediaWiki 1.22}}

MediaWiki 1.22/qqq /en

See also

...

Maintenance: List1