This is the template test cases page for the sandbox of Template:Vital article link. 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 and parsers with these links: |
Basic checks
editDisplaying results for vital articles of different levels. Check that every number links to the correct section in the corresponding vital article list containing the given article. (Sometimes the links might not work due to manual updates of section titles in the vital article lists.)
Level | Code | Main | Sandbox |
---|---|---|---|
1 | {{VA link|Philosophy}}
|
Philosophy 1 | Philosophy 1 |
2 | {{VA link|Water}}
|
Water 2 | Water 2 |
3 | {{VA link|Nikola Tesla}}
|
Nikola Tesla 3 | Nikola Tesla 3 |
4 | {{VA link|Chicago}}
|
Chicago 4 | Chicago 4 |
5 | {{VA link|12-hour clock}}
|
12-hour clock 5 | 12-hour clock 5 |
Check non vital articles
editFor articles not in the list of vital articles, the template should display a plain link.
Code | Main | Sandbox | Comment |
---|---|---|---|
{{VA link|List of European Council meetings}}
|
List of European Council meetings | List of European Council meetings | Not in the list |
{{VA link|Not an article}}
|
Not an article | Not an article | Not an article |
Different first character
editCheck that the vital articles starting with different first characters are displayed properly.
Code | Main | Sandbox | First character class |
---|---|---|---|
{{VA link|Alphabet}}
|
Alphabet 3 | Alphabet 3 | English characters |
{{VA link|Money}}
|
Money 3 | Money 3 | |
{{VA link|Zoo}}
|
Zoo 4 | Zoo 4 | |
{{VA link|Æthelstan}}
|
Æthelstan 4 | Æthelstan 4 | a non-English alphabetic character |
{{VA link|2001: A Space Odyssey}}
|
2001: A Space Odyssey 4 | 2001: A Space Odyssey 4 | a number |
{{VA link|−1}}
|
−1 4 | −1 4 | a punctuation symbol |
Checking automatic capitalization
editThe first letter should be automatically capitalized by the template before the vital article check.
Code | Main | Sandbox | Comment |
---|---|---|---|
{{VA link|water}}
|
Water 2 | Water 2 | a vital article starting with an English character |
{{VA link|æthelstan}}
|
Æthelstan 4 | Æthelstan 4 | a vital article starting with a non-English character |
{{VA link|minor}}
|
Minor | Minor | a non-vital article |
Checking the numbers
editCurrently, the template does not work properly for the vital articles which are numbers. |
0, 1 and 10 are vital articles which should be displayed properly.
Code | Main | Sandbox |
---|---|---|
{{VA link|0}}
|
0 3 | 0 3 |
{{VA link|1}}
|
1 4 | 1 4 |
{{VA link|10}}
|
10 5 | 10 5 |