Template:Article link/testcases
Jump to navigation
Jump to search
| This is the template test cases page for the sandbox of Template: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: |
Normal usage
[edit source]Basic
[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
6 sections
7 sections
8 sections
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 |