Jump to content

Do not begin to migrate content here, it may be wiped without notice. More info.

Template:InterWiki

From Debian Wiki
Revision as of 14:15, 30 August 2025 by AndrewSayers (talk | contribs) (Created page with "<pre><onlyinclude>[{{{prefix|{{{2|}}}{{{suffix|{{{1}}}}}}{{#if:{{{text|{{{4|}}}}}}|<nowiki> </nowiki>{{{text|{{{4|}}}}}}}}]</onlyinclude></pre> <templatedata> { "description": "InterWiki-style link", "params": { "prefix": { "type": "line", "required": true, "description": "Prefix typed by the user", "aliases": ["1"], "example": "WikiPedia" }, "URL": { "type": "line",...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
<onlyinclude>[{{{prefix|{{{2|}}}{{{suffix|{{{1}}}}}}{{#if:{{{text|{{{4|}}}}}}| {{{text|{{{4|}}}}}}}}]</onlyinclude>

InterWiki-style link

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
prefixprefix 1

Prefix typed by the user

Example
WikiPedia
Linerequired
URLURL 2

first part of the URL

Example
https://en.wikipedia.org/wiki/
Linerequired
suffixsuffix 3

URL suffix to link to

Linerequired
texttext 4

Link text

Lineoptional

The old wiki had an inter-wiki map, for links like [[WikiPedia:article]]. MediaWiki also supports interwiki links, but some links need complex handling that's better implemented with templates.

This page contains a fallback template for links that don't have any special handling.