Difference between revisions of "Module:Portal maintenance status/doc"

From blackwiki
Jump to navigation Jump to search
test>AfroThundr3007730
(update docs for rename)
test>AfroThundr3007730
m (oops)
Line 1: Line 1:
 
{{Module rating |pre-alpha}}
 
{{Module rating |pre-alpha}}
{{lua|Module:Portal maintenance status}}
 
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
This module searches a Portal_talk: page's portal page, and returns an appropriate message if {{tl|Maintained portal flag}} or {{tl|Non-standard portal flag}} is found in the page wikitext.
 
This module searches a Portal_talk: page's portal page, and returns an appropriate message if {{tl|Maintained portal flag}} or {{tl|Non-standard portal flag}} is found in the page wikitext.

Revision as of 12:51, 9 June 2018

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}}:



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



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



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



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

Lua error in Module:Portal_maintenance_status at line 45: attempt to index field '?' (a nil value).

See also