Difference between revisions of "Template:Portal maintenance status/testcases"
Jump to navigation
Jump to search
test>Dreamy Jazz |
m (30 revisions imported) |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 24: | Line 24: | ||
{{Testcase table|_showcode=yes | {{Testcase table|_showcode=yes | ||
|manual=yes|maintainer1=Example}} | |manual=yes|maintainer1=Example}} | ||
| + | |||
| + | {{Testcase table|_showcode=yes|maintainer1=Example}} | ||
| + | |||
| + | {{Testcase table|_showcode=yes | ||
| + | |manual=no|maintainer=Example}} | ||
| + | |||
| + | {{Testcase table|_showcode=yes | ||
| + | |manual=yes|maintainer=Example}} | ||
{{Testcase table|_showcode=yes | {{Testcase table|_showcode=yes | ||
| Line 30: | Line 38: | ||
{{Testcase table|_showcode=yes | {{Testcase table|_showcode=yes | ||
|manual=yes|maintainer1=Example|maintainer4=Example}} | |manual=yes|maintainer1=Example|maintainer4=Example}} | ||
| + | |||
| + | {{Testcase table|_showcode=yes | ||
| + | |manual=yes|maintainer1=Example|maintainer2=Example}} | ||
{{Testcase table|_showcode=yes | {{Testcase table|_showcode=yes | ||
| Line 36: | Line 47: | ||
{{Testcase table|_showcode=yes | {{Testcase table|_showcode=yes | ||
|manual=yes|maintainer1=Example|maintainer2=Example|maintainer4=Example}} | |manual=yes|maintainer1=Example|maintainer2=Example|maintainer4=Example}} | ||
| + | |||
| + | {{Testcase table|_showcode=yes | ||
| + | |manual=no|maintainer1=Example|maintainer2=Example|maintainer4=Example}} | ||
| + | |||
| + | {{Testcase table|_showcode=yes|maintainer1=Example|maintainer2=Example|maintainer4=Example}} | ||
{{Testcase table|_showcode=yes | {{Testcase table|_showcode=yes | ||
| Line 84: | Line 100: | ||
{{Testcase table|_showcode=yes | {{Testcase table|_showcode=yes | ||
|subpages=unchecked}} | |subpages=unchecked}} | ||
| + | |||
| + | ===Upgrade=== | ||
| + | |||
| + | {{Testcase table|_showcode=yes | ||
| + | |upgrade=yes}} | ||
| + | |||
| + | {{Testcase table|_showcode=yes | ||
| + | |upgrade=yes|note=Upgrade description.}} | ||
| + | |||
| + | {{Testcase table|_showcode=yes | ||
| + | |upgrade=no}} | ||
===Multiple flags=== | ===Multiple flags=== | ||
| Line 104: | Line 131: | ||
{{Testcase table|_showcode=yes | {{Testcase table|_showcode=yes | ||
|embed=yes|manual=yes}} | |embed=yes|manual=yes}} | ||
| + | |||
| + | {{Testcase table|_showcode=yes | ||
| + | |embed=yes|manual=yes|maintainer1=Example}} | ||
{{Testcase table|_showcode=yes | {{Testcase table|_showcode=yes | ||
| Line 182: | Line 212: | ||
|{{#invoke:Portal maintenance status|main|demo=Portal maintenance status{{!}}manual=yes{{!}}nonstandard=yes{{!}}incomplete=yes}} | |{{#invoke:Portal maintenance status|main|demo=Portal maintenance status{{!}}manual=yes{{!}}nonstandard=yes{{!}}incomplete=yes}} | ||
|{{#invoke:Portal maintenance status/sandbox|main|demo=Portal maintenance status{{!}}manual=yes{{!}}nonstandard=yes{{!}}incomplete=yes}} | |{{#invoke:Portal maintenance status/sandbox|main|demo=Portal maintenance status{{!}}manual=yes{{!}}nonstandard=yes{{!}}incomplete=yes}} | ||
| + | |||
| + | |- | ||
| + | |colspan=2|'''If the portal contains {{tld|Portal maintenance status|2=upgrade=yes}}''' | ||
| + | |- | ||
| + | |{{#invoke:Portal maintenance status|main|demo=Portal maintenance status{{!}}upgrade=yes}} | ||
| + | |{{#invoke:Portal maintenance status/sandbox|main|demo=Portal maintenance status{{!}}upgrade=yes}} | ||
|- | |- | ||
| Line 194: | Line 230: | ||
|{{#invoke:Portal maintenance status|main}} | |{{#invoke:Portal maintenance status|main}} | ||
|{{#invoke:Portal maintenance status/sandbox|main}} | |{{#invoke:Portal maintenance status/sandbox|main}} | ||
| + | |||
| + | |- | ||
| + | |colspan=2|'''If the portal contains {{tld|Portal maintenance status|2=note=Some note}}''' | ||
| + | |- | ||
| + | |{{#invoke:Portal maintenance status|main|demo=Portal maintenance status{{!}}note=Some note}} | ||
| + | |{{#invoke:Portal maintenance status/sandbox|main|demo=Portal maintenance status{{!}}note=Some note}} | ||
| + | |||
| + | |- | ||
| + | |colspan=2|'''If the portal contains {{tld|Portal maintenance status|2=note=Some note with a <nowiki>{{tl|tl}}</nowiki> template}}''' | ||
| + | |- | ||
| + | |{{#invoke:Portal maintenance status|main|demo=Portal maintenance status{{!}}note=Some note with a {{tl{{!}}tl}} template}} | ||
| + | |{{#invoke:Portal maintenance status/sandbox|main|demo=Portal maintenance status{{!}}note=Some note with a {{tl{{!}}tl}} template}} | ||
| + | |||
| + | |- | ||
| + | |colspan=2|'''If the portal contains {{tld|Portal maintenance status|2=note=Some note with <nowiki>{{tl|tl}}</nowiki> and <nowiki>{{tlx|tlx}}</nowiki> templates}}''' | ||
| + | |- | ||
| + | |{{#invoke:Portal maintenance status|main|demo=Portal maintenance status{{!}}note=Some note with {{tl{{!}}tl}} and {{tlx{{!}}tlx}} templates}} | ||
| + | |{{#invoke:Portal maintenance status/sandbox|main|demo=Portal maintenance status{{!}}note=Some note with {{tl{{!}}tl}} and {{tlx{{!}}tlx}} templates}} | ||
|} | |} | ||
Latest revision as of 16:39, 8 September 2020
| This is the template test cases page for the sandbox of Template:Portal maintenance status. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
Template testcases
Date
Manual
Non-standard
Incomplete
Subpages
Upgrade
Multiple flags
Embed
Module testcases
| This is the template test cases page for the sandbox of Module:Portal maintenance status. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
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}}
| |
If the portal contains {{Portal maintenance status|manual=yes|maintainer1=Example}}
| |
If the portal contains {{Portal maintenance status|nonstandard=yes}}
| |
If the portal contains {{Portal maintenance status|manual=yes|nonstandard=yes}}
| |
If the portal contains {{Portal maintenance status|subpages=single}}
| |
If the portal contains {{Portal maintenance status|subpages=checked}}
| |
If the portal contains {{Portal maintenance status|manual=yes|nonstandard=yes|subpages=single}}
| |
If the portal contains {{Portal maintenance status|manual=yes|nonstandard=yes|subpages=checked}}
| |
If the portal contains {{Portal maintenance status|manual=yes|nonstandard=yes|incomplete=yes}}
| |
If the portal contains {{Portal maintenance status|upgrade=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 in Module:Portal_maintenance_status at line 45: attempt to index field '?' (a nil value). | Lua error in Module:Portal_maintenance_status/sandbox at line 45: attempt to index field '?' (a nil value). |
If the portal contains {{Portal maintenance status|note=Some note}}
| |
If the portal contains {{Portal maintenance status|note=Some note with a {{tl|tl}} template}}
| |
If the portal contains {{Portal maintenance status|note=Some note with {{tl|tl}} and {{tlx|tlx}} templates}}
| |
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. |