Template:MV/testcases
Jump to navigation
Jump to search
![]() | This is the template test cases page for the sandbox of Template:MV. 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: |
MV Derbyshire MV Abegweit (1947)
Contents
The default
- 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}} | MV Abegweit (1947) | Invalid Optional Parameter |
G. format=5 | {{MV|Abegweit|1947|5}} | MV 1947 | MV (1947) |
H. format=6 | {{MV|Abegweit|1947|6}} | MV Abegweit | MV Abegweit |
J. format=8 | {{MV|Abegweit|1947|8}} | MV Abegweit (1947) | M/V Abegweit (1947) |
K. format=13 | {{MV|Abegweit|1947|13}} | MV Abegweit (1947) | M/V (1947) |
L. format=14 | {{MV|Abegweit|1947|14}} | MV Abegweit (1947) | M/V Abegweit |
Parameter up=yes, no, (blank), (omitted)
|up=
(up="unlink prefix")
up=(omitted) or (blank)
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=}} | MV Abegweit (1947) | Invalid Optional Parameter |
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}} | MV Abegweit (1947) | Invalid Optional Parameter |
G. format=5 | {{MV|Abegweit|1947|5}} | MV 1947 | MV (1947) |
H. format=6 | {{MV|Abegweit|1947|6}} | MV Abegweit | MV Abegweit |
up=yes
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}} | MV 1947 | 1947 |
D. format=2 | {{MV|Abegweit|1947|2|up=yes}} | MV Abegweit | Abegweit |
E. format=3 | {{MV|Abegweit|1947|3|up=yes}} | MV Abegweit (1947) | Abegweit (1947) |
F. format=4 | {{MV|Abegweit|1947|4|up=yes}} | MV Abegweit (1947) | Invalid Optional Parameter |
G. format=5 | {{MV|Abegweit|1947|5|up=yes}} | MV MV 1947 | MV (1947) |
H. format=6 | {{MV|Abegweit|1947|6|up=yes}} | MV Abegweit | MV Abegweit |
- Also when
|up=Y
,|up=True
,|up=1
:|up=yes
Row id | Template usage | Live version | Sandbox version |
---|---|---|---|
A. | {{MV|Abegweit|1947|1|up=Y}} | MV 1947 | 1947 |
B. | {{MV|Abegweit|1947|1|up=True}} | MV 1947 | 1947 |
C. format=1 | {{MV|Abegweit|1947|1|up=1}} | MV 1947 | 1947 |
up=no
- 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}} | MV Abegweit (1947) | Invalid Optional Parameter |
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
- 2017: up not recognised as "yes", so to check (could be "no")
- 2018: only
|up=yes, y, true, 1
= yes - 2018: only
|up=no, 0, false
= no - 2018:
|up=gobbledeegob
all the rest: categorise and up for editing
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}} | MV Abegweit (1947) | Invalid Optional Parameter |
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
- Feb 2018: only missing
|2=
, and in situations missing|3=
could be bad. Weird redlinks are not detected by current or proposed version of {{Ship}}.
missing para 1
Row id | Template usage | Live version | Sandbox version |
---|---|---|---|
A. (no settings) | {{ship||Abegweit|1947}} | Abegweit (1947) | Template:Ship/sandbox |
B. format = (blank), (absent) | {{ship||Abegweit|1947}} | Abegweit (1947) | Template:Ship/sandbox |
C. format=1 | {{ship||Abegweit|1947|1}} | 1947 | Template:Ship/sandbox |
D. format=2 | {{ship||Abegweit|1947|2}} | Abegweit | Template:Ship/sandbox |
E. format=3 | {{ship||Abegweit|1947|3}} | Abegweit (1947) | Template:Ship/sandbox |
F. format=4 | {{ship||Abegweit|1947|4}} | Abegweit (1947) | Template:Ship/sandbox |
G. format=5 | {{ship||Abegweit|1947|5}} | 1947 | Template:Ship/sandbox |
H. format=6 | {{ship||Abegweit|1947|6}} | Abegweit | Template:Ship/sandbox |
missing para 2
Row id | Template usage | Live version | Sandbox version |
---|---|---|---|
A. (no settings) | {{MV||1947}} | MV (1947) | MV (1947) |
B. format = (blank), (absent) | {{MV||1947}} | MV (1947) | MV (1947) |
C. format=1 | {{MV||1947|1}} | 1947 | 1947 |
D. format=2 | {{MV||1947|2}} | [[MV (1947)|]] | [[MV (1947)|]] |
E. format=3 | {{MV||1947|3}} | (1947) | (1947) |
F. format=4 | {{MV||1947|4}} | MV (1947) | Invalid Optional Parameter |
G. format=5 | {{MV||1947|5}} | MV 1947 | MV (1947) |
H. format=6 | {{MV||1947|6}} | MV | MV |
missing para 3
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}} | [[MV Abegweit|]] | Hull Number Missing |
D. format=2 | {{MV|Abegweit||2}} | Abegweit | Abegweit |
E. format=3 | {{MV|Abegweit||3}} | Abegweit | Abegweit Hull Number Missing |
F. format=4 | {{MV|Abegweit||4}} | MV Abegweit | Invalid Optional Parameter |
G. format=5 | {{MV|Abegweit||5}} | MV | MV Hull Number Missing |
H. format=6 | {{MV|Abegweit||6}} | MV Abegweit | MV Abegweit |
missing para 1, 2
Row id | Template usage | Live version | Sandbox version |
---|---|---|---|
A. (no settings) | {{ship|||1947}} | (1947) | Template:Ship/sandbox |
B. (4=present but empty) | {{ship|||1947|}} | (1947) | Template:Ship/sandbox |
C. format=1 | {{ship|||1947|1}} | 1947 | Template:Ship/sandbox |
D. format=2 | {{ship|||1947|2}} | [[ (1947)|]] | Template:Ship/sandbox |
E. format=3 | {{ship|||1947|3}} | (1947) | Template:Ship/sandbox |
F. format=4 | {{ship|||1947|4}} | (1947) | Template:Ship/sandbox |
G. format=5 | {{ship|||1947|5}} | 1947 | Template:Ship/sandbox |
H. format=6 | {{ship|||1947|6}} | [[ (1947)|]] | Template:Ship/sandbox |
missing para 1, 3
Row id | Template usage | Live version | Sandbox version |
---|---|---|---|
A. (no settings) 3= omitted | {{ship||Abegweit}} | Abegweit | Template:Ship/sandbox |
B. format = (blank), (absent) 3= present but empty | {{ship||Abegweit|}} | Abegweit | Template:Ship/sandbox |
C. format=1 | {{ship||Abegweit||1}} | [[Abegweit|]] | Template:Ship/sandbox |
D. format=2 | {{ship||Abegweit||2}} | Abegweit | Template:Ship/sandbox |
E. format=3 | {{ship||Abegweit||3}} | Abegweit | Template:Ship/sandbox |
F. format=4 | {{ship||Abegweit||4}} | Abegweit | Template:Ship/sandbox |
G. format=5 | {{ship||Abegweit||5}} | Template:Ship/sandbox | |
H. format=6 | {{ship||Abegweit||6}} | Abegweit | Template:Ship/sandbox |
- Note: Abegweit is a DAB
missing para 2, 3
Row id | Template usage | Live version | Sandbox version |
---|---|---|---|
A. (no settings) 3= omitted | {{MV|}} | MV | MV |
B. format = (blank), (absent) 3= present but empty | {{MV||}} | MV | MV |
C. format=1 | {{MV|||1}} | [[MV |]] | Hull Number Missing |
D. format=2 | {{MV|||2}} | [[MV |]] | [[MV |]] |
E. format=3 | {{MV|||3}} | [[MV |]] | Hull Number Missing |
F. format=4 | {{MV|||4}} | MV | Invalid Optional Parameter |
G. format=5 | {{MV|||5}} | MV | MV Hull Number Missing |
H. format=6 | {{MV|||6|}} | MV | MV |
missing para 1, 2, 3
Row id | Template usage | Live version | Sandbox version |
---|---|---|---|
A. (no settings) 3= omittd | {{ship||}} | [[|]] | Template:Ship/sandbox |
B. format = (blank), (absent) 3= present but empty | {{ship|||}} | [[|]] | Template:Ship/sandbox |
C. format=1 | {{ship||||1}} | [[|]] | Template:Ship/sandbox |
D. format=2 | {{ship||||2}} | [[|]] | Template:Ship/sandbox |
E. format=3 | {{ship||||3}} | [[|]] | Template:Ship/sandbox |
F. format=4 | {{ship||||4}} | [[|]] | Template:Ship/sandbox |
G. format=5 | {{ship||||5}} | [[|]] | Template:Ship/sandbox |
H. format=6 | {{ship||||6}} | [[|]] | Template:Ship/sandbox |
Misc
Parameter 4 (format): unknown input
|4=
should be1, 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}} | MV Abegweit (1947) | MV Abegweit (1947) |
D. format=2q | {{MV|Abegweit|1947|2q}} | MV Abegweit (1947) | MV Abegweit (1947) |
E. format=foo | {{MV|Abegweit|1947|foo}} | MV Abegweit (1947) | MV Abegweit (1947) |
F. format=b4 | {{MV|Abegweit|1947|b4}} | MV Abegweit (1947) | MV Abegweit (1947) |
G. format=f5 | {{MV|Abegweit|1947|f5}} | MV Abegweit (1947) | MV Abegweit (1947) |
H. format=j6 | {{MV|Abegweit|1947|j6}} | MV Abegweit (1947) | MV Abegweit (1947) |
X. format=7 | {{MV|Abegweit|1947|7}} | MV Abegweit (1947) | MV Abegweit (1947) |
- (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}} | MV Abegweit | MV Abegweit |
D. format=2q | {{MV|Abegweit||2q}} | MV Abegweit | MV Abegweit |
E. format=foo | {{MV|Abegweit||foo}} | MV Abegweit | MV Abegweit |
F. format=b4 | {{MV|Abegweit||b4}} | MV Abegweit | MV Abegweit |
G. format=f5 | {{MV|Abegweit||f5}} | MV Abegweit | MV Abegweit |
H. format=j6 | {{MV|Abegweit||j6}} | MV Abegweit | MV Abegweit |
X. format=7 | {{MV|Abegweit||7}} | MV Abegweit | MV Abegweit |
Parameter: page
Not implemented, 11:51, 8 March 2018 (UTC)|page=
(new, Feb 2018) is the target article pagename (will be linked to whatever the other input). Does not show, because the wikilabel shows.
- Example here is
|page=HMS Belfast (C35)
- This is an extreme example to show the point. BTW, standard MV Abegweit (1947) links to ...
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|page=HMS Belfast (C35)}} | MV Abegweit (1947) | MV Abegweit (1947) |
C. format=1 | {{MV|Abegweit|1947|1|page=HMS Belfast (C35)}} | 1947 | 1947 |
D. format=2 | {{MV|Abegweit|1947|2|page=HMS Belfast (C35)}} | Abegweit | Abegweit |
E. format=3 | {{MV|Abegweit|1947|3|page=HMS Belfast (C35)}} | Abegweit (1947) | Abegweit (1947) |
F. format=4 | {{MV|Abegweit|1947|4|page=HMS Belfast (C35)}} | MV Abegweit (1947) | Invalid Optional Parameter |
G. format=5 | {{MV|Abegweit|1947|5|page=HMS Belfast (C35)}} | MV 1947 | MV (1947) |
H. format=6 | {{MV|Abegweit|1947|6|page=HMS Belfast (C35)}} | MV Abegweit | MV Abegweit |
Unknown parameter used
- 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}} | MV Abegweit (1947) | Invalid Optional Parameter |
D. format=2 | {{MV|Abegweit|1947|up=yes|4|bar=99}} | MV Abegweit (1947) | Invalid Optional Parameter |
Testing prefix shortcut template
{{HMCS/sandbox}} uses {{Ship/sandbox}}
Row id | Template usage | Live version | Sandbox version |
---|---|---|---|
A. (no settings) | {{HMCS|Abegweit|1947}} | HMCS Abegweit (1947) | Template:Ship/sandbox |
B. format = (blank), (absent) | {{HMCS|Abegweit|1947}} | HMCS Abegweit (1947) | Template:Ship/sandbox |
C. format=1 | {{HMCS|Abegweit|1947|1}} | 1947 | Template:Ship/sandbox |
D. format=2 | {{HMCS|Abegweit|1947|2}} | Abegweit | Template:Ship/sandbox |
E. format=3 | {{HMCS|Abegweit|1947|3}} | Abegweit (1947) | Template:Ship/sandbox |
F. format=4 | {{HMCS|Abegweit|1947|4}} | HMCS Abegweit (1947) | Template:Ship/sandbox |
G. format=5 | {{HMCS|Abegweit|1947|5}} | HMCS 1947 | Template:Ship/sandbox |
H. format=6 | {{HMCS|Abegweit|1947|6}} | HMCS Abegweit | Template:Ship/sandbox |
Row id | Template usage | Live version | Sandbox version |
---|---|---|---|
A. (no settings) | {{HMCS|Abegweit|1947}} | HMCS Abegweit (1947) | Template:Ship/sandbox |
B. format = (blank), (absent) | {{HMCS||1947}} | HMCS (1947) | Template:Ship/sandbox |
C. format=1 | {{HMCS|Abegweit||1}} | [[HMCS Abegweit|]] | Template:Ship/sandbox |
D. format=2 | {{HMCS|Abegweit||2}} | Abegweit | Template:Ship/sandbox |
E. format=3 | {{HMCS|Abegweit||3}} | Abegweit | Template:Ship/sandbox |
F. format=4 | {{HMCS|Abegweit||4}} | HMCS Abegweit | Template:Ship/sandbox |
G. format=5 | {{HMCS|Abegweit||5}} | HMCS | Template:Ship/sandbox |
H. format=6 | {{HMCS|Abegweit||6}} | HMCS Abegweit | Template:Ship/sandbox |