Template:Cross-wiki oldid/doc
< Template:Cross-wiki oldid
Jump to navigation
Jump to search
Revision as of 21:07, 3 August 2019 by imported>The Editor's Apprentice (→Standard set up: Changed order to better communicate standard)
| This is a documentation subpage for Template:Cross-wiki oldid. It contains usage information, categories and other content that is not part of the original template page. |
The template generates a link to a specific revision of a page on a Wikimedia site other than English Wikipedia. The template requires a minimum of two parameters in order to correctly generate a link, but does not give an error if less are provided. The template only takes positional (unnamed) parameters and does not have any named parameters. If just three parameters are specified the third parameter is used as the text to display for the link, but if four (or more) parameters are specified the third parameter is interpreted as an anchor and the fourth as the text to display for the link. Parameters beyond the fourth are ignored.
Standard set up
{{cross-wiki oldid|site code|oldid|text or anchor|(text)}}
Parameters
1=
- The code of the site to be linked to. See the table below for recognized site codes. Unrecognized codes are interpreted as the domain when generating the link. This should not be used be to create a link to a non-Wikimedia site, such a link would an example of an external link but would deceptively display as an internal link.
2=
- The oldid of the page to be linked to.
3=
- For three parameters, the text to be displayed for the link; for four parameters, the section anchor to be linked to.
4=
- If specified, the text to display.
Recognized site codes
| Site code | Site name | URL snippet generated |
|---|---|---|
| meta | Wikimedia Meta-Wiki | meta.wikimedia |
| m | Wikimedia Meta-Wiki | meta.wikimedia |
| mediawiki | MediaWiki | mediawiki |
| mw | MediaWiki | mediawiki |
| commons | Wikimedia Commons | commmons.wikimedia |
| cms | Wikimedia Commons | commmons.wikimedia |
| Wikimedia Incubator | Wikimedia Incubator | incubator.wikimedia |
| WMI | Wikimedia Incubator | incubator.wikimedia |
| WI | Wikimedia Incubator | incubator.wikimedia |
| incubator | Wikimedia Incubator | incubator.wikimedia |
| incbtr | Wikimedia Incubator | incubator.wikimedia |
| Wikimedia Foundation | Wikimedia Foundation | wikimediafoundation |
| WMF | Wikimedia Foundation | wikimediafoundation |
| WF | Wikimedia Foundation | wikimediafoundation |
| wikibooks | English Wikibooks | en.wikibooks |
| wikibks | English Wikibooks | en.wikibooks |
| wikinews | English Wikinews | en.wikinews |
| wikinws | English Wikinews | en.wikinews |
| wikiquote | English Wikiquote | en.wikiquote |
| wikiqt | English Wikiquote | en.wikiquote |
| wikisource | English Wikisource | en.wikisource |
| wikisrc | English Wikisource | en.wikisource |
| wikispecies | Wikispecies | species.wikimedia |
| wikispcs | Wikispecies | species.wikimedia |
| wikiscs | Wikispecies | species.wikimedia |
| wikisps | Wikispecies | species.wikimedia |
| species | Wikispecies | species.wikimedia |
| scs | Wikispecies | species.wikimedia |
| sps | Wikispecies | species.wikimedia |
| spcs | Wikispecies | species.wikimedia |
| wikiversity | English Wikiversity | en.wikiversity |
| wikiverst | English Wikiversity | en.wikiversity |
| wiktionary | English Wiktionary | en.wiktionary |
| wikt | English Wiktionary | en.wiktionary |