Template:Article link/testcases

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Normal usage

[edit source]
1 section
{{Article link|Some section}}
{{Article link}} § Some section
{{Article link/sandbox}} § Some section
2 sections
{{Article link|Some section 1|Some section 2}}
{{Article link}} §§ Some section 1​ and Some section 2
{{Article link/sandbox}} §§ Some section 1​ and Some section 2

Specific

[edit source]
3 sections (uses commas)
{{Article link|Some section 1|Some section 2|Some section 3}}
{{Article link}} §§ Some section 1, Some section 2, and Some section 3
{{Article link/sandbox}} §§ Some section 1, Some section 2, and Some section 3
4 sections
{{Article link|1|2|3|4}}
{{Article link}} §§ 1, 2, 3, and 4
{{Article link/sandbox}} §§ 1, 2, 3, and 4
5 sections
{{Article link|1|2|3|4|5}}
{{Article link}} §§ 1, 2, 3, 4, and 5
{{Article link/sandbox}} §§ 1, 2, 3, 4, and 5
6 sections
{{Article link|1|2|3|4|5|6}}
{{Article link}} §§ 1, 2, 3, 4, 5, and 6
{{Article link/sandbox}} §§ 1, 2, 3, 4, 5, and 6
7 sections
{{Article link|1|2|3|4|5|6|7}}
{{Article link}} §§ 1, 2, 3, 4, 5, 6, and 7
{{Article link/sandbox}} §§ 1, 2, 3, 4, 5, 6, and 7
8 sections
{{Article link|1|2|3|4|5|6|7|8}}
{{Article link}} §§ 1, 2, 3, 4, 5, 6, 7, and 8
{{Article link/sandbox}} §§ 1, 2, 3, 4, 5, 6, 7, and 8

Invalid usage

[edit source]
0 sections (too few)
{{Article link}}
{{Article link}} {{Section link}}: required section parameter(s) missing
{{Article link/sandbox}} {{Section link}}: required section parameter(s) missing
9 sections (too many)
{{Article link|1|2|3|4|5|6|7|8|9}}
{{Article link}} §§ 1, 2, 3, 4, 5, 6, 7, and 8
{{Article link/sandbox}} §§ 1, 2, 3, 4, 5, 6, 7, and 8