Template talk:Sclass
This is the talk page for discussing improvements to the Sclass template. |
|
Archives: 1Auto-archiving period: 4 months ![]() |
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
Not sure what, but something with this template has broken this Featured topic box. Harrias (he/him) • talk 13:36, 4 April 2023 (UTC)
- 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)
- 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)
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)
- 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)
- Indeed, much simpler. I clearly overthought it. Thanks! 1980fast (talk) 19:27, 31 August 2024 (UTC)
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)
- 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)
- 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)
- 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)
- 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)
- Bumping. See also:
- The Chicago Manual of Style, 17th Ed. (2017), §§6.80–6.81
- New Oxford Style Manual (2016), p. 86
- MLA Handbook, Ninth Ed. (2021), §2.48
- Publication Manual of the American Psychological Association, Sixth Ed. (2010), §4.13
- Words into Type (1948), p. 281 (I bought a cheap copy, not the latest—not that it there are many editions); 3rd ed. (1974) p. 211
- 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)
- Bumping. See also:
- 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)
- No, I cannot
- 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)
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)
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)
- 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)