Jump to content

Template:Vital article link/testcases

From Wikipedia, the free encyclopedia

Basic checks

[edit]

Displaying 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

[edit]

For 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

[edit]

Check 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

[edit]

The 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

[edit]

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