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

From blackwiki
Jump to navigation Jump to search
test>Evad37
(description, examples)
test>AfroThundr3007730
(navbox)
Line 27: Line 27:
  
 
{{#invoke:Portal flag talk auto|main}}
 
{{#invoke:Portal flag talk auto|main}}
 +
 +
===See also===
 +
{{portal templates navbox}}
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 01:39, 8 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}}:

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