Jump to content

Template:Portal maintenance status/testcases

From Wikipedia, the free encyclopedia

Template testcases

[edit]

Date

[edit]
{{Portal maintenance status}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|date=June 2018}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

Manual

[edit]
{{Portal maintenance status|manual=}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|manual=no}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|manual=foo}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer1=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer1=Example}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer=Example |manual=no}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer4=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer1=Example |maintainer4=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer1=Example |maintainer2=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer1=Example |maintainer3=Example |maintainer4=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer1=Example |maintainer2=Example |maintainer4=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer1=Example |maintainer2=Example |maintainer4=Example |manual=no}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer1=Example |maintainer2=Example |maintainer4=Example}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer2=Example |maintainer3=Example |maintainer4=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer3=Example |maintainer4=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|maintainer1=Example |maintainer3=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

Non-standard

[edit]
{{Portal maintenance status|nonstandard=}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|nonstandard=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|nonstandard=no}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|nonstandard=foo}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

Incomplete

[edit]
{{Portal maintenance status|incomplete=}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|incomplete=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|incomplete=no}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|incomplete=foo}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

Subpages

[edit]
{{Portal maintenance status|subpages=}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|subpages=single}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|subpages=checked}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|subpages=unchecked}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

Upgrade

[edit]
{{Portal maintenance status|upgrade=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|note=Upgrade description. |upgrade=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|upgrade=no}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

Multiple flags

[edit]
{{Portal maintenance status|manual=yes |nonstandard=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|manual=yes |nonstandard=yes |subpages=single}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|manual=yes |nonstandard=yes |subpages=checked}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}
{{Portal maintenance status|incomplete=yes |manual=yes |nonstandard=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

Embed

[edit]
{{Portal maintenance status|embed=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

Please take care when editing, especially if using automated editing software. Learn how to update the maintenance information here. (No date set)

Please take care when editing, especially if using automated editing software. Learn how to update the maintenance information here. (No date set)
{{Portal maintenance status|embed=yes |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

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)

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)
{{Portal maintenance status|embed=yes |maintainer1=Example |manual=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

  • This portal is manually maintained by Example. Please contact these user(s) when you plan to make significant changes.
  • 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)

  • This portal is manually maintained by Example. Please contact these user(s) when you plan to make significant changes.
  • 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)
{{Portal maintenance status|embed=yes |manual=yes |nonstandard=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

  • 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)

  • 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)
{{Portal maintenance status|embed=yes |manual=yes |nonstandard=yes |subpages=single}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

  • 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)

  • This portal is manually maintained.
  • This portal has a non-standard layout.
  • This portal has a single page layout. Any subpages are likely no longer 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)
{{Portal maintenance status|embed=yes |incomplete=yes |manual=yes |nonstandard=yes}}
Side by side comparison
{{Portal maintenance status}}{{Portal maintenance status/sandbox}}

  • This portal is manually maintained.
  • This portal has a non-standard layout.
  • This portal is under construction or incomplete.
  • 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)

  • This portal is manually maintained.
  • This portal has a non-standard layout.
  • This portal is under construction or incomplete.
  • 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)

Module testcases

[edit]

main function

[edit]
Module:Portal maintenance status Module:Portal maintenance status/sandbox
If the portal contains {{Portal maintenance status}}

Please take care when editing, especially if using automated editing software. Learn how to update the maintenance information here. (No date set)

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

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)

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|maintainer1=Example}}

  • This portal is manually maintained by Example. Please contact these user(s) when you plan to make significant changes.
  • 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)

  • This portal is manually maintained by Example. Please contact these user(s) when you plan to make significant changes.
  • 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|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)

  • 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)

  • 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)

  • 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)

  • 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)

  • 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)

  • 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 contains {{Portal maintenance status|manual=yes|nonstandard=yes|incomplete=yes}}

  • This portal is manually maintained.
  • This portal has a non-standard layout.
  • This portal is under construction or incomplete.
  • 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)

  • This portal is manually maintained.
  • This portal has a non-standard layout.
  • This portal is under construction or incomplete.
  • 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|upgrade=yes}}

  • This portal needs upgrading.
  • 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)

  • This portal needs upgrading.
  • 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 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. Lua error: Wrong namespace.
If the portal contains {{Portal maintenance status|note=Some note}}

  • This portal's subpages should be checked. Subpages that are no longer needed should be reported here.
  • Additional notes: Some note
Please take care when editing, especially if using automated editing software. Learn how to update the maintenance information here. (No date set)

  • This portal's subpages should be checked. Subpages that are no longer needed should be reported here.
  • Additional notes: Some note
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|note=Some note with a {{tl|tl}} template}}

  • This portal's subpages should be checked. Subpages that are no longer needed should be reported here.
  • Additional notes: Some note with a {{tl}} template
Please take care when editing, especially if using automated editing software. Learn how to update the maintenance information here. (No date set)

  • This portal's subpages should be checked. Subpages that are no longer needed should be reported here.
  • Additional notes: Some note with a {{tl}} template
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|note=Some note with {{tl|tl}} and {{tlx|tlx}} templates}}

  • This portal's subpages should be checked. Subpages that are no longer needed should be reported here.
  • Additional notes: Some note with {{tl}} and {{tlx}} templates
Please take care when editing, especially if using automated editing software. Learn how to update the maintenance information here. (No date set)

  • This portal's subpages should be checked. Subpages that are no longer needed should be reported here.
  • Additional notes: Some note with {{tl}} and {{tlx}} templates
Please take care when editing, especially if using automated editing software. Learn how to update the maintenance information here. (No date set)

historical function

[edit]
Module:Portal maintenance status Module:Portal maintenance status/sandbox
If the project page contains {{Historical}}
yes yes
If the project page contains {{Historical|foo}}
yes yes


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. Lua error: Wrong namespace.