Module:Portal maintenance status/doc explained

This module searches a Portal_talk: page's portal page, and returns an appropriate message based if is found in the page's wikitext, and which parameters are used.An error is reported if this module is used outside of the Portal_talk namespace. It can be demonstrated, in any namespace, with the and parameters, which take the name of templates to "find" (instead of actually searching a page).

Usage

<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''main''}}
  • Looks for on a Portal_talk: page's related portal page.
  • Returns an appropriate message string if found or an empty string if not found, or an error if used in the wrong namespace.
    <nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''historical''}}
  • Looks for on a Wikipedia_talk: page's related project page.
  • Returns yes if found or an empty string if not found, or an error if used in the wrong namespace.
    <nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''featured''}}
  • Looks for on a Wikipedia_talk: page's related project page.
  • Returns yes if found or an empty string if not found, or an error if used in the wrong namespace.

    Examples

    If the portal contains

    ----If the portal contains

    ----If the portal contains

    ----If the portal contains

    ----If the portal contains

    ----If the portal contains

    ----If the portal contains

    ----If the portal does not contain the template, there should be no output

    ----If used in the wrong namespace, an error should be reported

    ----

    See also