Template:HistoryId: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) mNo edit summary |
CptTwinkie (talk | contribs) mNo edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| | <includeonly>{| class="small-box neutral" | ||
|- | |- | ||
| History: | | History: | ||
| class="plainlinks | | class="plainlinks" | {{#if:{{{1|}}}|<!--TRUE-->[{{fullurl:{{FULLPAGENAME}}|oldid={{{2}}}}} {{{1}}}]}}<!-- | ||
-->{{#if:{{{3|}}}|<!--TRUE--> → [{{fullurl:{{FULLPAGENAME}}|oldid={{{4}}}}} {{{3}}}]}}<!-- | -->{{#if:{{{3|}}}|<!--TRUE--> → [{{fullurl:{{FULLPAGENAME}}|oldid={{{4}}}}} {{{3}}}]}}<!-- | ||
-->{{#if:{{{5|}}}|<!--TRUE--> → [{{fullurl:{{FULLPAGENAME}}|oldid={{{6}}}}} {{{5}}}]}}<!-- | -->{{#if:{{{5|}}}|<!--TRUE--> → [{{fullurl:{{FULLPAGENAME}}|oldid={{{6}}}}} {{{5}}}]}}<!-- | ||
Line 16: | Line 16: | ||
--> | --> | ||
==Usage== | ==Usage== | ||
The History template is meant to be used at the top of articles | The History template is meant to be used at the top of articles just below the Version template to link to older versions of the page. <code>oldid</code> numbers can be found by clicking on the ''View history'' tab. | ||
<pre>{{ | <pre>{{HistoryId|<version>|<oldid>}}</pre> | ||
*The code above can be pasted into your page and edited. | *The code above can be pasted into your page and edited. | ||
*You can add more pairs of version and oldid up to 9 pairs. The 10th version will show an error.</noinclude> | *You can add more pairs of version and oldid up to 9 pairs. The 10th version will show an error. | ||
*If listing more than one version, order them from newest to oldest. | |||
{{:Template Ordering}} | |||
[[Category:Templates]]</noinclude> |
Latest revision as of 16:46, 11 May 2018
Usage
The History template is meant to be used at the top of articles just below the Version template to link to older versions of the page. oldid
numbers can be found by clicking on the View history tab.
{{HistoryId|<version>|<oldid>}}
- The code above can be pasted into your page and edited.
- You can add more pairs of version and oldid up to 9 pairs. The 10th version will show an error.
- If listing more than one version, order them from newest to oldest.
ORDERED TEMPLATE: This template is typically used on pages with other templates. It should be added in the order specified in Template Ordering.