Difference between revisions of "Module:Portal maintenance status/doc"
test>Evad37 (alpha rating) |
test>Evad37 (→See also: link testcases) |
||
| Line 60: | Line 60: | ||
===See also=== | ===See also=== | ||
| + | *{{slink|Template:Portal maintenance status/testcases|Module testcases}} | ||
{{portal templates navbox}} | {{portal templates navbox}} | ||
Revision as of 03:47, 11 June 2018
| 26x26px | This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
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}}
Examples
If the portal contains {{Portal maintenance status|manual=yes}}
If the portal contains {{Portal maintenance status|nonstandard=yes}}
If the portal contains {{Portal maintenance status|manual=yes|nonstandard=yes}}
If the portal contains {{Portal maintenance status|subpages=single}}
If the portal contains {{Portal maintenance status|subpages=checked}}
If the portal contains {{Portal maintenance status|manual=yes|nonstandard=yes|subpages=single}}
If the portal contains {{Portal maintenance status|manual=yes|nonstandard=yes|subpages=checked}}
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 in Module:Portal_maintenance_status at line 45: attempt to index field '?' (a nil value).
Deprecated examples
If the portal contains {{Maintained portal flag}}:
If the portal contains {{Non-standard portal flag}}:
If the portal contains both {{Maintained portal flag}} and {{Non-standard portal flag}}:
See also
- Script error: No such module "Section link".