Welcome to Assassin's Creed Wiki! Log in and join the community.

Template:Newsarchive/aux/doc

From the Assassin's Creed Wiki
Jump to navigation Jump to search

Auxiliary template for {{Newsarchive}}.

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").

Usage[edit source]

{{newsarchive|year in four digits}}

Technical[edit source]

This template uses the parser function #ifexist: 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 #ifexist: 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.