Template:Cross-wiki oldid/doc

Template page

This template generates a link to a specific revision of a page on a Wikimedia site other than English OODA WIKI. 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, a list of which can be found at § Recognized site codes. Unrecognized codes are interpreted as the domain when generating the link. This functionality should not be used be to create a link to a non-Wikimedia site, as such an external link 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

See also