Difference between revisions of "Template:Catalog lookup link/testcases"
Jump to navigation
Jump to search
imported>Ahecht (add testcases) |
imported>Ahecht (add testcases) |
||
| Line 6: | Line 6: | ||
{{Test case|_collapsible=yes|_showcode=yes|_title=just items | {{Test case|_collapsible=yes|_showcode=yes|_title=just items | ||
|1|2|3|4|5|6|7|8|9}} | |1|2|3|4|5|6|7|8|9}} | ||
| + | |||
| + | {{Test case|_collapsible=yes|_showcode=yes|_title=just parameters | ||
| + | |article-link=Wikipedia|article-name=WP|link-prefix=//en.wikipedia.org/wiki/}} | ||
{{Test case|_collapsible=yes|_showcode=yes|_title=missing item in middle | {{Test case|_collapsible=yes|_showcode=yes|_title=missing item in middle | ||
Revision as of 22:17, 16 July 2018
| This is the template test cases page for the sandbox of Template:Catalog lookup link. Script error: No such module "Purge". 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 with these links: |
| null |
|---|
{{Catalog lookup link}}
|
| just items |
|---|
{{Catalog lookup link|1|2|3|4|5|6|7|8|9}}
1, 2, 3, 4, 5, 6, 7, 8, 9 {{Catalog lookup link/sandbox}} 1, 2, 3, 4, 5, 6, 7, 8, 9 |
| just parameters |
|---|
{{Catalog lookup link|article-link=Wikipedia|article-name=WP|link-prefix=//en.wikipedia.org/wiki/}}
|
| missing item in middle |
|---|
{{Catalog lookup link|1|2|3|4||6|7|8|9}}
1, 2, 3, 4 {{Catalog lookup link/sandbox}} 1, 2, 3, 4 |
| article-link and article-name |
|---|
{{Catalog lookup link|1|2|3|4|5|6|7|8|9|article-link=Wikipedia|article-name=WP|link-prefix=//en.wikipedia.org/wiki/}}
|
| only article-link |
|---|
{{Catalog lookup link|1|2|3|4|5|6|7|8|9|article-link=Wikipedia|link-prefix=//en.wikipedia.org/wiki/}}
Wikipedia 1, 2, 3, 4, 5, 6, 7, 8, 9 |
| only article-name |
|---|
{{Catalog lookup link|1|2|3|4|5|6|7|8|9|article-name=WP|link-prefix=//en.wikipedia.org/wiki/}}
|
| neither article-link nor article-name |
|---|
{{Catalog lookup link|1|2|3|4|5|6|7|8|9|link-prefix=//en.wikipedia.org/wiki/}}
|
| with article-postfix, item-prefix, item-postfix, link-postfix |
|---|
{{Catalog lookup link|1|2|3|4|5|6|7|8|9|article-link=Wikipedia|article-name=WP|article-postfix=:|item-postfix=>|item-prefix=<|link-postfix=#hash|link-prefix=//en.wikipedia.org/wiki/}}
WP: <1>, <2>, <3>, <4>, <5>, <6>, <7>, <8>, <9> |
| without link-prefix, with article-postfix, item-prefix, item-postfix |
|---|
{{Catalog lookup link|1|2|3|4|5|6|7|8|9|article-link=Wikipedia|article-name=WP|article-postfix=:|item-postfix=>|item-prefix=<|link-postfix=#hash}}
WP: <1>, <2>, <3>, <4>, <5>, <6>, <7>, <8>, <9> {{Catalog lookup link/sandbox}} WP: <1>, <2>, <3>, <4>, <5>, <6>, <7>, <8>, <9> |
| list-leadout, list-separator |
|---|
{{Catalog lookup link|1|2|3|4|5|6|7|8|9|article-link=Wikipedia|article-name=WP|link-prefix=//en.wikipedia.org/wiki/|list-leadout=and|list-separator= / }}
WP 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 and 9 |