Jump to content

Module:Portal maintenance status/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by AfroThundr3007730 (talk | contribs) at 01:39, 8 June 2018 (navbox). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This module searches a Portal_talk: page's portal page, and returns an appropriate message if {{Maintained portal flag}} or {{Non-standard portal flag}} is found in the page wikitext. An error is reported if this module is used outside of the Portal_talk namespace. It can be demonstrated, in any namespace, with the |demo= and |demo2= parameters, which take the name of templates to "find" (instead of actually searching a page).

Usage

{{#invoke:Portal maintenance status|main}}

Examples

If the portal contains {{Maintained portal flag}}:

Script error: No such module "Portal flag talk auto".


If the portal contains {{Non-standard portal flag}}:

Script error: No such module "Portal flag talk auto".


If the portal contains both {{Maintained portal flag}} and {{Non-standard portal flag}}:

Script error: No such module "Portal flag talk auto".


If the portal contains neither template, there is no output:

Script error: No such module "Portal flag talk auto".


If used in the wrong namespace, an error is reported:

Script error: No such module "Portal flag talk auto".

See also