Module:Portal maintenance status/doc: Difference between revisions
(Bump rating) |
m (1 revision imported: initial setup) |
(No difference)
|
Latest revision as of 15:53, 25 August 2024
This module is subject to page protection. It is a highly visible module in use by a very large number of pages. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This module searches a Portal_talk: page's portal page, and returns an appropriate message based if {{Portal maintenance status }} 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 |demo=
and |demo2=
parameters, which take the name of templates to "find" (instead of actually searching a page).
Usage
{{#invoke:Portal maintenance status|main}}
- Looks for {{Portal maintenance status }} 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.
{{#invoke:Portal maintenance status|historical}}
- Looks for {{Historical }} 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.
{{#invoke:Portal maintenance status|featured}}
- Looks for {{Featured portal }} 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 {{Portal maintenance status|date=November 2024|manual=yes}}
Template:Portal maintenance status
If the portal contains {{Portal maintenance status|date=November 2024|nonstandard=yes}}
Template:Portal maintenance status
If the portal contains {{Portal maintenance status|date=November 2024|incomplete=yes}}
Template:Portal maintenance status
If the portal contains {{Portal maintenance status|date=November 2024|subpages=single}}
Template:Portal maintenance status
If the portal contains {{Portal maintenance status|date=November 2024|subpages=checked}}
Template:Portal maintenance status
If the portal contains {{Portal maintenance status|date=November 2024|note=This is an example.}}
Template:Portal maintenance status
If the portal contains {{Portal maintenance status|date=November 2024|manual=yes|nonstandard=yes|subpages=single|incomplete=yes|note=Lorem ipsum dolor sit amet.}}
Template:Portal maintenance status
If the portal does not contain the template, there should be no output
If used in the wrong namespace, an error should be reported
Lua error: Wrong namespace.
See also