From Wikipedia, the free encyclopedia
Recent proposals and tests are discussed at the talkpage.
- Note that error messages & warnings are shown in Preview only.
- Category:WPSHIPS: Template Ship parameter errors (4). Includes warnings. Purge
- Category:Pages using Ship with unknown parameters (1). Purge
- The default, and the
|4=
format options
- The default, and the
|4=
format options
Row id
|
Template usage
|
Live version
|
Sandbox version
|
A. (no settings)
|
{{ship|HMCS|Kootenay|H75|wl=no}}
|
HMCS Kootenay (H75)
|
HMCS Kootenay (H75)
|
B. format = (blank), (absent)
|
{{ship|HMCS|Kootenay|H75|wl=no}}
|
HMCS Kootenay (H75)
|
HMCS Kootenay (H75)
|
C. format=1
|
{{ship|HMCS|Kootenay|H75|1|wl=no}}
|
H75
|
H75
|
D. format=2
|
{{ship|HMCS|Kootenay|H75|2|wl=no}}
|
Kootenay
|
Kootenay
|
E. format=3
|
{{ship|HMCS|Kootenay|H75|3|wl=no}}
|
Kootenay (H75)
|
Kootenay (H75)
|
F. format=4
|
{{ship|HMCS|Kootenay|H75|4|wl=no}}
|
Error: {{Ship}} invalid control parameter: 4 (help)
|
Error: {{Ship}} invalid control parameter: 4 (help)
|
G. format=5
|
{{ship|HMCS|Kootenay|H75|5|wl=no}}
|
HMCS H75
|
HMCS H75
|
H. format=6
|
{{ship|HMCS|Kootenay|H75|6|wl=no}}
|
HMCS Kootenay
|
HMCS Kootenay
|
- The default, and the
|4=
format options
- The default, and the
|4=
format options
Parameter up=yes, no, (blank), (omitted)
[edit]
|up=
(up="unlink prefix")
- See also Template:Ship/testcases2 for testing
|wl=no
. -DePiep (talk) 13:03, 30 July 2018 (UTC)
up=(omitted) or (blank)
[edit]
|up=
omitted
- 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}}
|
H75
|
H75
|
B.
|
{{ship|HMCS|Kootenay|H75|1|up=True}}
|
H75
|
H75
|
C. format=1
|
{{ship|HMCS|Kootenay|H75|1|up=1}}
|
H75
|
H75
|
- error v2017: *any* input for
|up=
is reads "yes"
- 2018: only
|up=yes, y, true, 1
= yes (lc or uc)
- 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
Missing parameters 1, 2, 3
[edit]
- 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}}.
Row id
|
Template usage
|
Live version
|
Sandbox version
|
A. (no settings)
|
{{ship|HMCS||H75}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
B. format = (blank), (absent)
|
{{ship|HMCS||H75}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
C. format=1
|
{{ship|HMCS||H75|1}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
D. format=2
|
{{ship|HMCS||H75|2}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
E. format=3
|
{{ship|HMCS||H75|3}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
F. format=4
|
{{ship|HMCS||H75|4}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
G. format=5
|
{{ship|HMCS||H75|5}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
H. format=6
|
{{ship|HMCS||H75|6}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
Row id
|
Template usage
|
Live version
|
Sandbox version
|
A. (no settings)
|
{{ship|HMCS|Kootenay}}
|
HMCS Kootenay
|
HMCS Kootenay
|
B. format = (blank), (absent); 3= present but empty
|
{{ship|HMCS|Kootenay|}}
|
HMCS Kootenay
|
HMCS Kootenay
|
C. format=1
|
{{ship|HMCS|Kootenay||1}}
|
Error: {{Ship}} missing disambiguator (help)
|
Error: {{Ship}} missing disambiguator (help)
|
D. format=2
|
{{ship|HMCS|Kootenay||2}}
|
Kootenay
|
Kootenay
|
E. format=3
|
{{ship|HMCS|Kootenay||3}}
|
Error: {{Ship}} missing disambiguator (help)
|
Error: {{Ship}} missing disambiguator (help)
|
F. format=4
|
{{ship|HMCS|Kootenay||4}}
|
Error: {{Ship}} invalid control parameter: 4 (help)
|
Error: {{Ship}} invalid control parameter: 4 (help)
|
G. format=5
|
{{ship|HMCS|Kootenay||5}}
|
Error: {{Ship}} missing disambiguator (help)
|
Error: {{Ship}} missing disambiguator (help)
|
H. format=6
|
{{ship|HMCS|Kootenay||6}}
|
HMCS Kootenay
|
HMCS Kootenay
|
Row id
|
Template usage
|
Live version
|
Sandbox version
|
A. (no settings)
|
{{ship|||H75}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
B. (4=present but empty)
|
{{ship|||H75|}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
C. format=1
|
{{ship|||H75|1}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
D. format=2
|
{{ship|||H75|2}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
E. format=3
|
{{ship|||H75|3}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
F. format=4
|
{{ship|||H75|4}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
G. format=5
|
{{ship|||H75|5}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
H. format=6
|
{{ship|||H75|6}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
Row id
|
Template usage
|
Live version
|
Sandbox version
|
A. (no settings) 3= omitted
|
{{ship||Kootenay}}
|
Kootenay
|
Kootenay
|
B. format = (blank), (absent) 3= present but empty
|
{{ship||Kootenay|}}
|
Kootenay
|
Kootenay
|
C. format=1
|
{{ship||Kootenay||1}}
|
Error: {{Ship}} missing disambiguator (help)
|
Error: {{Ship}} missing disambiguator (help)
|
D. format=2
|
{{ship||Kootenay||2}}
|
Kootenay
|
Kootenay
|
E. format=3
|
{{ship||Kootenay||3}}
|
Error: {{Ship}} missing disambiguator (help)
|
Error: {{Ship}} missing disambiguator (help)
|
F. format=4
|
{{ship||Kootenay||4}}
|
Error: {{Ship}} invalid control parameter: 4 (help)
|
Error: {{Ship}} invalid control parameter: 4 (help)
|
G. format=5
|
{{ship||Kootenay||5}}
|
Error: {{Ship}} missing disambiguator (help)
|
Error: {{Ship}} missing disambiguator (help)
|
H. format=6
|
{{ship||Kootenay||6}}
|
Error: {{Ship}} missing prefix (help)
|
Error: {{Ship}} missing prefix (help)
|
- Note: Kootenay is a DAB
Row id
|
Template usage
|
Live version
|
Sandbox version
|
A. (no settings) 3= omitted
|
{{ship|HMCS|}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
B. format = (blank), (absent) 3= present but empty
|
{{ship|HMCS||}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
C. format=1
|
{{ship|HMCS|||1}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
D. format=2
|
{{ship|HMCS|||2}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
E. format=3
|
{{ship|HMCS|||3}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
F. format=4
|
{{ship|HMCS|||4}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
G. format=5
|
{{ship|HMCS|||5}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
H. format=6
|
{{ship|HMCS|||6|}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} 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)
|
- German submarine U-238
- Hull number entered as ship's base name
- {{ship|German submarine|U-238||}}
- No ship base name, hull number entered in parameter position 3
- {{ship|German submarine||U-238}}
Row id
|
Template usage
|
Live version
|
Sandbox version
|
A. (no settings)
|
{{ship|German submarine||U-238}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
B. format = (blank), (absent)
|
{{ship|German submarine||U-238}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
C. format=1
|
{{ship|German submarine||U-238|1}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
D. format=2
|
{{ship|German submarine||U-238|2}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
E. format=3
|
{{ship|German submarine||U-238|3}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
F. format=4
|
{{ship|German submarine||U-238|4}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
G. format=5
|
{{ship|German submarine||U-238|5}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
H. format=6
|
{{ship|German submarine||U-238|6}}
|
Error: {{Ship}} missing name (help)
|
Error: {{Ship}} missing name (help)
|
|4=
should be 1, 2, 3, 4, 5, 6, (blank)
.
Row id
|
Template usage
|
Live version
|
Sandbox version
|
A. (no settings)
|
{{ship|HMCS|Kootenay|H75}}
|
HMCS Kootenay (H75)
|
HMCS Kootenay (H75)
|
B. format = (blank), (absent)
|
{{ship|HMCS|Kootenay|H75}}
|
HMCS Kootenay (H75)
|
HMCS Kootenay (H75)
|
C. format=1q
|
{{ship|HMCS|Kootenay|H75|1q}}
|
Error: {{Ship}} invalid control parameter: 1q (help)
|
Error: {{Ship}} invalid control parameter: 1q (help)
|
D. format=2q
|
{{ship|HMCS|Kootenay|H75|2q}}
|
Error: {{Ship}} invalid control parameter: 2q (help)
|
Error: {{Ship}} invalid control parameter: 2q (help)
|
E. format=foo
|
{{ship|HMCS|Kootenay|H75|foo}}
|
Error: {{Ship}} invalid control parameter: foo (help)
|
Error: {{Ship}} invalid control parameter: foo (help)
|
F. format=b4
|
{{ship|HMCS|Kootenay|H75|b4}}
|
Error: {{Ship}} invalid control parameter: b4 (help)
|
Error: {{Ship}} invalid control parameter: b4 (help)
|
G. format=f5
|
{{ship|HMCS|Kootenay|H75|f5}}
|
Error: {{Ship}} invalid control parameter: f5 (help)
|
Error: {{Ship}} invalid control parameter: f5 (help)
|
H. format=j6
|
{{ship|HMCS|Kootenay|H75|j6}}
|
Error: {{Ship}} invalid control parameter: j6 (help)
|
Error: {{Ship}} invalid control parameter: j6 (help)
|
X. format=7
|
{{ship|HMCS|Kootenay|H75|7}}
|
Error: {{Ship}} invalid control parameter: 7 (help)
|
Error: {{Ship}} invalid control parameter: 7 (help)
|
- (hull number missing)
Row id
|
Template usage
|
Live version
|
Sandbox version
|
A. (no settings)
|
{{ship|HMCS|Kootenay|}}
|
HMCS Kootenay
|
HMCS Kootenay
|
B. format = (blank), (absent)
|
{{ship|HMCS|Kootenay|}}
|
HMCS Kootenay
|
HMCS Kootenay
|
C. format=1q
|
{{ship|HMCS|Kootenay||1q}}
|
Error: {{Ship}} invalid control parameter: 1q (help)
|
Error: {{Ship}} invalid control parameter: 1q (help)
|
D. format=2q
|
{{ship|HMCS|Kootenay||2q}}
|
Error: {{Ship}} invalid control parameter: 2q (help)
|
Error: {{Ship}} invalid control parameter: 2q (help)
|
E. format=foo
|
{{ship|HMCS|Kootenay||foo}}
|
Error: {{Ship}} invalid control parameter: foo (help)
|
Error: {{Ship}} invalid control parameter: foo (help)
|
F. format=b4
|
{{ship|HMCS|Kootenay||b4}}
|
Error: {{Ship}} invalid control parameter: b4 (help)
|
Error: {{Ship}} invalid control parameter: b4 (help)
|
G. format=f5
|
{{ship|HMCS|Kootenay||f5}}
|
Error: {{Ship}} invalid control parameter: f5 (help)
|
Error: {{Ship}} invalid control parameter: f5 (help)
|
H. format=j6
|
{{ship|HMCS|Kootenay||j6}}
|
Error: {{Ship}} invalid control parameter: j6 (help)
|
Error: {{Ship}} invalid control parameter: j6 (help)
|
X. format=7
|
{{ship|HMCS|Kootenay||7}}
|
Error: {{Ship}} invalid control parameter: 7 (help)
|
Error: {{Ship}} 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
Testing prefix shortcut template
[edit]
{{HMCS/sandbox}} uses {{Ship/sandbox}}
Row id
|
Template usage
|
Live version
|
Sandbox version
|
A. (no settings)
|
{{HMCS|Kootenay|H75}}
|
HMCS Kootenay (H75)
|
HMCS Kootenay (H75)
|
B. format = (blank), (absent)
|
{{HMCS||H75}}
|
Error: {{HMCS}} missing name (help)
|
Error: {{HMCS}} missing name (help)
|
C. format=1
|
{{HMCS|Kootenay||1}}
|
Error: {{HMCS}} missing disambiguator (help)
|
Error: {{HMCS}} missing disambiguator (help)
|
D. format=2
|
{{HMCS|Kootenay||2}}
|
Kootenay
|
Kootenay
|
E. format=3
|
{{HMCS|Kootenay||3}}
|
Error: {{HMCS}} missing disambiguator (help)
|
Error: {{HMCS}} missing disambiguator (help)
|
F. format=4
|
{{HMCS|Kootenay||4}}
|
Error: {{HMCS}} invalid control parameter: 4 (help)
|
Error: {{HMCS}} invalid control parameter: 4 (help)
|
G. format=5
|
{{HMCS|Kootenay||5}}
|
Error: {{HMCS}} missing disambiguator (help)
|
Error: {{HMCS}} missing disambiguator (help)
|
H. format=6
|
{{HMCS|Kootenay||6}}
|
HMCS Kootenay
|
HMCS Kootenay
|
Olau Line
- MS/sandbox (edit · t · history · diff · links · /test · Source · e · t · hist · links · /subpages · /doc · /doc edit)
- Article title does not have a slash: MS Olau Hollandia (1981)