Jump to content

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

Template:InterWiki: Difference between revisions

From Debian Wiki
No edit summary
No edit summary
Line 1: Line 1:
<pre><onlyinclude>[[{{{prefix|{{{1|}}}}}}:{{{suffix|{{{2|}}}}}}{{#if:{{{text|{{{3|}}}}}}|{{!}}{{{text|{{{3|}}}}}}}}]]<noinclude>test</noinclude></onlyinclude></pre>
<pre><onlyinclude>[[{{{prefix|{{{1|}}}}}}:{{{suffix|{{{2|}}}}}}{{#if:{{{text|{{{3|}}}}}}|{{!}}{{{text|{{{3|}}}}}}}}]]<noinclude>[[Category:InterWikiLinkTemplate]]</noinclude></onlyinclude></pre>


<templatedata>
<templatedata>

Revision as of 14:52, 30 August 2025

<onlyinclude>[[{{{prefix|{{{1|}}}}}}:{{{suffix|{{{2|}}}}}}{{#if:{{{text|{{{3|}}}}}}|{{!}}{{{text|{{{3|}}}}}}}}]]<noinclude>[[Category:InterWikiLinkTemplate]]</noinclude></onlyinclude>

InterWiki-style link

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
prefixprefix 1

URL prefix

Example
WikiPedia
Linerequired
suffixsuffix 2

URL suffix to link to

Linerequired
texttext 3

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. If you add a template that relies on this page, make sure to also add the prefix to Special:Interwiki.