Template:InterWiki: Difference between revisions
Appearance
AndrewSayers (talk | contribs) No edit summary |
AndrewSayers (talk | contribs) No edit summary Tag: Manual revert |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<pre><onlyinclude>[{{{ | <pre><onlyinclude>[[{{{prefix|{{{1|}}}}}}:{{{suffix|{{{2|}}}}}}{{#if:{{{text|{{{3|}}}}}}|{{!}}{{{text|{{{3|}}}}}}}}]]</onlyinclude></pre> | ||
<templatedata> | <templatedata> | ||
Line 8: | Line 8: | ||
"type": "line", | "type": "line", | ||
"required": true, | "required": true, | ||
"description": " | "description": "URL prefix", | ||
"aliases": ["1"], | "aliases": ["1"], | ||
"example": "WikiPedia" | "example": "WikiPedia" | ||
}, | }, | ||
"suffix": { | "suffix": { | ||
Line 23: | Line 16: | ||
"required": true, | "required": true, | ||
"description": "URL suffix to link to", | "description": "URL suffix to link to", | ||
"aliases": [" | "aliases": ["2"] | ||
}, | }, | ||
"text": { | "text": { | ||
Line 29: | Line 22: | ||
"required": false, | "required": false, | ||
"description": "Link text", | "description": "Link text", | ||
"aliases": [" | "aliases": ["3"] | ||
} | } | ||
} | } | ||
Line 37: | Line 30: | ||
The old wiki had an [https://wiki.debian.org/InterWikiMap inter-wiki map], for links like <kbd><nowiki>[[WikiPedia:article]]</nowiki></kbd>. MediaWiki also supports [https://www.mediawiki.org/wiki/Manual:Interwiki interwiki links], but some links need complex handling that's better implemented with templates. | The old wiki had an [https://wiki.debian.org/InterWikiMap inter-wiki map], for links like <kbd><nowiki>[[WikiPedia:article]]</nowiki></kbd>. MediaWiki also supports [https://www.mediawiki.org/wiki/Manual:Interwiki 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. | 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]]. | ||
[[Category:InterWikiLinkTemplate]] | [[Category:InterWikiLinkTemplate]] |
Latest revision as of 14:55, 30 August 2025
<onlyinclude>[[{{{prefix|{{{1|}}}}}}:{{{suffix|{{{2|}}}}}}{{#if:{{{text|{{{3|}}}}}}|{{!}}{{{text|{{{3|}}}}}}}}]]</onlyinclude>
InterWiki-style link
Parameter | Description | Type | Status | |
---|---|---|---|---|
prefix | prefix 1 | URL prefix
| Line | required |
suffix | suffix 2 | URL suffix to link to | Line | required |
text | text 3 | Link text | Line | optional |
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.