Fandom Developers Wiki

Pageinfo is a module that gets information about a page (e.g., if it has a category or list of categories in a page).

Syntax[]

  • {{#invoke:pageinfo|hascat|<categoryname>|true|false|<page=pagename>}}
  • {{#invoke:pageinfo|hastemplate|<templatename>|true|false|<page=pagename>}}
  • {{#invoke:pageinfo|getcategories|<pagename>}}

Example[]

{{#invoke:pageinfo|hascat|stub|yes|no}} → no

Notes[]

  • This is expensive ONLY if the {{{page}}} parameter refers to another page.
  • If the {{{page}}} parameter is omitted it will assume current page.
  • This module only finds categories explicitly placed on the page.