Template testcases
Date
{{Portal maintenance status}}
{{Portal maintenance status |date=June 2018}}
Manual
{{Portal maintenance status |manual=}}
{{Portal maintenance status |manual=yes}}
{{Portal maintenance status |manual=no}}
{{Portal maintenance status |manual=foo}}
{{Portal maintenance status |maintainer1=Example |manual=yes}}
{{Portal maintenance status |maintainer1=Example}}
{{Portal maintenance status |maintainer=Example |manual=no}}
{{Portal maintenance status |maintainer=Example |manual=yes}}
{{Portal maintenance status |maintainer4=Example |manual=yes}}
{{Portal maintenance status |maintainer1=Example |maintainer4=Example |manual=yes}}
{{Portal maintenance status |maintainer1=Example |maintainer2=Example |manual=yes}}
{{Portal maintenance status |maintainer1=Example |maintainer3=Example |maintainer4=Example |manual=yes}}
{{Portal maintenance status |maintainer1=Example |maintainer2=Example |maintainer4=Example |manual=yes}}
{{Portal maintenance status |maintainer1=Example |maintainer2=Example |maintainer4=Example |manual=no}}
{{Portal maintenance status |maintainer1=Example |maintainer2=Example |maintainer4=Example}}
{{Portal maintenance status |maintainer2=Example |maintainer3=Example |maintainer4=Example |manual=yes}}
{{Portal maintenance status |maintainer3=Example |maintainer4=Example |manual=yes}}
{{Portal maintenance status |maintainer1=Example |maintainer3=Example |manual=yes}}
Non-standard
{{Portal maintenance status |nonstandard=}}
{{Portal maintenance status |nonstandard=yes}}
{{Portal maintenance status |nonstandard=no}}
{{Portal maintenance status |nonstandard=foo}}
Incomplete
{{Portal maintenance status |incomplete=}}
{{Portal maintenance status |incomplete=yes}}
{{Portal maintenance status |incomplete=no}}
{{Portal maintenance status |incomplete=foo}}
Subpages
{{Portal maintenance status |subpages=}}
{{Portal maintenance status |subpages=single}}
{{Portal maintenance status |subpages=checked}}
{{Portal maintenance status |subpages=unchecked}}
Upgrade
{{Portal maintenance status |upgrade=yes}}
{{Portal maintenance status |note=Upgrade description. |upgrade=yes}}
{{Portal maintenance status |upgrade=no}}
Multiple flags
{{Portal maintenance status |manual=yes |nonstandard=yes}}
{{Portal maintenance status |manual=yes |nonstandard=yes |subpages=single}}
{{Portal maintenance status |manual=yes |nonstandard=yes |subpages=checked}}
{{Portal maintenance status |incomplete=yes |manual=yes |nonstandard=yes}}
Embed
{{Portal maintenance status |embed=yes}}
{{Portal maintenance status |embed=yes |manual=yes}}
{{Portal maintenance status |embed=yes |maintainer1=Example |manual=yes}}
{{Portal maintenance status |embed=yes |manual=yes |nonstandard=yes}}
{{Portal maintenance status |embed=yes |manual=yes |nonstandard=yes |subpages=single}}
{{Portal maintenance status |embed=yes |incomplete=yes |manual=yes |nonstandard=yes}}
Module testcases
main function
Module:Portal maintenance status
|
Module:Portal maintenance status/sandbox
|
If the portal contains {{Portal maintenance status}}
|
|
|
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
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.
|