Jump to content

Template:Oldid

From Elite Dangerous Wiki

Current version of a page

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit "Template:Oldid/doc" to edit its documentation if it is available. (How does this work?)

This template creates links to "oldids"; that is, links to old versions of a wiki page. It then labels those old versions the current one, unless you've supplied both the name of the page and the oldid.

Every historical version of a page has a revision ID, which you can find from the links listed on the page history or from a URL parameter for the old revision. Given a page name and a revision ID, you can construct a link to that particular version.

If you only have the revision ID and not the page name, consider using the {{Oldid2}} template instead, as it only requires the revision ID to construct a valid link.

Usage

Basic syntax

{{Oldid|page|oldid|label}}

Parameters

|page=
the target page name (suggested, alias: |1=)
|oldid=
the target page revision number; explicitly assigning the value cur or leaving it unset creates a link to the current version of the page (required, alias: |2=)
|label=
the link text (optional, aliases: |title= and |3=)

Examples

Code Result
{{Oldid|Main Page|589841|2003 version of Main Page}} 2003 version of Main Page
{{Oldid|Main Page|589841}} Old revision of Main Page
{{Oldid|Main Page}} (of very limited value) Current version of Main Page

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Oldid in articles based on its TemplateData.

TemplateData for Oldid

A template to link to old versions of a wiki page using the revision ID, which can be found in the history of the page.
Page namepage
1
The page whose older revision will be linked to.
Revision numberoldid
2
If not specified, links to the current version. Every historical version of a page has a revision ID, which you can find from the history of the page, or from the URL of the old revision. This should be a long number, like "560214444" (without the quotes).
Suggested values
  • cur
Link textlabel
title
3
If not specified, label of link will be "Old revision of [the name of the page]" (without the quotes). The label of the link that will be created.

See also