Difference between revisions of "Template:Portal bar/testcases"
test>Andrybak (→One portal: add test; use Template:Test case) |
m (16 revisions imported) |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{template test cases notice}} | {{template test cases notice}} | ||
| + | {{also|Template:Portal/testcases}} | ||
== No arguments == | == No arguments == | ||
| − | + | {{Test case|_collapsible=yes|_showcode=yes|_title=No parameters}} | |
| − | + | == Different portals == | |
| − | + | === One portal === | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | == One portal == | ||
{{Test case|_collapsible=yes|_showcode=yes|_title=Art | {{Test case|_collapsible=yes|_showcode=yes|_title=Art | ||
| Line 22: | Line 14: | ||
|Current events}} | |Current events}} | ||
| − | == Nonexistent portal = | + | === Nonexistent portal === |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | {{Test case|_collapsible=yes|_showcode=yes|_title=Asdfasdf | |
| + | |Asdfasdf}} | ||
| − | + | === Two portals === | |
| − | {{ | + | {{Test case|_collapsible=yes|_showcode=yes|_title=Two |
| + | |Art|Science}} | ||
| − | + | === Ten portals === | |
| − | + | {{Test case|_collapsible=yes|_showcode=yes|_title=Ten | |
| + | |Asia|Sports|Association football|A-League|Association football variants|Athletics|Australian rules football|English football|Badminton|Baseball}} | ||
| − | + | === Twenty portals === | |
| − | == | + | {{Test case|_collapsible=yes|_showcode=yes|_title=Twenty |
| − | + | |Asia|Sports|Association football|Association football variants|Athletics|Australian rules football|English football|Badminton|Baseball|Basketball|National Basketball Association|Sport of Canada|Commonwealth Games|Cricket|Australian cricket team in England in 1948|Indian Premier League|Cycling|Figure skating}} | |
| − | + | == Non-standard input == | |
| + | === With whitespace === | ||
| − | {{ | + | {{Test case|_collapsible=yes|_showcode=yes|_title=With whitespace |
| + | | Asia | Sports }} | ||
| − | + | === Delete character === | |
| − | + | {{Test case|_collapsible=yes|_showcode=yes|_title= | |
| + | |}} | ||
| − | + | == border=no == | |
| + | === No arguments border=no === | ||
| − | == | + | {{Test case|_collapsible=yes|_showcode=yes|_title={{para|border|no}} |
| + | |border=no}} | ||
| − | + | === One portal border=no === | |
| − | + | {{Test case|_collapsible=yes|_showcode=yes|_title=One with {{para|border|no}} | |
| + | |Art|border=no}} | ||
| − | + | === Nonexistent portal border=no === | |
| − | + | {{Test case|_collapsible=yes|_showcode=yes|_title=Asdfasdf with {{para|border|no}} | |
| + | |Asdfasdf|border=no}} | ||
| − | + | === Two portals border=no === | |
| − | {{ | + | {{Test case|_collapsible=yes|_showcode=yes|_title=Two with {{para|border|no}} |
| + | |Art|Science|border=no}} | ||
| − | == | + | === Twenty portals border=no === |
| − | + | {{Test case|_collapsible=yes|_showcode=yes|_title=Twenty with {{para|border|no}} | |
| − | + | |Asia|Sports|Association football|Association football variants|Athletics|Australian rules football|English football|Badminton|Baseball|Basketball|National Basketball Association|Sport of Canada|Commonwealth Games|Cricket|Australian cricket team in England in 1948|Indian Premier League|Cycling|Figure skating|border=no}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
== Adjacent navboxes == | == Adjacent navboxes == | ||
| − | + | {{Test case nowiki|collapsible=yes|showcode=yes|title=Adjacent navboxes|<nowiki> | |
| − | |||
| − | |||
| − | {{ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
{{Czech Republic topics}} | {{Czech Republic topics}} | ||
| − | {{ | + | {{__TEMPLATENAME__|Prague|Czech Republic|Slovakia|NATO|European Union|Europe|Geography}} |
{{Slovakia topics}} | {{Slovakia topics}} | ||
| + | </nowiki> | ||
| + | }} | ||
Latest revision as of 16:37, 8 September 2020
| This is the template test cases page for the sandbox of Template:Portal bar. 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: |
No arguments
| No parameters |
|---|
{{Portal bar}}
{{Portal bar}}
|
Different portals
One portal
| Art |
|---|
{{Portal bar|Art}}
{{Portal bar}}
|
| Current events |
|---|
{{Portal bar|Current events}}
{{Portal bar}}
|
Nonexistent portal
| Asdfasdf |
|---|
{{Portal bar|Asdfasdf}}
{{Portal bar}}
|
Two portals
| Two |
|---|
{{Portal bar|Art|Science}}
{{Portal bar}}
|
Ten portals
| Ten |
|---|
{{Portal bar|Asia|Sports|Association football|A-League|Association football variants|Athletics|Australian rules football|English football|Badminton|Baseball}}
{{Portal bar}}
|
Twenty portals
| Twenty |
|---|
{{Portal bar|Asia|Sports|Association football|Association football variants|Athletics|Australian rules football|English football|Badminton|Baseball|Basketball|National Basketball Association|Sport of Canada|Commonwealth Games|Cricket|Australian cricket team in England in 1948|Indian Premier League|Cycling|Figure skating}}
{{Portal bar}}
|
Non-standard input
With whitespace
| With whitespace |
|---|
{{Portal bar| Asia | Sports }}
{{Portal bar}}
|
Delete character
|  |
|---|
{{Portal bar|}}
{{Portal bar}}
|
border=no
No arguments border=no
|border=no |
|---|
{{Portal bar|border=no}}
{{Portal bar}}
|
One portal border=no
One with |border=no |
|---|
{{Portal bar|Art|border=no}}
{{Portal bar}}
|
Nonexistent portal border=no
Asdfasdf with |border=no |
|---|
{{Portal bar|Asdfasdf|border=no}}
{{Portal bar}}
|
Two portals border=no
Two with |border=no |
|---|
{{Portal bar|Art|Science|border=no}}
{{Portal bar}}
|
Twenty portals border=no
Twenty with |border=no |
|---|
{{Portal bar|Asia|Sports|Association football|Association football variants|Athletics|Australian rules football|English football|Badminton|Baseball|Basketball|National Basketball Association|Sport of Canada|Commonwealth Games|Cricket|Australian cricket team in England in 1948|Indian Premier League|Cycling|Figure skating|border=no}}
{{Portal bar}}
|
| Adjacent navboxes |
|---|
{{Czech Republic topics}}
{{Portal bar|Prague|Czech Republic|Slovakia|NATO|European Union|Europe|Geography}}
{{Slovakia topics}}
{{Portal bar}}
Lua error in Module:Navbar at line 62: Invalid title <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-4">Script error: No such module "If empty".</span></strong>.
Lua error in Module:Navbar at line 62: Invalid title <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-4">Script error: No such module "If empty".</span></strong>. |