Jump to content

Template:MV/testcases

From Wikipedia, the free encyclopedia

MV Derbyshire MV Abegweit (1947)

The default

[edit]
The default, and the |4= format options
Row id Template usage Live version Sandbox version
A. (no settings) {{MV|Abegweit|1947}} MV Abegweit (1947) MV Abegweit (1947)
B. format = (blank), (absent) {{MV|Abegweit|1947}} MV Abegweit (1947) MV Abegweit (1947)
C. format=1 {{MV|Abegweit|1947|1}} 1947 1947
D. format=2 {{MV|Abegweit|1947|2}} Abegweit Abegweit
E. format=3 {{MV|Abegweit|1947|3}} Abegweit (1947) Abegweit (1947)
F. format=4 {{MV|Abegweit|1947|4}} Error: {{MV}} invalid control parameter: 4 (help) Error: {{MV}} invalid control parameter: 4 (help)
G. format=5 {{MV|Abegweit|1947|5}} MV 1947 MV 1947
H. format=6 {{MV|Abegweit|1947|6}} MV Abegweit MV Abegweit

Parameter up=yes, no, (blank), (omitted)

[edit]
|up= (up="unlink prefix")

up=(omitted) or (blank)

[edit]
Row id Template usage Live version Sandbox version
A. (no settings) {{MV|Abegweit|1947|up=}} MV Abegweit (1947) MV Abegweit (1947)
B. format = (blank), (absent) {{MV|Abegweit|1947|up=}} MV Abegweit (1947) MV Abegweit (1947)
C. format=1 {{MV|Abegweit|1947|1|up=}} 1947 1947
D. format=2 {{MV|Abegweit|1947|2|up=}} Abegweit Abegweit
E. format=3 {{MV|Abegweit|1947|3|up=}} Abegweit (1947) Abegweit (1947)
F. format=4 {{MV|Abegweit|1947|4|up=}} Error: {{MV}} invalid control parameter: 4 (help) Error: {{MV}} invalid control parameter: 4 (help)
G. format=5 {{MV|Abegweit|1947|5|up=}} MV 1947 MV 1947
H. format=6 {{MV|Abegweit|1947|6|up=}} MV Abegweit MV Abegweit

|up= omitted

Row id Template usage Live version Sandbox version
A. (no settings) {{MV|Abegweit|1947}} MV Abegweit (1947) MV Abegweit (1947)
B. format = (blank), (absent) {{MV|Abegweit|1947}} MV Abegweit (1947) MV Abegweit (1947)
C. format=1 {{MV|Abegweit|1947|1}} 1947 1947
D. format=2 {{MV|Abegweit|1947|2}} Abegweit Abegweit
E. format=3 {{MV|Abegweit|1947|3}} Abegweit (1947) Abegweit (1947)
F. format=4 {{MV|Abegweit|1947|4}} Error: {{MV}} invalid control parameter: 4 (help) Error: {{MV}} invalid control parameter: 4 (help)
G. format=5 {{MV|Abegweit|1947|5}} MV 1947 MV 1947
H. format=6 {{MV|Abegweit|1947|6}} MV Abegweit MV Abegweit

up=yes

[edit]
Row id Template usage Live version Sandbox version
A. (no settings) {{MV|Abegweit|1947}} MV Abegweit (1947) MV Abegweit (1947)
B. format = (blank), (absent) {{MV|Abegweit|1947|up=yes}} MV Abegweit (1947) MV Abegweit (1947)
C. format=1 {{MV|Abegweit|1947|1|up=yes}} 1947 1947
D. format=2 {{MV|Abegweit|1947|2|up=yes}} Abegweit Abegweit
E. format=3 {{MV|Abegweit|1947|3|up=yes}} Abegweit (1947) Abegweit (1947)
F. format=4 {{MV|Abegweit|1947|4|up=yes}} Error: {{MV}} invalid control parameter: 4 (help) Error: {{MV}} invalid control parameter: 4 (help)
G. format=5 {{MV|Abegweit|1947|5|up=yes}} MV 1947 MV 1947
H. format=6 {{MV|Abegweit|1947|6|up=yes}} MV Abegweit MV Abegweit

