Template:Oldid/doc
This is a documentation subpage for Template:Oldid. It contains usage information, categories and other content that is not part of the original template page. |
This template create links to "oldids"; that is, links to old versions of a wiki page.
Every historical version of a page has a revision ID, which you can find from the links on the history of the page, or from the URL of the old revision. Given a page name and a revision IDs of it, you can construct a link to that particular version.
If you only have the revision ID and not the page name, consider using {{oldid2}}
, which requires only the revision ID and can still construct a link.
Usage
{{oldid|page|oldid|label}}
code | result |
---|---|
{{oldid|Main Page|2236|Link to a 2009 version of the Main Page}}
|
Link to a 2009 version of the Main Page
|
{{oldid|Main Page|2236}}
|
Old revision of Main Page
|
{{oldid|Main Page}}
|
Current version of Main Page(pretty useless)
|
Alias
- {{Permalink}}
See also
- Help:Permanent link
- {{oldid2}} – does not require the page name and can create a link to a section.
- {{diff}} – uses a similar approach to create links to differences between versions.