No parameters
Different portals
One existing portal
Politics
{{Portal bar|Politics}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
One non-existent portal
Non-existent portal
{{Portal bar|Non-existent portal}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Portal alias, one of multiple aliases for the same portal
Georgia USA
{{Portal bar|Georgia USA}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Portal starting with number
1990s
{{Portal bar|1990s}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Portal starting with diacritic
Éire
{{Portal bar|Éire}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Ten portals
Ten Portals
{{Portal bar|Australia|Biography|Japan|Korea|Olympics|Philippines|United States|Alaska|World War I}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
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}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
No portals, parameter nominimum
|nominimum=yes
{{Portal bar|nominimum=yes}}
|nominimum=1
{{Portal bar|nominimum=1}}
Non-standard inputs
Nowiki markup
<nowiki/>
{{Portal bar|}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Line breaks only
Six portals with mixed line breaks
Six portals with mixed line breaks
{{Portal bar
|Art
|Non-existent portal|
Science
|Japan
|Music|Sport}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Non-ASCII characters
文字
{{Portal bar|文字|redlinks=yes}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error in package.lua at line 80: module 'Module:Portal/images/other/sandbox' not found.
ParserFunctions
ParserFunctions
{{Portal bar| Art }}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Long word
Thisisareallylongwordwithnospacesorlinebreaksatall
{{Portal bar|Thisisareallylongwordwithnospacesorlinebreaksatall|redlinks=yes}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error in package.lua at line 80: module 'Module:Portal/images/t/sandbox' not found.
Nil first parameter
2=Politics
{{Portal bar|2=Politics}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Various whitespace and nil parameters
{{Portal bar|| |Politics|
|Art| |9=Music|21=Sport}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Borders
No borders
{{Portal bar|A-League|Abu Dhabi|Atheism|Austria|border=no}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Adaptive
Adaptive layout
{{Portal bar|Art|Biology}}
* <small>{{lorem ipsum span|1}}</small>
{{Portal bar }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Testing named parameters
Left-aligned
|left=yes
{{Portal bar|Politics|left=yes}}
Side by side comparison
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Adaptive layout, |left=yes
{{Portal bar|Politics|left=yes}}
<small>{{lorem ipsum span|1}}</small>
{{Portal bar }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
{{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Custom margin
|margin=5em 5em 5em 5em
{{Portal bar|Politics|margin=5em 5em 5em 5em}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Custom margin and left-aligned
|left=yes
+ |margin=2em 2em 2em 2em
{{Portal bar||Politics|left=yes|margin=2em 2em 2em 2em}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Break parameter
|break=yes
{{Portal bar|Politics|break=yes}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Show redlinks
|redlinks=yes
{{Portal bar|Politics|Test|redlinks=yes}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error in package.lua at line 80: module 'Module:Portal/images/p/sandbox' not found.
|redlinks=include
{{Portal bar|Politics|Test|redlinks=include}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
|redlinks=1
{{Portal bar|Politics|Test|redlinks=1}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error in package.lua at line 80: module 'Module:Portal/images/p/sandbox' not found.
|redlinks=false
{{Portal bar|Politics|Test|redlinks=false}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
São Paulo
|redlinks=yes
{{Portal bar|São Paulo|redlinks=yes}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error in package.lua at line 80: module 'Module:Portal/images/s/sandbox' not found.
Redlinks
Redlinks
{{Portal bar|Test 2|Test|Test 3|Test 4|Test 5}}
Side by side comparison {{Portal bar }} {{Portal bar/sandbox }}
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
All parameters
All parameters
{{Portal bar|Politics|Art|Music|Literature|border=no|break=yes|left=yes|margin=5em}}
Side by side comparison
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Without the test cases mess
Lua error: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
Template:Portal/sandbox
Image function