up=no

[edit]
error v2017: *any* input for |up= is reads "yes"
2018: only |up=yes, y, true, 1 = yes (lc or uc)
Row id Template usage Live version Sandbox version
A. (no settings) {{MV|Abegweit|1947}} MV Abegweit (1947) MV Abegweit (1947)
B. format = (blank), (absent) {{MV|Abegweit|1947|up=no}} MV Abegweit (1947) MV Abegweit (1947)
C. format=1 {{MV|Abegweit|1947|1|up=no}} 1947 1947
D. format=2 {{MV|Abegweit|1947|2|up=no}} Abegweit Abegweit
E. format=3 {{MV|Abegweit|1947|3|up=no}} Abegweit (1947) Abegweit (1947)
F. format=4 {{MV|Abegweit|1947|4|up=no}} Error: {{MV}} invalid control parameter: 4 (help) Error: {{MV}} invalid control parameter: 4 (help)
G. format=5 {{MV|Abegweit|1947|5|up=no}} MV 1947 MV 1947
H. format=6 {{MV|Abegweit|1947|6|up=no}} MV Abegweit MV Abegweit

up=foo

[edit]
Row id Template usage Live version Sandbox version
A. (no settings) {{MV|Abegweit|1947}} MV Abegweit (1947) MV Abegweit (1947)
B. format = (blank), (absent) {{MV|Abegweit|1947|up=foo}} MV Abegweit (1947) MV Abegweit (1947)
C. format=1 {{MV|Abegweit|1947|1|up=foo}} 1947 1947
D. format=2 {{MV|Abegweit|1947|2|up=foo}} Abegweit Abegweit
E. format=3 {{MV|Abegweit|1947|3|up=foo}} Abegweit (1947) Abegweit (1947)
F. format=4 {{MV|Abegweit|1947|4|up=foo}} Error: {{MV}} invalid control parameter: 4 (help) Error: {{MV}} invalid control parameter: 4 (help)
G. format=5 {{MV|Abegweit|1947|5|up=foo}} MV 1947 MV 1947
H. format=6 {{MV|Abegweit|1947|6|up=foo}} MV Abegweit MV Abegweit

Missing parameters 1, 2, 3

[edit]

missing para 1

[edit]
Row id Template usage Live version Sandbox version
A. (no settings) {{ship||Abegweit|1947}} Abegweit (1947) Abegweit (1947)
B. format = (blank), (absent) {{ship||Abegweit|1947}} Abegweit (1947) Abegweit (1947)
C. format=1 {{ship||Abegweit|1947|1}} 1947 1947
D. format=2 {{ship||Abegweit|1947|2}} Abegweit Abegweit
E. format=3 {{ship||Abegweit|1947|3}} Abegweit (1947) Abegweit (1947)
F. format=4 {{ship||Abegweit|1947|4}} Error: {{Ship}} invalid control parameter: 4 (help) Error: {{Ship}} invalid control parameter: 4 (help)
G. format=5 {{ship||Abegweit|1947|5}} Error: {{Ship}} missing prefix (help) Error: {{Ship}} missing prefix (help)
H. format=6 {{ship||Abegweit|1947|6}} Error: {{Ship}} missing prefix (help) Error: {{Ship}} missing prefix (help)

missing para 2

