Difference between revisions of "Template:Infobox book/testcases"
(added {{template test cases notice}}) |
(code spacing) |
||
| Line 9: | Line 9: | ||
# <code><nowiki>{{Template:Testcase table|isbn=}}</nowiki></code> | # <code><nowiki>{{Template:Testcase table|isbn=}}</nowiki></code> | ||
{{-}} | {{-}} | ||
| + | |||
== Number only == | == Number only == | ||
{{Template:Testcase table|isbn=1234567890}} | {{Template:Testcase table|isbn=1234567890}} | ||
{{Template:Testcase table|isbn=1-2345-6789-0}} | {{Template:Testcase table|isbn=1-2345-6789-0}} | ||
{{-}} | {{-}} | ||
| + | |||
== Number ending in X == | == Number ending in X == | ||
{{Template:Testcase table|isbn=123456789X}} | {{Template:Testcase table|isbn=123456789X}} | ||
{{Template:Testcase table|isbn=1-2345-6789-X}} | {{Template:Testcase table|isbn=1-2345-6789-X}} | ||
{{-}} | {{-}} | ||
| + | |||
== Number with ISBN == | == Number with ISBN == | ||
{{Template:Testcase table|isbn=ISBN 1234567890}} | {{Template:Testcase table|isbn=ISBN 1234567890}} | ||
| Line 22: | Line 25: | ||
{{Template:Testcase table|isbn=ISBN 123456789X}} | {{Template:Testcase table|isbn=ISBN 123456789X}} | ||
{{Template:Testcase table|isbn=ISBN 1-2345-6789-X}} | {{Template:Testcase table|isbn=ISBN 1-2345-6789-X}} | ||
| − | Redundant text label. Prefer number only (see above).{{-}} | + | Redundant text label. Prefer number only (see above). |
| + | {{-}} | ||
| + | |||
== Number with additional label using {{tl|ISBNT}} == | == Number with additional label using {{tl|ISBNT}} == | ||
{{Template:Testcase table|isbn={{ISBNT|1234567890}} Vol.1}} | {{Template:Testcase table|isbn={{ISBNT|1234567890}} Vol.1}} | ||
| Line 30: | Line 35: | ||
{{Template:Testcase table|isbn={{ISBNT|1-2345-6789-X}}<br />Vol.1}} | {{Template:Testcase table|isbn={{ISBNT|1-2345-6789-X}}<br />Vol.1}} | ||
{{-}} | {{-}} | ||
| + | |||
== Number with additional label == | == Number with additional label == | ||
{{Template:Testcase table|isbn=1234567890 Vol.1}} | {{Template:Testcase table|isbn=1234567890 Vol.1}} | ||
| Line 36: | Line 42: | ||
{{Template:Testcase table|isbn=1-2345-6789-X Vol.1}} | {{Template:Testcase table|isbn=1-2345-6789-X Vol.1}} | ||
{{-}} | {{-}} | ||
| + | |||
== Number with ISBN and additional label == | == Number with ISBN and additional label == | ||
{{Template:Testcase table|isbn=ISBN 1234567890 Vol.1}} | {{Template:Testcase table|isbn=ISBN 1234567890 Vol.1}} | ||
| Line 42: | Line 49: | ||
{{Template:Testcase table|isbn=ISBN 1-2345-6789-X Vol.1}} | {{Template:Testcase table|isbn=ISBN 1-2345-6789-X Vol.1}} | ||
{{-}} | {{-}} | ||
| + | |||
== Multiple numbers using {{tl|ISBNT}} == | == Multiple numbers using {{tl|ISBNT}} == | ||
{{Template:Testcase table|isbn={{ISBNT|1-2222-3333-4}}{{ISBNT|5-6666-7777-8}}}} | {{Template:Testcase table|isbn={{ISBNT|1-2222-3333-4}}{{ISBNT|5-6666-7777-8}}}} | ||
| Line 48: | Line 56: | ||
{{Template:Testcase table|isbn={{ISBNT|1-2222-3333-4}}<br />{{ISBNT|5-6666-7777-8}}}} | {{Template:Testcase table|isbn={{ISBNT|1-2222-3333-4}}<br />{{ISBNT|5-6666-7777-8}}}} | ||
{{-}} | {{-}} | ||
| + | |||
== Multiple numbers only == | == Multiple numbers only == | ||
{{Template:Testcase table|isbn=1-2222-3333-4 5-6666-7777-8}} | {{Template:Testcase table|isbn=1-2222-3333-4 5-6666-7777-8}} | ||
| Line 54: | Line 63: | ||
{{Template:Testcase table|isbn=1-2222-3333-4 <br /> 5-6666-7777-8}} | {{Template:Testcase table|isbn=1-2222-3333-4 <br /> 5-6666-7777-8}} | ||
{{-}} | {{-}} | ||
| + | |||
== Multiple numbers with ISBNs == | == Multiple numbers with ISBNs == | ||
{{Template:Testcase table|isbn=ISBN 1-2222-3333-4 ISBN 5-6666-7777-8}} | {{Template:Testcase table|isbn=ISBN 1-2222-3333-4 ISBN 5-6666-7777-8}} | ||
| Line 60: | Line 70: | ||
{{Template:Testcase table|isbn=ISBN 1-2222-3333-4 <br />ISBN 5-6666-7777-8}} | {{Template:Testcase table|isbn=ISBN 1-2222-3333-4 <br />ISBN 5-6666-7777-8}} | ||
{{-}} | {{-}} | ||
| + | |||
== Multiple numbers with additional labels using {{tl|ISBNT}} == | == Multiple numbers with additional labels using {{tl|ISBNT}} == | ||
{{Template:Testcase table|isbn=1-{{ISBNT|2222-3333-4}} Vol.1 {{ISBNT|5-6666-7777-8}} Vol.2}} | {{Template:Testcase table|isbn=1-{{ISBNT|2222-3333-4}} Vol.1 {{ISBNT|5-6666-7777-8}} Vol.2}} | ||
| Line 67: | Line 78: | ||
{{Template:Testcase table|isbn=1-{{ISBNT|2222-3333-4}}<br />Vol.1<br />{{ISBNT|5-6666-7777-8}}<br />Vol.2}} | {{Template:Testcase table|isbn=1-{{ISBNT|2222-3333-4}}<br />Vol.1<br />{{ISBNT|5-6666-7777-8}}<br />Vol.2}} | ||
{{-}} | {{-}} | ||
| + | |||
== Multiple numbers with additional labels == | == Multiple numbers with additional labels == | ||
{{Template:Testcase table|isbn=1-2222-3333-4 Vol.1 5-6666-7777-8 Vol.2}} | {{Template:Testcase table|isbn=1-2222-3333-4 Vol.1 5-6666-7777-8 Vol.2}} | ||
| Line 73: | Line 85: | ||
{{Template:Testcase table|isbn=1-2222-3333-4 Vol.1<br />5-6666-7777-8 Vol.2}} | {{Template:Testcase table|isbn=1-2222-3333-4 Vol.1<br />5-6666-7777-8 Vol.2}} | ||
{{-}} | {{-}} | ||
| + | |||
== Multiple numbers with ISBNs and additional labels == | == Multiple numbers with ISBNs and additional labels == | ||
{{Template:Testcase table|isbn=ISBN 1-2222-3333-4 Vol.1 ISBN 5-6666-7777-8 Vol.2}} | {{Template:Testcase table|isbn=ISBN 1-2222-3333-4 Vol.1 ISBN 5-6666-7777-8 Vol.2}} | ||
| Line 79: | Line 92: | ||
{{Template:Testcase table|isbn=ISBN 1-2222-3333-4 Vol.1 <br />ISBN 5-6666-7777-8 Vol.2}} | {{Template:Testcase table|isbn=ISBN 1-2222-3333-4 Vol.1 <br />ISBN 5-6666-7777-8 Vol.2}} | ||
{{-}} | {{-}} | ||
| + | |||
==Author (and Published)== | ==Author (and Published)== | ||
{{Testcase table | {{Testcase table | ||
Revision as of 14:15, 12 January 2014
| This is the template test cases page for the sandbox of Template:Infobox book. 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: |
Contents
- 1 No input
- 2 Number only
- 3 Number ending in X
- 4 Number with ISBN
- 5 Number with additional label using {{ISBNT}}
- 6 Number with additional label
- 7 Number with ISBN and additional label
- 8 Multiple numbers using {{ISBNT}}
- 9 Multiple numbers only
- 10 Multiple numbers with ISBNs
- 11 Multiple numbers with additional labels using {{ISBNT}}
- 12 Multiple numbers with additional labels
- 13 Multiple numbers with ISBNs and additional labels
- 14 Author (and Published)
- 15 Authors (and Published)
- 16 Published: One
- 17 Published: Two
- 18 Text bug
- 19 Editor (and Published)
No input
Template:Testcase table Template:Testcase table
{{Template:Testcase table}}{{Template:Testcase table|isbn=}}
Number only
Template:Testcase table Template:Testcase table
Number ending in X
Template:Testcase table Template:Testcase table
Number with ISBN
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table Redundant text label. Prefer number only (see above).
Number with additional label using {{ISBNT}}
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table
Number with additional label
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table
Number with ISBN and additional label
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table
Multiple numbers using {{ISBNT}}
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table
Multiple numbers only
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table
Multiple numbers with ISBNs
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table
Multiple numbers with additional labels using {{ISBNT}}
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table
Multiple numbers with additional labels
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table
Multiple numbers with ISBNs and additional labels
Template:Testcase table Template:Testcase table Template:Testcase table Template:Testcase table