Template:Oldid2/doc: Difference between revisions

From Wikimedia UK
Jump to navigation Jump to search
(create documentation subpage as import from en-wp - [http://en.wikipedia.org/w/index.php?title=Template:Oldid2/doc&oldid=525284961])
 
(doc header + note)
 
Line 1: Line 1:
This is a documentation subpage for Template:Oldid2.
<noinclude>This is a documentation subpage for [[Template:Oldid2]].</noinclude>
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->


Line 25: Line 25:


Note that if the third parameter is used, the 2nd specifies the section of the page, instead, and the 3rd specifies the link text.
Note that if the third parameter is used, the 2nd specifies the section of the page, instead, and the 3rd specifies the link text.
Note that if you place whitespace after the numerical id, the template will malfunction.

Latest revision as of 22:10, 27 March 2013

This is a documentation subpage for Template:Oldid2.

Usage

An enhancement of template:oldid, allowing a link to a section.

Typical usage: {{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, the 2nd specifies the section of the page, instead, and the 3rd specifies the link text.

Note that if you place whitespace after the numerical id, the template will malfunction.