Template:Portal bar/testcases: Difference between revisions

From USApedia
(Created page with "{{Testcases}} {{also|Template:Portal/testcases}} '''Note:''' Sandbox CSS classes have different names than the Main CSS Classes, due to technical limitations in {{tl|test case}}. The sandbox and main will display correctly, but will be flagged as different due to these different names. You will have to manually inspect each test case for correctness. == No arguments == {{Test case|_collapsible=yes|_showcode=yes|_title=No parameters}} == Different portals == === One p...")
 
 
Line 80: Line 80:
</nowiki>
</nowiki>
}}
}}
{{Purge box}}

Latest revision as of 21:09, 23 September 2024

__EXPECTUNUSEDTEMPLATE__

Template:Also

Note: Sandbox CSS classes have different names than the Main CSS Classes, due to technical limitations in {{test case}}. The sandbox and main will display correctly, but will be flagged as different due to these different names. You will have to manually inspect each test case for correctness.

No arguments

No parameters
{{Portal bar}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Different portals

One portal

Art
{{Portal bar|Art}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Current events
{{Portal bar|Current events}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Nonexistent portal

Asdfasdf
{{Portal bar|Asdfasdf}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Asdfasdf+Biology
{{Portal bar|Asdfasdf|Biology}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Asdfasdf and redlinks=yes
{{Portal bar|Asdfasdf|redlinks=yes}}

{{Portal bar}}

Lua error in package.lua at line 80: module 'Module:Portal/images/a' not found.

{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Two portals

Two
{{Portal bar|Art|Science}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Ten portals

Ten Portals
{{Portal bar|Australia|Biography|Japan|Korea|Olympics|Philippines|United States|Alaska|World War I}}

{{Portal bar}}

{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Twenty portals

Twenty Portals
{{Portal bar|Australia|Biography|Japan|Korea|China|Vietnam|Olympics|Philippines|United States|Alaska|World War I|Asia|Sports|Association football|Athletics|English football|Baseball|Basketball|Cricket}}

{{Portal bar}}

{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Non-standard input

With whitespace

With whitespace
{{Portal bar|    Asia   |   Sports   }}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Delete character

&#127;
{{Portal bar|&#127;}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

border=no

No arguments border=no

|border=no
{{Portal bar|border=no}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

One portal border=no

One with |border=no
{{Portal bar|Art|border=no}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Nonexistent portal border=no

Asdfasdf with |border=no
{{Portal bar|Asdfasdf|border=no}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Two portals border=no

Two with |border=no
{{Portal bar|Art|Science|border=no}}

{{Portal bar}}


{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Twenty portals border=no

Twenty with |border=no
{{Portal bar|Australia|Biography|Japan|Korea|China|Vietnam|Olympics|Philippines|United States|Alaska|World War I|Asia|Sports|Association football|Athletics|English football|Baseball|Basketball|Cricket|border=no}}

{{Portal bar}}

{{Portal bar/sandbox}}

Error: expandTemplate: template "Portal bar/sandbox" does not exist

Adjacent navboxes

Template:Test case nowiki