This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:ArchiveLinks

From Heroes Wiki
Revision as of 01:28, 9 February 2008 by imported>MiamiVolts (test adding includemaxlength parameter after debug= and count=)
Jump to navigation Jump to search

Usage

{{ArchiveLinks
 |<archive page>
 |exclude=<comma-separated list of one-based section numbers to be excluded 
           (i.e. 5,6,7 for the 5th through 7th sections)>
}}

Useful for adding archive section listings to user talk pages, this template uses DPL to generate an archive link for up to 20 sections, separated by bullets. If you have more than 20 sections to archive, it is recommended that you use two archive talk pages.

Notes

  • Section 0's are not included cause if the first header is section 0, that throws off all of the edit links. If your archive's first section header isn't showing up when using this template, make sure it is on a line by itself and does not include any template calls (such as to a table of contents or archive header template).
  • Sections listed inside pre tags are included. If they are not desired, they can be excluded using the exclude= option. For an example, see the source used on Heroes Wiki talk:Community Portal to print the archive links for the Aug 2007-Oct 2007 archive. Note that excluded sections still count towards the 20 section limit (only the first 20 section headers are listed).
  • The current implementation of this template will not show section headers correctly if they contain more than one link in a the header. Italics and Bold font, and single link are accounted for in this template.
  • This template requires templates Delink and PartialDelink, and subtemplates ArchiveLinks/TrailingBullets, PartialDelink/Linkstart, and PartialDelink/Linkend to function properly. If porting this template, please remember to include them.