[edit]
Row id Template usage Live version Sandbox version
A. (no settings) {{MV||1947}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
B. format = (blank), (absent) {{MV||1947}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
C. format=1 {{MV||1947|1}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
D. format=2 {{MV||1947|2}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
E. format=3 {{MV||1947|3}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
F. format=4 {{MV||1947|4}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
G. format=5 {{MV||1947|5}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
H. format=6 {{MV||1947|6}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)

missing para 3

[edit]
Row id Template usage Live version Sandbox version
A. (no settings) {{MV|Abegweit}} MV Abegweit MV Abegweit
B. format = (blank), (absent); 3= present but empty {{MV|Abegweit|}} MV Abegweit MV Abegweit
C. format=1 {{MV|Abegweit||1}} Error: {{MV}} missing disambiguator (help) Error: {{MV}} missing disambiguator (help)
D. format=2 {{MV|Abegweit||2}} Abegweit Abegweit
E. format=3 {{MV|Abegweit||3}} Error: {{MV}} missing disambiguator (help) Error: {{MV}} missing disambiguator (help)
F. format=4 {{MV|Abegweit||4}} Error: {{MV}} invalid control parameter: 4 (help) Error: {{MV}} invalid control parameter: 4 (help)
G. format=5 {{MV|Abegweit||5}} Error: {{MV}} missing disambiguator (help) Error: {{MV}} missing disambiguator (help)
H. format=6 {{MV|Abegweit||6}} MV Abegweit MV Abegweit

missing para 1, 2

[edit]
Row id Template usage Live version Sandbox version
A. (no settings) {{ship|||1947}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
B. (4=present but empty) {{ship|||1947|}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
C. format=1 {{ship|||1947|1}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
D. format=2 {{ship|||1947|2}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
E. format=3 {{ship|||1947|3}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
F. format=4 {{ship|||1947|4}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
G. format=5 {{ship|||1947|5}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
H. format=6 {{ship|||1947|6}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)

missing para 1, 3

[edit]
Row id Template usage Live version Sandbox version
A. (no settings) 3= omitted {{ship||Abegweit}} Abegweit Abegweit
B. format = (blank), (absent) 3= present but empty {{ship||Abegweit|}} Abegweit Abegweit
C. format=1 {{ship||Abegweit||1}} Error: {{Ship}} missing disambiguator (help) Error: {{Ship}} missing disambiguator (help)
D. format=2 {{ship||Abegweit||2}} Abegweit Abegweit
E. format=3 {{ship||Abegweit||3}} Error: {{Ship}} missing disambiguator (help) Error: {{Ship}} missing disambiguator (help)
F. format=4 {{ship||Abegweit||4}} Error: {{Ship}} invalid control parameter: 4 (help) Error: {{Ship}} invalid control parameter: 4 (help)
G. format=5 {{ship||Abegweit||5}} Error: {{Ship}} missing disambiguator (help) Error: {{Ship}} missing disambiguator (help)
H. format=6 {{ship||Abegweit||6}} Error: {{Ship}} missing prefix (help) Error: {{Ship}} missing prefix (help)
Note: Abegweit is a DAB

missing para 2, 3

[edit]
Row id Template usage Live version Sandbox version
A. (no settings) 3= omitted {{MV|}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
B. format = (blank), (absent) 3= present but empty {{MV||}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
C. format=1 {{MV|||1}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
D. format=2 {{MV|||2}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
E. format=3 {{MV|||3}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
F. format=4 {{MV|||4}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
G. format=5 {{MV|||5}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)
H. format=6 {{MV|||6|}} Error: {{MV}} missing name (help) Error: {{MV}} missing name (help)

missing para 1, 2, 3

[edit]
Row id Template usage Live version Sandbox version
A. (no settings) 3= omittd {{ship||}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
B. format = (blank), (absent) 3= present but empty {{ship|||}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
C. format=1 {{ship||||1}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
D. format=2 {{ship||||2}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
E. format=3 {{ship||||3}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
F. format=4 {{ship||||4}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
G. format=5 {{ship||||5}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)
H. format=6 {{ship||||6}} Error: {{Ship}} missing name (help) Error: {{Ship}} missing name (help)

Misc

[edit]

Parameter 4 (format): unknown input

[edit]
|4= should be 1, 2, 3, 4, 5, 6, (blank).
Row id Template usage Live version Sandbox version
A. (no settings) {{MV|Abegweit|1947}} MV Abegweit (1947) MV Abegweit (1947)
B. format = (blank), (absent) {{MV|Abegweit|1947}} MV Abegweit (1947) MV Abegweit (1947)
C. format=1q {{MV|Abegweit|1947|1q}} Error: {{MV}} invalid control parameter: 1q (help) Error: {{MV}} invalid control parameter: 1q (help)
D. format=2q {{MV|Abegweit|1947|2q}} Error: {{MV}} invalid control parameter: 2q (help) Error: {{MV}} invalid control parameter: 2q (help)
E. format=foo {{MV|Abegweit|1947|foo}} Error: {{MV}} invalid control parameter: foo (help) Error: {{MV}} invalid control parameter: foo (help)
F. format=b4 {{MV|Abegweit|1947|b4}} Error: {{MV}} invalid control parameter: b4 (help) Error: {{MV}} invalid control parameter: b4 (help)
G. format=f5 {{MV|Abegweit|1947|f5}} Error: {{MV}} invalid control parameter: f5 (help) Error: {{MV}} invalid control parameter: f5 (help)
H. format=j6 {{MV|Abegweit|1947|j6}} Error: {{MV}} invalid control parameter: j6 (help) Error: {{MV}} invalid control parameter: j6 (help)
X. format=7 {{MV|Abegweit|1947|7}} Error: {{MV}} invalid control parameter: 7 (help) Error: {{MV}} invalid control parameter: 7 (help)


(hull number missing)
Row id Template usage Live version Sandbox version
A. (no settings) {{MV|Abegweit|}} MV Abegweit MV Abegweit
B. format = (blank), (absent) {{MV|Abegweit|}} MV Abegweit MV Abegweit
C. format=1q {{MV|Abegweit||1q}} Error: {{MV}} invalid control parameter: 1q (help) Error: {{MV}} invalid control parameter: 1q (help)
D. format=2q {{MV|Abegweit||2q}} Error: {{MV}} invalid control parameter: 2q (help) Error: {{MV}} invalid control parameter: 2q (help)
E. format=foo {{MV|Abegweit||foo}} Error: {{MV}} invalid control parameter: foo (help) Error: {{MV}} invalid control parameter: foo (help)
F. format=b4 {{MV|Abegweit||b4}} Error: {{MV}} invalid control parameter: b4 (help) Error: {{MV}} invalid control parameter: b4 (help)
G. format=f5 {{MV|Abegweit||f5}} Error: {{MV}} invalid control parameter: f5 (help) Error: {{MV}} invalid control parameter: f5 (help)
H. format=j6 {{MV|Abegweit||j6}} Error: {{MV}} invalid control parameter: j6 (help) Error: {{MV}} invalid control parameter: j6 (help)
X. format=7 {{MV|Abegweit||7}} Error: {{MV}} invalid control parameter: 7 (help) Error: {{MV}} invalid control parameter: 7 (help)

Unknown parameter used

[edit]
Category:Pages using Ship with unknown parameters
For example: |5=, |bar= are not defined
Testing: currently the category is shown here
Error messages show only in preview rendering
Row id Template usage Live version Sandbox version
B. format = (blank), (absent) 5=blank {{MV|Abegweit|1947||}} MV Abegweit (1947) MV Abegweit (1947)
A. {{MV|Abegweit|1947||five}} MV Abegweit (1947) MV Abegweit (1947)
B. format = (blank), (absent) {{MV|Abegweit|1947|up=yes|||six}} MV Abegweit (1947) MV Abegweit (1947)
C. format=1 {{MV|Abegweit|1947|up=yes|4||six}} Error: {{MV}} invalid control parameter: 4 (help) Error: {{MV}} invalid control parameter: 4 (help)
D. format=2 {{MV|Abegweit|1947|up=yes|4|bar=99}} Error: {{MV}} invalid control parameter: 4 (help) Error: {{MV}} invalid control parameter: 4 (help)