Difference between revisions of "Template:History2"
Jump to navigation
Jump to search
imported>Makyen (Remove redirect after changing all pages linking to this page. Begin with a fork from Template:History.) |
imported>Makyen (Crib from {{UserContribs2}}) |
||
| Line 1: | Line 1: | ||
| − | <span class="plainlinks">[{{{{{subst|}}}fullurl:{{{{{subst|}}}#ifeq:{{{1|+}}}|{{{1|-}}}|{{{1}}}|{{{{{subst|}}}SUBJECTPAGENAME}}}}|action=history}} {{{{{subst|}}}#ifeq:{{{2|+}}}|{{{2|-}}}|{{{2}}}|{{{{{subst|}}}#ifeq:{{{1|+}}}|{{{1|-}}}|{{{1}}}|{{{{{subst|}}}SUBJECTPAGENAME}}}}}}]</span><noinclude> | + | <span class="plainlinks">[{{{{{subst|}}}fullurl:{{{{{subst|}}}#ifeq:{{{1|+}}}|{{{1|-}}}|{{{1}}}|{{{{{subst|}}}SUBJECTPAGENAME}}}}|action=history}} {{{{{subst|}}}#ifeq:{{{2|+}}}|{{{2|-}}}|{{{2}}}|{{{{{subst|}}}#ifeq:{{{1|+}}}|{{{1|-}}}|{{{1}}}|{{{{{subst|}}}SUBJECTPAGENAME}}}}}}&dir=prev&limit={{{2}}}&offset={{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}} {{{3|}}}]</span><noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 16:50, 13 December 2013
Template:History2&dir=prev&limit={{{2}}}&offset=
This template creates a link to a specific time within a page's history and n-1 more recent edits. It accepts the page name, the number of edits to display and the date and time of the oldest edit displayed (which occurs at the bottom of the output). Time is in UTC.
If you want to reference from the top of the history displayed use {{history3}}.
Usage
| Code | Output |
|---|---|
{{History2||2}}
|
2&dir=prev&limit=2&offset= The default is the SUBJECTPAGENAME, for use on talk pages. |
{{History2|Main Page|12|Main Page history|200807301912}}
|
12&dir=prev&limit=12&offset=200807301912 Main Page history |
{{History2|Main Page|12||200807301912}}
|
12&dir=prev&limit=12&offset=200807301912 |
{{History2|Main Page|12|you can make the date/time more readable using pipes|2008|07|30|1912}}
|
12&dir=prev&limit=12&offset=200807301912 you can make the date/time more readable using pipes |
{{History2|Main Page|12|... or utterly confusing, if you prefer|20|0|8073||01912}}
|
12&dir=prev&limit=12&offset=200807301912 ... or utterly confusing, if you prefer |
When splitting the date/time into several parameters for better readability, make sure that month, day, hour etc. still have two digits each, using leading zeros if necessary.
Alias
- {{ph2}}: Stands for "page history"
See also
- Template:Pagelog(edit talk links history) and the Template:Pagelog
- Template:Oldid(edit talk links history)
- Template:Oldid2(edit talk links history)
- Template:Diff(edit talk links history)
- Template:Diff2(edit talk links history)
- Template:History(edit talk links history)
- Template:History3(edit talk links history)
| The above documentation is transcluded from Template:History2/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |