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: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>MiamiVolts
Usage: update usage to include exclude option
imported>MiamiVolts
Notes: update
Line 12: Line 12:
== Notes ==
== 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).
* 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 <tt>exclude=</tt> option. For an example, see the source used on [[Heroes Wiki talk:Community Portal]] to print the archive links for the [[Heroes Wiki talk:Community Portal/Archive2|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 a link that does not span 100% of the header. Italics and Bold font, and links that span the entire header are accounted for in this template.
* 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 [[Template:Delink|Delink]] and [[Template:PartialDelink|PartialDelink]], and subtemplates [[Template:ArchiveLinks/TrailingBullets|ArchiveLinks/TrailingBullets]], [[Template:PartialDelink/Linkstart|PartialDelink/Linkstart]], and [[Template:PartialDelink/Linkend|PartialDelink/Linkend]] to function properly. If porting this template, please remember to include them.
* This template requires templates [[Template:Delink|Delink]] and [[Template:PartialDelink|PartialDelink]], and subtemplates [[Template:ArchiveLinks/TrailingBullets|ArchiveLinks/TrailingBullets]], [[Template:PartialDelink/Linkstart|PartialDelink/Linkstart]], and [[Template:PartialDelink/Linkend|PartialDelink/Linkend]] to function properly. If porting this template, please remember to include them.



Revision as of 23:46, 15 January 2008

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.