Template:Newsarchive/aux/doc

Auxiliary template for Newsarchive. It should not be used directly in articles; use instead.

This template produces a line of links to news archive categories for the given year. If the news category for that year does not exist, it returns empty. If the news category for a certain month does not exist, it produces an unlinked month name. Expects the news categories to be named in the "FULLMONTHNAME YEAR news" format (e.g. "January 2009 news").

Technical
This template uses the parser function  which is considered an "expensive parser function", only a limited number of which can be included on any one page (including functions inside transcluded templates). When this limit is exceeded, any further  functions automatically return false, whether the target page exists or not.

As such, this template should not be used more than 6 times on a page. 99 is the default value for expensive parser functions per page; this template uses up to 13 ifexist calls per year, making 7 the theoretical maximum of uses. A little "buffer" should be given, hence 6 uses maximum.