Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a2350cdf6e8515db

Jump to content

Template talk:Sclass

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 2 months ago by DocWatson42 in topic Why no en dash in compound class names?

Wikipedia:Featured topics/König class battleships

[edit]

Not sure what, but something with this template has broken this Featured topic box. Harrias (he/him) • talk 13:36, 4 April 2023 (UTC)Reply

No. The template is not broken, the call to the template is broken: {{sclass|König|battleship|6}}. The value assigned to positional parameter 3 (6) is not a valid value (which is pretty much what the error message says). Choose an appropriate value. Did the help link not explain this well enough?
Trappist the monk (talk) 14:14, 4 April 2023 (UTC)Reply
Not my template, not my topic box. I saw it not working, assumed it had before, and so posted it here thinking it was a template issue. If someone has just screwed up the coding, fair enough. Harrias (he/him) • talk 21:39, 5 April 2023 (UTC)Reply

New value needed

[edit]

I went to edit the article Visby-class corvette, wherein I first encountered this template.

There is a punctuation error in the article, and the template's current options do not allow me to fix it (by adding a suspended hyphen). For the second sentence to be correct and in compliance with the Wikipedia Manual of Style (See MOS:SUSPENDED for details), it should read:

"...after the Göteborg- and Stockholm-class corvettes."

I would like to see an appropriate option added. Thanks! 1980fast (talk) 22:30, 30 August 2024 (UTC)Reply

I don't think that there is sufficient need to justify the work necessary to implement such a specialized option. You can do this:
It is the latest class of corvette adopted by the navy after the {{sclass|Göteborg|corvette|5}}- and {{sclass|Stockholm|corvette|0}} corvettes.
It is the latest class of corvette adopted by the navy after the Göteborg- and Stockholm-class corvettes.
Trappist the monk (talk) 00:58, 31 August 2024 (UTC)Reply
Indeed, much simpler. I clearly overthought it. Thanks! 1980fast (talk) 19:27, 31 August 2024 (UTC)Reply

Why no en dash in compound class names?

[edit]

Greetings and felicitations. In New Orleans-class the punctuation is a hyphen, instead of an en dash as per MOS:SUFFIXDASH. Why is this so? —DocWatson42 (talk) 13:02, 10 October 2024 (UTC)Reply

I am the victim of a series of dreadfully dreary and uninspiring English teachers so I can't answer definitively. The template as you wrote it:
{{Sclass|New Orleans|cruiser|0}}New Orleans-class
is the adjectival form that modifies the following ship-type noun. When used without a ship type, there should not be a hyphen between the class name and the word class:
{{Sclass|New Orleans|cruiser|4}}New Orleans class
Also, the hyphenated form matches the article title. If you want to change this template then you must also move the ~3500 articles to which it links – that's a very crude search so the article count could be way off.
Trappist the monk (talk) 14:40, 10 October 2024 (UTC)Reply
I'm sorry—I took that example from USS Wichita (CA-45), specifically the second sentence of the lede: "The last American cruiser designed to meet the limits of the London Naval Treaty, she was originally intended to be a New Orleans-class heavy cruiser". You can see in that case that the en dash is warranted, assuming the hyphen is correct in the first place. —DocWatson42 (talk) 12:17, 11 October 2024 (UTC)Reply
No, I cannot see in that case that the en dash is warranted, assuming the hyphen is correct in the first place. As I understand it, New Orleans-class is an adjectival noun modifying the heavy cruiser noun. In which case, also as I understand it, the hyphen is correct. But did you write what you meant to write? the en dash is warranted, [but] the hyphen is correct? You will probably need to find someone who was not the victim of piss-poor English teachers to definitively explain why we should or should not use en dash or hyphens in ship-class names. MOS:SUFFIXDASH is part of WP:MOS so perhaps start a discussion at WT:MOS. If you do, please post a link to that discussion here.
Trappist the monk (talk) 13:43, 11 October 2024 (UTC)Reply
See Hyphen#Prefixes and suffixes and en dash (specifically in this case Dash#Attributive_compounds) for usage. —DocWatson42 (talk) 14:46, 11 October 2024 (UTC)Reply
Bumping. See also:
What I want is an option to substitute an en dash for the hyphen in the adjectival form of the names of ship classes with compound names, please.
Also, I note that Wikipedia does have redirects, so moving, say, 3500 articles is unnecessary. If you want more references, I may be able to dig them up. —DocWatson42 (talk) 21:51, 31 December 2024 (UTC)Reply
Bumping, having run into the Harry DeWolf-class offshore patrol vessel, which should be rendered "Harry DeWolf–class offshore patrol vessel" (please). The rule is not that complicated. —DocWatson42 (talk) 19:58, 2 August 2025 (UTC)Reply
Bumping again, due the Oliver Hazard Perry class: "Oliver Hazard Perry–class" frigate. —DocWatson42 (talk) 11:58, 12 May 2026 (UTC)Reply

Collision between template output results and manual of style

[edit]

Hello,

at least the default behaviour of this template seems to collide with recommendations in the manual of style, section MOS:SEAOFBLUE, as it makes for two different wikilinks that are not visually distinguishable from one. Wouldn't it be sensible to make the "format 1" default and remove "format none" and "format 3" altogether? As a reader, I'm often somewhat bothered by not being able to tell whether you have 1, 2 or even 3 links in a blue string of words. Regards, Grand-Duc (talk) 21:31, 27 November 2024 (UTC)Reply

I keep running into this too —Opecuted (talk) 07:26, 29 December 2025 (UTC)Reply
have tried making format 1 default in the Sandbox (testcases page) Seems to be okay, but please review the code (at Module:WPSHIPS utilities/sandbox). —Opecuted (talk) 07:50, 29 December 2025 (UTC)Reply
Generally, the links are visually distinguishable, since one word is italicized and the other isn't, but even if that isn't sufficient for your taste, SEAOFBLUE doesn't prohibit adjacent links, it's just a recommendation. I don't see a reason to disable a feature on that basis. Adjacent links don't bother me in the slightest, so it would seem inappropriate to enforce one subjective viewpoint over another. Parsecboy (talk) 16:00, 1 January 2026 (UTC)Reply

Can someone explain how sclass and sclass2 connected to sclass/core

[edit]

Its seems both sclass and sclass2 directly calls module:WPSHIPS utilities without going through sclass/core. Am i missing something? Nimon didarul (talk) 11:50, 21 June 2025 (UTC)Reply

For {{sclass}} see this diff.
For {{sclass2}} see this diff.
{{sclass/core}} is no longer used so I shall delete it per WP:CSD#T5.
Trappist the monk (talk) 12:57, 21 June 2025 (UTC)Reply

"Description" column field for "format" parameter in "Template data" section

[edit]

In the "Template data" section, in the table labeled "Template parameters", the "Description" column field for the "format" parameter reads "Format options 1, 2, 3, 4, 5". Shouldn't the "Description" field include the value 0 as a valid option for the "format" parameter? RHodnett (talk) 01:53, 15 January 2026 (UTC)Reply