Difference between revisions of "Template:History2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Makyen
(Add more to See Also.)
imported>Makyen
(Crib Example section from Template:UserContribs2/doc & update/convert. Add default example.)
Line 3: Line 3:
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
 
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
  
 +
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 use {{Lts|history3}}.
  
 +
=== Usage ===
  
'''This template is not yet working'''
+
{{History}}
 
 
Compare {{tl|contribs}} to {{tl|contribs2}} for intended eventual functionality.
 
 
 
  
 +
{| class="wikitable"
 +
! Code
 +
! Output
 +
|-
 +
| {{tlx|History2|<nowiki></nowiki>|2}}
 +
| {{History2||2}}<br/>
 +
The default is the [[Help:Variable|SUBJECTPAGENAME]], for use on talk pages.
 +
|-
 +
| {{tlx|History2|Main Page|12|Main Page history|200807301912}}
 +
| {{History2|Main Page|12|Main Page history|200807301912}}
 +
|-
 +
| {{tlx|History2|Main Page|12|<nowiki></nowiki>|200807301912}}
 +
| {{History2|Main Page|12||200807301912}}
 +
|-
 +
| {{tlx|History2|Main Page|12|you can make the date/time more readable using pipes|2008|07|30|1912}}
 +
| {{History2|Main Page|12|you can make the date/time more readable using pipes|2008|07|30|1912}}
 +
|-
 +
| {{tlx|History2|Main Page|12|... or utterly confusing, if you prefer|20|0|8073|<nowiki></nowiki>|01912}}
 +
| {{History2|Main Page|12|... or utterly confusing, if you prefer|20|0|8073||01912}}
 +
|}
  
 
+
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.
 
 
=== Usage ===
 
;{{Tlx|{{PAGENAME}}|full page name}}
 
:This creates a link to the edit history of '''full page name'''.
 
;{{Tlx|{{PAGENAME}}|full page name|text}}
 
:This creates a link '''text''' to the history of the specified page.
 
;{{Tlx|{{PAGENAME}}}}
 
:The default is the [[Help:Variable|SUBJECTPAGENAME]], for use on the talk page.
 
 
 
;{{Lts}} supports [[Help:Substitution#Optional_substitution|optional substitution]]&#58;
 
:{{Tlsp|{{PAGENAME}}|subst=subst:}}
 
:{{Tlsp|{{PAGENAME}}|full page name|subst=subst:}}
 
  
 
=== Alias ===
 
=== Alias ===
* {{tl|ph}}: Stands for "page history"
+
* {{tl|ph2}}: Stands for "page history"
  
 
=== See also ===
 
=== See also ===

Revision as of 18:33, 13 December 2013

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 use Template:History3(edit talk links history).

Usage

history

Code Output
{{History2||2}} [1]

The default is the SUBJECTPAGENAME, for use on talk pages.

{{History2|Main Page|12|Main Page history|200807301912}} Main Page history
{{History2|Main Page|12||200807301912}} [2]
{{History2|Main Page|12|you can make the date/time more readable using pipes|2008|07|30|1912}} you can make the date/time more readable using pipes
{{History2|Main Page|12|... or utterly confusing, if you prefer|20|0|8073||01912}} ... 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