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
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",..."
 
No edit summary
Line 1: Line 1:
<pre><onlyinclude>[{{{prefix|{{{2|}}}{{{suffix|{{{1}}}}}}{{#if:{{{text|{{{4|}}}}}}|<nowiki> </nowiki>{{{text|{{{4|}}}}}}}}]</onlyinclude></pre>
<pre><onlyinclude>[{{{URL|{{{2|}}}{{{suffix|{{{3|}}}}}}{{#if:{{{text|{{{4|}}}}}}|<nowiki> </nowiki>{{{text|{{{4|}}}}}}}}]</onlyinclude></pre>


<templatedata>
<templatedata>

Revision as of 14:17, 30 August 2025

<onlyinclude>[{{{URL|{{{2|}}}{{{suffix|{{{3|}}}}}}{{#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.