Jump to content

Module:Portal maintenance status/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
alpha rating
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

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

Please take care when editing, especially if using automated editing software, and seek consensus before making major changes. Learn how to update the maintenance information here. (No date set)

If the portal contains {{Portal maintenance status|nonstandard=yes}}

  • This portal has a non-standard layout.
  • This portal's subpages should be checked. Subpages that are no longer needed should be reported here.
Please take care when editing, especially if using automated editing software. Learn how to update the maintenance information here. (No date set)

If the portal contains {{Portal maintenance status|manual=yes|nonstandard=yes}}

  • This portal is manually maintained.
  • This portal has a non-standard layout.
  • This portal's subpages should be checked. Subpages that are no longer needed should be reported here.
Please take care when editing, especially if using automated editing software, and seek consensus before making major changes. Learn how to update the maintenance information here. (No date set)

If the portal contains {{Portal maintenance status|subpages=single}}

  • This portal has a single page layout. It is possible that any subpages may no longer be needed.
Please take care when editing, especially if using automated editing software. Learn how to update the maintenance information here. (No date set)

If the portal contains {{Portal maintenance status|subpages=checked}}

  • This portal's subpages have been checked by an editor, and are needed.
Please take care when editing, especially if using automated editing software. Learn how to update the maintenance information here. (No date set)

If the portal contains {{Portal maintenance status|manual=yes|nonstandard=yes|subpages=single}}

  • This portal is manually maintained.
  • This portal has a non-standard layout.
  • This portal has a single page layout. It is possible that any subpages may no longer be needed.
Please take care when editing, especially if using automated editing software, and seek consensus before making major changes. Learn how to update the maintenance information here. (No date set)

If the portal contains {{Portal maintenance status|manual=yes|nonstandard=yes|subpages=checked}}

  • This portal is manually maintained.
  • This portal has a non-standard layout.
  • This portal's subpages have been checked by an editor, and are needed.
Please take care when editing, especially if using automated editing software, and seek consensus before making major changes. Learn how to update the maintenance information here. (No date set)

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.


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