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: |
Recent proposals and tests are discussed at the talkpage.
- Category:WPSHIPS: Template Ship parameter errors (0). Includes warnings. Script error: No such module "Purge".
- Category:Pages using Ship with unknown parameters (0). Script error: No such module "Purge".
Contents
The default
- The default, and the
|4=format options
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{ship|HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|Kootenay|H75|1}} | H75 | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS|Kootenay|H75|2}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{ship|HMCS|Kootenay|H75|3}} | Kootenay (H75) | Template:Ship/sandbox |
| F. format=4 | {{ship|HMCS|Kootenay|H75|4}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| G. format=5 | {{ship|HMCS|Kootenay|H75|5}} | HMCS H75 | Template:Ship/sandbox |
| H. format=6 | {{ship|HMCS|Kootenay|H75|6}} | HMCS Kootenay | Template:Ship/sandbox |
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) | {{ship|HMCS|Kootenay|H75|up=}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS|Kootenay|H75|up=}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|Kootenay|H75|1|up=}} | H75 | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS|Kootenay|H75|2|up=}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{ship|HMCS|Kootenay|H75|3|up=}} | Kootenay (H75) | Template:Ship/sandbox |
| F. format=4 | {{ship|HMCS|Kootenay|H75|4|up=}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| G. format=5 | {{ship|HMCS|Kootenay|H75|5|up=}} | HMCS H75 | Template:Ship/sandbox |
| H. format=6 | {{ship|HMCS|Kootenay|H75|6|up=}} | HMCS Kootenay | Template:Ship/sandbox |
|up= omitted
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{ship|HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|Kootenay|H75|1}} | H75 | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS|Kootenay|H75|2}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{ship|HMCS|Kootenay|H75|3}} | Kootenay (H75) | Template:Ship/sandbox |
| F. format=4 | {{ship|HMCS|Kootenay|H75|4}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| G. format=5 | {{ship|HMCS|Kootenay|H75|5}} | HMCS H75 | Template:Ship/sandbox |
| H. format=6 | {{ship|HMCS|Kootenay|H75|6}} | HMCS Kootenay | Template:Ship/sandbox |
up=yes
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{ship|HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS|Kootenay|H75|up=yes}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|Kootenay|H75|1|up=yes}} | HMCS H75 | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS|Kootenay|H75|2|up=yes}} | HMCS Kootenay | Template:Ship/sandbox |
| E. format=3 | {{ship|HMCS|Kootenay|H75|3|up=yes}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| F. format=4 | {{ship|HMCS|Kootenay|H75|4|up=yes}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| G. format=5 | {{ship|HMCS|Kootenay|H75|5|up=yes}} | HMCS HMCS H75 | Template:Ship/sandbox |
| H. format=6 | {{ship|HMCS|Kootenay|H75|6|up=yes}} | HMCS Kootenay | Template:Ship/sandbox |
- Also when
|up=Y,|up=True,|up=1:|up=yes
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. | {{ship|HMCS|Kootenay|H75|1|up=Y}} | HMCS H75 | Template:Ship/sandbox |
| B. | {{ship|HMCS|Kootenay|H75|1|up=True}} | HMCS H75 | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|Kootenay|H75|1|up=1}} | HMCS H75 | Template:Ship/sandbox |
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) | {{ship|HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS|Kootenay|H75|up=no}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|Kootenay|H75|1|up=no}} | H75 | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS|Kootenay|H75|2|up=no}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{ship|HMCS|Kootenay|H75|3|up=no}} | Kootenay (H75) | Template:Ship/sandbox |
| F. format=4 | {{ship|HMCS|Kootenay|H75|4|up=no}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| G. format=5 | {{ship|HMCS|Kootenay|H75|5|up=no}} | HMCS H75 | Template:Ship/sandbox |
| H. format=6 | {{ship|HMCS|Kootenay|H75|6|up=no}} | HMCS Kootenay | Template:Ship/sandbox |
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=gobbledeegoball the rest: categorise and up for editing
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{ship|HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS|Kootenay|H75|up=foo}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|Kootenay|H75|1|up=foo}} | H75 | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS|Kootenay|H75|2|up=foo}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{ship|HMCS|Kootenay|H75|3|up=foo}} | Kootenay (H75) | Template:Ship/sandbox |
| F. format=4 | {{ship|HMCS|Kootenay|H75|4|up=foo}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| G. format=5 | {{ship|HMCS|Kootenay|H75|5|up=foo}} | HMCS H75 | Template:Ship/sandbox |
| H. format=6 | {{ship|HMCS|Kootenay|H75|6|up=foo}} | HMCS Kootenay | Template:Ship/sandbox |
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||Kootenay|H75}} | Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship||Kootenay|H75}} | Kootenay (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship||Kootenay|H75|1}} | H75 | Template:Ship/sandbox |
| D. format=2 | {{ship||Kootenay|H75|2}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{ship||Kootenay|H75|3}} | Kootenay (H75) | Template:Ship/sandbox |
| F. format=4 | {{ship||Kootenay|H75|4}} | Kootenay (H75) | Template:Ship/sandbox |
| G. format=5 | {{ship||Kootenay|H75|5}} | H75 | Template:Ship/sandbox |
| H. format=6 | {{ship||Kootenay|H75|6}} | Kootenay | Template:Ship/sandbox |
missing para 2
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{ship|HMCS||H75}} | HMCS (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS||H75}} | HMCS (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS||H75|1}} | H75 | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS||H75|2}} | [[HMCS (H75)|]] | Template:Ship/sandbox |
| E. format=3 | {{ship|HMCS||H75|3}} | (H75) | Template:Ship/sandbox |
| F. format=4 | {{ship|HMCS||H75|4}} | HMCS (H75) | Template:Ship/sandbox |
| G. format=5 | {{ship|HMCS||H75|5}} | HMCS H75 | Template:Ship/sandbox |
| H. format=6 | {{ship|HMCS||H75|6}} | HMCS | Template:Ship/sandbox |
missing para 3
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{ship|HMCS|Kootenay}} | HMCS Kootenay | Template:Ship/sandbox |
| B. format = (blank), (absent); 3= present but empty | {{ship|HMCS|Kootenay|}} | HMCS Kootenay | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|Kootenay||1}} | [[HMCS Kootenay|]] | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS|Kootenay||2}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{ship|HMCS|Kootenay||3}} | Kootenay | Template:Ship/sandbox |
| F. format=4 | {{ship|HMCS|Kootenay||4}} | HMCS Kootenay | Template:Ship/sandbox |
| G. format=5 | {{ship|HMCS|Kootenay||5}} | HMCS | Template:Ship/sandbox |
| H. format=6 | {{ship|HMCS|Kootenay||6}} | HMCS Kootenay | Template:Ship/sandbox |
missing para 1, 2
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{ship|||H75}} | (H75) | Template:Ship/sandbox |
| B. (4=present but empty) | {{ship|||H75|}} | (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship|||H75|1}} | H75 | Template:Ship/sandbox |
| D. format=2 | {{ship|||H75|2}} | [[ (H75)|]] | Template:Ship/sandbox |
| E. format=3 | {{ship|||H75|3}} | (H75) | Template:Ship/sandbox |
| F. format=4 | {{ship|||H75|4}} | (H75) | Template:Ship/sandbox |
| G. format=5 | {{ship|||H75|5}} | H75 | Template:Ship/sandbox |
| H. format=6 | {{ship|||H75|6}} | [[ (H75)|]] | Template:Ship/sandbox |
missing para 1, 3
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) 3= omitted | {{ship||Kootenay}} | Kootenay | Template:Ship/sandbox |
| B. format = (blank), (absent) 3= present but empty | {{ship||Kootenay|}} | Kootenay | Template:Ship/sandbox |
| C. format=1 | {{ship||Kootenay||1}} | [[Kootenay|]] | Template:Ship/sandbox |
| D. format=2 | {{ship||Kootenay||2}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{ship||Kootenay||3}} | Kootenay | Template:Ship/sandbox |
| F. format=4 | {{ship||Kootenay||4}} | Kootenay | Template:Ship/sandbox |
| G. format=5 | {{ship||Kootenay||5}} | Template:Ship/sandbox | |
| H. format=6 | {{ship||Kootenay||6}} | Kootenay | Template:Ship/sandbox |
- Note: Kootenay is a DAB
missing para 2, 3
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) 3= omitted | {{ship|HMCS|}} | HMCS | Template:Ship/sandbox |
| B. format = (blank), (absent) 3= present but empty | {{ship|HMCS||}} | HMCS | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|||1}} | [[HMCS |]] | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS|||2}} | [[HMCS |]] | Template:Ship/sandbox |
| E. format=3 | {{ship|HMCS|||3}} | [[HMCS |]] | Template:Ship/sandbox |
| F. format=4 | {{ship|HMCS|||4}} | HMCS | Template:Ship/sandbox |
| G. format=5 | {{ship|HMCS|||5}} | HMCS | Template:Ship/sandbox |
| H. format=6 | {{ship|HMCS|||6|}} | HMCS | Template:Ship/sandbox |
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) | {{ship|HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| C. format=1q | {{ship|HMCS|Kootenay|H75|1q}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| D. format=2q | {{ship|HMCS|Kootenay|H75|2q}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| E. format=foo | {{ship|HMCS|Kootenay|H75|foo}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| F. format=b4 | {{ship|HMCS|Kootenay|H75|b4}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| G. format=f5 | {{ship|HMCS|Kootenay|H75|f5}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| H. format=j6 | {{ship|HMCS|Kootenay|H75|j6}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| X. format=7 | {{ship|HMCS|Kootenay|H75|7}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
- (hull number missing)
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{ship|HMCS|Kootenay|}} | HMCS Kootenay | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS|Kootenay|}} | HMCS Kootenay | Template:Ship/sandbox |
| C. format=1q | {{ship|HMCS|Kootenay||1q}} | HMCS Kootenay | Template:Ship/sandbox |
| D. format=2q | {{ship|HMCS|Kootenay||2q}} | HMCS Kootenay | Template:Ship/sandbox |
| E. format=foo | {{ship|HMCS|Kootenay||foo}} | HMCS Kootenay | Template:Ship/sandbox |
| F. format=b4 | {{ship|HMCS|Kootenay||b4}} | HMCS Kootenay | Template:Ship/sandbox |
| G. format=f5 | {{ship|HMCS|Kootenay||f5}} | HMCS Kootenay | Template:Ship/sandbox |
| H. format=j6 | {{ship|HMCS|Kootenay||j6}} | HMCS Kootenay | Template:Ship/sandbox |
| X. format=7 | {{ship|HMCS|Kootenay||7}} | HMCS Kootenay | Template:Ship/sandbox |
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 HMCS Kootenay (H75) links to ...
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{ship|HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS|Kootenay|H75|page=HMS Belfast (C35)}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|Kootenay|H75|1|page=HMS Belfast (C35)}} | H75 | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS|Kootenay|H75|2|page=HMS Belfast (C35)}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{ship|HMCS|Kootenay|H75|3|page=HMS Belfast (C35)}} | Kootenay (H75) | Template:Ship/sandbox |
| F. format=4 | {{ship|HMCS|Kootenay|H75|4|page=HMS Belfast (C35)}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| G. format=5 | {{ship|HMCS|Kootenay|H75|5|page=HMS Belfast (C35)}} | HMCS H75 | Template:Ship/sandbox |
| H. format=6 | {{ship|HMCS|Kootenay|H75|6|page=HMS Belfast (C35)}} | HMCS Kootenay | Template:Ship/sandbox |
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 | {{ship|HMCS|Kootenay|H75||}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| A. | {{ship|HMCS|Kootenay|H75||five}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{ship|HMCS|Kootenay|H75|up=yes|||six}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| C. format=1 | {{ship|HMCS|Kootenay|H75|up=yes|4||six}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| D. format=2 | {{ship|HMCS|Kootenay|H75|up=yes|4|bar=99}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
Testing prefix shortcut template
{{HMCS/sandbox}} uses {{Ship/sandbox}}
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| C. format=1 | {{HMCS|Kootenay|H75|1}} | H75 | Template:Ship/sandbox |
| D. format=2 | {{HMCS|Kootenay|H75|2}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{HMCS|Kootenay|H75|3}} | Kootenay (H75) | Template:Ship/sandbox |
| F. format=4 | {{HMCS|Kootenay|H75|4}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| G. format=5 | {{HMCS|Kootenay|H75|5}} | HMCS H75 | Template:Ship/sandbox |
| H. format=6 | {{HMCS|Kootenay|H75|6}} | HMCS Kootenay | Template:Ship/sandbox |
| Row id | Template usage | Live version | Sandbox version |
|---|---|---|---|
| A. (no settings) | {{HMCS|Kootenay|H75}} | HMCS Kootenay (H75) | Template:Ship/sandbox |
| B. format = (blank), (absent) | {{HMCS||H75}} | HMCS (H75) | Template:Ship/sandbox |
| C. format=1 | {{HMCS|Kootenay||1}} | [[HMCS Kootenay|]] | Template:Ship/sandbox |
| D. format=2 | {{HMCS|Kootenay||2}} | Kootenay | Template:Ship/sandbox |
| E. format=3 | {{HMCS|Kootenay||3}} | Kootenay | Template:Ship/sandbox |
| F. format=4 | {{HMCS|Kootenay||4}} | HMCS Kootenay | Template:Ship/sandbox |
| G. format=5 | {{HMCS|Kootenay||5}} | HMCS | Template:Ship/sandbox |
| H. format=6 | {{HMCS|Kootenay||6}} | HMCS Kootenay | Template:Ship/sandbox |