Difference between revisions of Template:Oldid2/doc

Jump to navigation Jump to search
m (1 revision imported)
(Simplify)
 
Line 29: Line 29:


Note that if the third parameter is used, even if empty, the 2nd specifies the section of the page, instead, and the 3rd specifies the link text.
Note that if the third parameter is used, even if empty, the 2nd specifies the section of the page, instead, and the 3rd specifies the link text.
== Redirects ==
* {{tl|Revision link}}
== See also ==
* {{tl|Oldid}}
* [[Special:Permalink]]
* {{tl|Cross-wiki oldid}}
* {{tl|Cross-wiki language oldid}}
* {{tl|Diff2}}
* [[Help:Permanent link]]
<includeonly>{{Sandbox other||
<!-- CATEGORIES HERE, THANKS -->


[[Category:Oldid templates]]
[[Category:Oldid templates]]

Latest revision as of 10:05, 9 June 2020

Usage

An enhancement of {{oldid}} which does not need the page title to be specified (since there are no oldid conflicts between pages) and which also allows linking to a specific section in the page.

Typical usage:

  • {{oldid2|Revision number|Label}}
  • {{oldid2|Revision number|Section name|Label}}
Code Output
{{oldid2|123456789|External links|Pgp688's version of "Boston Latin School"}} Pgp688's version of "Boston Latin School"
{{oldid2|123456789}} [1]
{{oldid2|123456789|Pgp688's version of "Boston Latin School"}} Pgp688's version of "Boston Latin School"
{{oldid2|123456789|External links|}} [2]

Note that if the third parameter is used, even if empty, the 2nd specifies the section of the page, instead, and the 3rd specifies the link text.

}}</includeonly>