Template:Portal/testcases
Jump to navigation
Jump to search
- REDIRECT Template:Testcases notice
Contents
- 1 No parameters
- 2 Different portals
- 3 Non-standard inputs
- 3.1 Non-breaking space
- 3.2 Non-breaking space typed out
- 3.3 ASCII null value
- 3.4 Tab character
- 3.5 Bar template
- 3.6 Nowiki markup
- 3.7 Spaces
- 3.8 Line breaks only
- 3.9 Six portals with mixed line breaks
- 3.10 Non-ASCII characters
- 3.11 ParserFunctions
- 3.12 Long word
- 3.13 Nil first parameter
- 3.14 Various whitespace and nil parameters
- 4 Testing named parameters
- 5 Redlinks
- 6 All parameters
- 7 Borders
No parameters
| No parameters | ||||
|---|---|---|---|---|
{{Portal}}
|
Different portals
One existing portal
| Politics | ||||
|---|---|---|---|---|
{{Portal|Politics}}
|
One non-existent portal
| Non-existent portal | ||||
|---|---|---|---|---|
{{Portal|Non-existent portal}}
|
One portal alias
| Detroit | ||||
|---|---|---|---|---|
{{Portal|Detroit}}
|
Portal alias, one of multiple aliases for the same portal
| Georgia USA | ||||
|---|---|---|---|---|
{{Portal|Georgia USA}}
|
Portal starting with number
| 1990s | ||||
|---|---|---|---|---|
{{Portal|1990s}}
|
Portal starting with diacritic
| Éire | ||||
|---|---|---|---|---|
{{Portal|Éire}}
|
Six portals
| Six portals | ||||
|---|---|---|---|---|
{{Portal|Art|Non-existent portal|Science|Japan|Music|Sport}}
|
Twenty portals
| Twenty portals | ||||
|---|---|---|---|---|
{{Portal|Asian Games|Association football|Association football variants|Athletics|Australian rules football|English football|Badminton|Baseball|Basketball|College basketball|National Basketball Association|Sport of Canada|Commonwealth Games|Cricket|Australian cricket team in England in 1948|Indian Premier League|Cycling|Figure skating}}
|
No portals, parameter nominimum
|nominimum=yes | ||||
|---|---|---|---|---|
{{Portal|nominimum=yes}}
|
|nominimum=1 | ||||
|---|---|---|---|---|
{{Portal|nominimum=1}}
|
Non-standard inputs
Non-breaking space
| Non-breaking space | ||||
|---|---|---|---|---|
{{Portal| }}
|
Non-breaking space typed out
| | ||||
|---|---|---|---|---|
{{Portal| }}
|
ASCII null value
| � | ||||
|---|---|---|---|---|
{{Portal|�}}
|
Tab character
| Tab character | ||||
|---|---|---|---|---|
{{Portal| }}
|
Bar template
| {{|}} | ||||
|---|---|---|---|---|
{{Portal||}}
|
Nowiki markup
| <nowiki/> | ||||
|---|---|---|---|---|
{{Portal|}}
|
Spaces
| Spaces | ||||
|---|---|---|---|---|
{{Portal| }}
|
Line breaks only
| Line breaks only | ||||
|---|---|---|---|---|
{{Portal|
}}
|
Six portals with mixed line breaks
| Six portals with mixed line breaks | ||||
|---|---|---|---|---|
{{Portal
|Art
|Non-existent portal|
Science
|Japan
|Music|Sport}}
|
Non-ASCII characters
| 文字 | ||||
|---|---|---|---|---|
{{Portal|文字}}
|
ParserFunctions
| ParserFunctions | ||||
|---|---|---|---|---|
{{Portal| Art }}
|
Long word
| Thisisareallylongwordwithnospacesorlinebreaksatall | ||||
|---|---|---|---|---|
{{Portal|Thisisareallylongwordwithnospacesorlinebreaksatall}}
|
Nil first parameter
| 2=Politics | ||||
|---|---|---|---|---|
{{Portal|2=Politics}}
|
Various whitespace and nil parameters
| {{Portal}} | ||||
|---|---|---|---|---|
{{Portal|| |Politics|
|Art| |9=Music|21=Sport}}
|
Testing named parameters
Left-aligned
|left=yes | ||||
|---|---|---|---|---|
{{Portal|Politics|left=yes}}
|
Custom margin
|margin=5em 5em 5em 5em | ||||
|---|---|---|---|---|
{{Portal|Politics|margin=5em 5em 5em 5em}}
|
Custom margin and left-aligned
|left=yes + |margin=5em 5em 5em 5em | ||||
|---|---|---|---|---|
{{Portal|Politics|left=yes|margin=5em 5em 5em 5em}}
|
Break parameter
|break=yes | ||||
|---|---|---|---|---|
{{Portal|Politics|break=yes}}
|
Custom box size
|boxsize=300 | ||||
|---|---|---|---|---|
{{Portal|Politics|boxsize=300}}
|
Small box size
|boxsize=50 | ||||
|---|---|---|---|---|
{{Portal|Politics|boxsize=50}}
|
Show redlinks
|redlinks=yes | ||||
|---|---|---|---|---|
{{Portal|Politics|Test|redlinks=yes}}
|
|redlinks=include | ||||
|---|---|---|---|---|
{{Portal|Politics|Test|redlinks=include}}
|
|redlinks=1 | ||||
|---|---|---|---|---|
{{Portal|Politics|Test|redlinks=1}}
|
|redlinks=false | ||||
|---|---|---|---|---|
{{Portal|Politics|Test|redlinks=false}}
|
São Paulo
|redlinks=yes | ||||
|---|---|---|---|---|
{{Portal|São Paulo|redlinks=yes}}
|
Redlinks
| Redlinks | ||||
|---|---|---|---|---|
{{Portal|Test 2|Test|Test 3|Test 4|Test 5}}
|
All parameters
| All parameters | ||||
|---|---|---|---|---|
{{Portal|Politics|Art|Music|Literature|boxsize=300|break=yes|left=yes|margin=5em 5em 5em 5em}}
|
Borders
| Borders | ||||
|---|---|---|---|---|
{{Portal|A-League|Abu Dhabi|Atheism|Austria}}
|
"Image" function
{{#invoke:portal|image|A-League|Abu Dhabi|Atheism|Austria}}→ Soccer ball.svg{{#invoke:portal|image|A-League}}→ Soccer ball.svg{{#invoke:portal|image|Abu Dhabi}}→ Flag of Abu Dhabi.svg{{#invoke:portal|image|Atheism}}→ Atheism template.svg{{#invoke:portal|image|Austria}}→ Flag of Austria.svg{{#invoke:portal/sandbox|image|A-League|Abu Dhabi|Atheism|Austria}}→ Soccer ball.svg{{#invoke:portal/sandbox|image|A-League}}→ Soccer ball.svg{{#invoke:portal/sandbox|image|Abu Dhabi}}→ Flag of Abu Dhabi.svg{{#invoke:portal/sandbox|image|Atheism}}→ Atheism template.svg{{#invoke:portal/sandbox|image|Austria}}→ Flag of Austria.svg{{#invoke:portal/sandbox|image|A-League|border=0}}→ Soccer ball.svg{{#invoke:portal/sandbox|image|Abu Dhabi|border=0}}→ Flag of Abu Dhabi.svg{{#invoke:portal/sandbox|image|Atheism|border=0}}→ Atheism template.svg{{#invoke:portal/sandbox|image|Austria|border=0}}→ Flag of Austria.svg{{#invoke:portal/sandbox|image|A-League|border=1}}→ Soccer ball.svg{{#invoke:portal/sandbox|image|Abu Dhabi|border=1}}→ Flag of Abu Dhabi.svg{{#invoke:portal/sandbox|image|Atheism|border=1}}→ Atheism template.svg{{#invoke:portal/sandbox|image|Austria|border=1}}→ Flag of Austria.svg