Template:FAcount/doc

This template is a utility for the Featured article template. This template calls a DPL function that returns the number of featured article summary templates located in.

There are currently featured article summaries.
1.
 * 1) The first line declares we are using DPL in parser function mode (like  ).
 * 2) This tells DPL to limit its search to only files in the "Template" namespace, meaning all files that begin with.
 * 3) The titles must match this regular expression. They must start with , followed by a forward slash (  is the escape sequence for a forward slash), followed by a string that contains at least one numerical digit (  matches any number from zero to nine). Note that the underscore ("_") is necessary because wikia replaces spaces in file names with underscores.
 * 4) We don't want content from any of the search results, so leave this blank.
 * 5) However, DPL will return a list of all pages that match the search criteria, so to turn that off we have to take full control of the formatting with this parameter.
 * 6) The only thing we want is the page count, so we specify that the one-time results header contain the number of pages and nothing else.
 * 7) We turn off caching so new pages will immediately update the count, just in case.
 * 8) This closes the DPL parser function.