Template:Link current revision/sandbox
Jump to navigation
Jump to search
| This is the template sandbox page for Template:Link current revision (diff). |
| This template should always be substituted (i.e., use {{subst:Link current revision}}). Any accidental transclusions will be automatically substituted by a bot. |
Usage
This template creates a link to the current revision of a page.
Syntax
{{subst:link current revision|1}}
- Creates a permanent link to the revision of page "1". Example:
{{subst:link current revision|Tiger}}creates Tiger (as of 12:56, 16 February 2017 (UTC)).
{{subst:link current revision|1|2}}
- Creates a permanent link to the revision of page "1", with text "2". Example:
{{subst:link current revision|Tiger|Furious animal}}creates Furious animal (as of 12:56, 16 February 2017 (UTC)).
Note: If this is used on the page "1" itself, it will create a link to the previous revision.
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Link current revision
A template for linking the current revision of a page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Target page | 1 | Target page, the current revision of which will be linked. | Page | required |
| Link text | 2 | The text to display. | String | optional |
| The above documentation is transcluded from Template:Link current revision/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |