Jump to content

Template talk:Infobox ship begin: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
→‎DISPLAYTITLE issue: I have created phab:T328198: "Namespace should be optional in DISPLAYTITLE"
Line 81: Line 81:
::Over a year ago so not really relevent anymore, but I'm assuming I saw the code but was wondering why it was coded badly like that. There are many ways to italic a title without also casuing the namespace to be in italics. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 16:05, 3 February 2023 (UTC)
::Over a year ago so not really relevent anymore, but I'm assuming I saw the code but was wondering why it was coded badly like that. There are many ways to italic a title without also casuing the namespace to be in italics. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 16:05, 3 February 2023 (UTC)
:::{{ping|Gonnym}} The template uses [[Module:WPSHIPS utilities#ship_name_format]] with non-trivial features to automatically italicize part of a ship name, e.g. <code><nowiki>{{#invoke:WPSHIPS_utilities|ship_name_format|name=HMS Dreadnought (1906)}}</nowiki></code> to make {{#invoke:WPSHIPS_utilities|ship_name_format|name=HMS Dreadnought (1906)}}. We don't want to reinvent the wheel here so it would be much better to just put NAMESPACE in front than trying to use other methods like {{tl|italic title}}. It's a common error to omit the namespace when DISPLAYTITLE is used outside mainspace. I have created [[phab:T328198]]: "Namespace should be optional in DISPLAYTITLE". [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 16:31, 3 February 2023 (UTC)
:::{{ping|Gonnym}} The template uses [[Module:WPSHIPS utilities#ship_name_format]] with non-trivial features to automatically italicize part of a ship name, e.g. <code><nowiki>{{#invoke:WPSHIPS_utilities|ship_name_format|name=HMS Dreadnought (1906)}}</nowiki></code> to make {{#invoke:WPSHIPS_utilities|ship_name_format|name=HMS Dreadnought (1906)}}. We don't want to reinvent the wheel here so it would be much better to just put NAMESPACE in front than trying to use other methods like {{tl|italic title}}. It's a common error to omit the namespace when DISPLAYTITLE is used outside mainspace. I have created [[phab:T328198]]: "Namespace should be optional in DISPLAYTITLE". [[User:PrimeHunter|PrimeHunter]] ([[User talk:PrimeHunter|talk]]) 16:31, 3 February 2023 (UTC)

== Concurrent Classes ==

The class overview template has standard "'''Preceded by'''" and "'''Succeeded by'''" ("Class before" and "Class after") to show the development of particular classes. However, in some cases multiple classes were built concurrently for different reasons, enough that a third line for concurrent classes should be added.

The clearest modern example are the US Littoral Combat Ships. Both classes were ordered and are being built concurrently, with the ''Freedom''-class receiving odd hull numbers and the ''Independence'' class evens. Another would be the British Type 26 and Type 31 frigates: the orders were for three Type 26s in 2017, five Type 31s in 2018, and then five more Type 26s in 2022 (Royal Navy specific), with both classes being built concurrently by different yards. The ''Benson''-class destroyer was not succeeded by the ''Gleaves''-class, they were ordered and built concurrently with different shipyards building different classes (primarily Bethlehem yards building the ''Benson''s, particularly the repeat ships). US Destroyer Escorts of WWII were not ordered/produced in the ''Evarts''->''Buckley''->''Cannon''->''Edsall''->''Rudderow''->''John C. Butler'' order implied by the '''Preceded/Succeeded By'''s (in turn implied by the hull number of the lead ships), they were ordered/built as follows:

1. First 50 ''Evarts''-class ordered under a British contract in late 1941

2. Another 70 ''Evarts''-class along with 600, ''Buckley''s, ''Cannon''s, and ''Edsall''s ordered and built concurrently (classes mainly distinguished by different propulsion plants) ordered in early/mid 1942

3. ''Rudderow'' and ''John C. Butler'' re-ordered from 3" designs in late 1942/early 1943 and built concurrently (followed by a short-lived order for 205 ships)

These are just particularly obvious examples for ships of the same type built at the same time by the same nation. There are more examples, particularly if you start considering ships with the same official classification but different capabilities. Germany built a few different types of U-boats concurrently, but the bulk of their production were the Type VII medium-range and the Type IX long-range submarines (with some specialized boats). This is a grey area, and I have deliberately chosen an example that in my opinion should be included as concurrent classes, but other examples would likely not be suitable (continuing the theme, the specialized Type XB and XIV classes).

These are sometimes noted by the '''Preceded/Succeeded By'''s. For example, the [[Type 23 frigate]] lists the Types 26, 31, and 32 as ships that will succeed this frigate, but the Type 26 and Type 31 pages don't mention the others in the Class Overview template (except the in-development Type 32 that may succeed the Type 31). The three pages make it clear that the ''Constellation''-class was preceded by the ''Freedom'' and ''Independence'' classes, but neither LCS page notes the other concurrently in the Class Overview template. Others, particularly the WWII destroyer escorts, don't mention this at all and as it currently exists gives an incorrect view of progression between the classes.

Currently the best attempts to recognize the differences would be the [[Type VII Submarine|Type VII U-boat]]. The Type VII page has the Type IX listed as a succeeding class, but as "Type IX (long-range complement)" (this is not mirrored on the Type IX page). It's clunky and works if there were a handful of cases (like the Type XXI page), but it's not as useful for a larger scale.

Given the number of examples I believe we should add a third group to formalize the concurrent classes, along with rules about when this should and should not be used to clear up the grey area.

[[User:Beachedwhale1945|Beachedwhale1945]] ([[User talk:Beachedwhale1945|talk]]) 14:07, 18 May 2023 (UTC)

Revision as of 14:07, 18 May 2023

WikiProject iconShips Template‑class
WikiProject iconThis template is within the scope of WikiProject Ships, a project to improve all Ship-related articles. If you would like to help improve this and other articles, please join the project, or contribute to the project discussion. All interested editors are welcome. To use this banner, please see the full instructions.WikiProject icon
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

Remove colons, add bolding

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Proposal:

  1. Each field follows with a colon (:). These should be removed (as with all other infoboxes on Wikipedia).
  2. Each field item should be in bold (as with all other infoboxes on Wikipedia).

--Goldsztajn (talk) 15:16, 23 April 2020 (UTC)[reply]

 Not done for now: please establish a consensus for this alteration before using the {{edit template-protected}} template. This would be a major change to this set of templates. Discussion is needed. – Jonesey95 (talk) 15:30, 23 April 2020 (UTC)[reply]
The issue of bolding was raised almost two years ago, but left undiscussed. Hopefully, discussion is possible this time. --Goldsztajn (talk) 15:37, 23 April 2020 (UTC)[reply]
As long as it doesn't break anything, I'm fine with this change that would improve visual consistency. Tupsumato (talk) 18:58, 23 April 2020 (UTC)[reply]

Reactivating request. I notified the Ships project of this request when I posted it two and half weeks ago. Essentially there has been no opposition to this request which was first suggested two years ago. Myself included, three editors have supported the change, would suggest a bold change now and allow for potential revert followed by discussion. Thank you, --Goldsztajn (talk) 11:14, 11 May 2020 (UTC)[reply]

 Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. — Martin (MSGJ · talk) 12:23, 11 May 2020 (UTC)[reply]
Template:Infobox_ship_begin/testcases
Trappist the monk (talk) 13:14, 11 May 2020 (UTC)[reply]
Looks fine by me.--Sturmvogel 66 (talk) 13:34, 11 May 2020 (UTC)[reply]
Trappist the monk Thumbs up icon.--Goldsztajn (talk) 14:42, 11 May 2020 (UTC)[reply]
Does that work normally with custom fields? Tupsumato (talk) 16:31, 11 May 2020 (UTC)[reply]
Custom fields have always been 'fully manual'; when creating a custom field, the creator has always been required to manually format the field heading and the rendered value so that the custom parts of an infobox have the same look as the automatically rendered parts. Instead of:
|-
|Custom field: || custom value
|-
the proposed change will, if implemented, require editors to write:
|-
|'''Custom field''' || custom value
|-
If implemented, existing custom fields will retain the previous form until acted upon by an editor.
Trappist the monk (talk) 16:57, 11 May 2020 (UTC)[reply]
Thanks for the clarification. Perhaps I'll manage to get rid of some unnecessary custom fields in my older contributions as I have to go through them... Tupsumato (talk) 05:51, 12 May 2020 (UTC)[reply]
What happened here everyone? Can we implement it now? —hueman1 (talk contributions) 07:19, 27 May 2021 (UTC)[reply]
The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

Adding prefixes for Iranian warships

Hi. Iranian warships use "IRIS" (standing for 'Islamic Republic of Iran Ship') prefix–IIS ('Imperial Iranian Ship') was used before 1979. Can someone please add these two to the template so that the title of Iranian warships get automatically stylized? I had this problem with Error: {{Ship}} invalid control parameter: 4 (help). Pahlevun (talk) 16:14, 28 July 2020 (UTC)[reply]

G'day, what are the reliable sources for this prefix? Thanks, Peacemaker67 (click to talk to me) 03:53, 30 July 2020 (UTC)[reply]
@Peacemaker67: IIS is cited by Jane's Fighting Ships published in 1979 (page 253). I found defpost.com, Oneindia and The Daily Mirror (Sri Lanka) for IRIS. There are also a couple of images available from writings on Iranian ships: IRIS Damavand IRIS Alborz, IRIS Bayandor. Pahlevun (talk) 16:37, 1 August 2020 (UTC)[reply]
If this is a valid ship prefix (I'm not yet convinced, but am open to the idea), do we need to create {{IRIS}} as a variant of {{Ship}}? Mjroots (talk) 19:17, 1 August 2020 (UTC)[reply]
@Mjroots: That would be a good idea, but Template:Iris is already taken. I guess you need more sources for IRIS, right? Are you convinced that IIS was a legit prefix for pre-1979 warships? Pahlevun (talk) 19:32, 1 August 2020 (UTC)[reply]
I found other sources for IRIS:

Pahlevun (talk) 19:42, 1 August 2020 (UTC)[reply]

Pahlevun and I have had several discussions about WP:COMMONNAME, him wondering whether 'Iranian Army' refers to land forces or all armed forces. In a similar manner, I must strongly stress that Jane's Fighting Ships is the absolute "gold standard" for WP:RELIABLESOURCES for warships, though clearly with its ex-Royal Navy editors it is biased towards the West. Thus "IIS" is unassailable, unless there are unimpeachable ex-IIN things saying otherwise. Actually as Mjroots is saying, we would like to see more official sources, in Farsi saying that the IRIS prefix is used in official communications. Kind regards Buckshot06 (talk) 03:57, 2 August 2020 (UTC)[reply]
Unfortunately, the official website of Islamic Republic of Iran Army and its service branches [4] is only available in Persian/Farsi, but official website of Sri Lanka Navy, official website of Indonesian Navy and official website of Indian Navy all have mentioned names of Iranian warships with the prefix 'IRIS'. Unlike English language, naval prefixes in Persian/Farsi are not abbreviations and they are in use as a full phrase: 'ناو جمهوری اسلامی ایران' (lit.'Islamic Republic of Iran Warship'). Examples are ناو جمهوری اسلامی ایران "دماوند" or ناو جمهوري اسلامي ايران (خارك). Pahlevun (talk) 13:15, 3 August 2020 (UTC)[reply]
@Buckshot06: Eureka! I found a recent news entry from janes.com that mentions both 'IRIS Alborz (72)' and 'IRIS Sahand (74)'. Pahlevun (talk) 13:16, 3 August 2020 (UTC)[reply]
In spite of the point that Jane's may be sufficient, I also found 'The Iranian Sea-Air-Missile Threat to Gulf Shipping' by Anthony H. Cordesman which mentions the prefix IRIS for a Bayandor-class corvette (page 114). Pahlevun (talk) 13:21, 3 August 2020 (UTC)[reply]
Great!! If it is "IRIW [Shipname]" in Farsi, even if not abbreviated, I think we can go with IRIS. Buckshot06 (talk) 22:49, 3 August 2020 (UTC)[reply]
This seems conclusive. Peacemaker67 (click to talk to me) 01:23, 7 August 2020 (UTC)[reply]

Spaces in parameter names

This has to be the first template I've come across which doesn't use underscores in parameter names. Took me a while to figure out why it wasn't accepting a parameter I added. Opencooper (talk) 21:29, 29 December 2020 (UTC)[reply]

DISPLAYTITLE issue

Why does Template:Infobox ship begin use the FULLPAGENAME as a parameter for DISPLAYTITLE instead of the PAGENAME? This causes draft pages like Draft:Mary Powell (steamboat) to place the "Draft:" also in italics. Gonnym (talk) 20:12, 9 January 2022 (UTC)[reply]

@Gonnym: It's done with:
{{DISPLAYTITLE:{{#invoke:WPSHIPS_utilities|ship_name_format|sclass={{{sclass|}}}|name={{FULLPAGENAME}}}}}}
A namespace has to be in DISPLAYTITLE to be valid. Otherwise the whole DISPLAYTITLE will be ignored. It looks like it could be fixed with:
{{DISPLAYTITLE:{{NAMESPACE}}:{{#invoke:WPSHIPS_utilities|ship_name_format|sclass={{{sclass|}}}|name={{PAGENAME}}}}}}
A colon in front of mainspace pages is allowed but not displayed by DISPLAYTITLE so we don't need code to omit the colon. PrimeHunter (talk) 15:12, 28 January 2023 (UTC)[reply]
Over a year ago so not really relevent anymore, but I'm assuming I saw the code but was wondering why it was coded badly like that. There are many ways to italic a title without also casuing the namespace to be in italics. Gonnym (talk) 16:05, 3 February 2023 (UTC)[reply]
@Gonnym: The template uses Module:WPSHIPS utilities#ship_name_format with non-trivial features to automatically italicize part of a ship name, e.g. {{#invoke:WPSHIPS_utilities|ship_name_format|name=HMS Dreadnought (1906)}} to make HMS Dreadnought (1906). We don't want to reinvent the wheel here so it would be much better to just put NAMESPACE in front than trying to use other methods like {{italic title}}. It's a common error to omit the namespace when DISPLAYTITLE is used outside mainspace. I have created phab:T328198: "Namespace should be optional in DISPLAYTITLE". PrimeHunter (talk) 16:31, 3 February 2023 (UTC)[reply]

Concurrent Classes

The class overview template has standard "Preceded by" and "Succeeded by" ("Class before" and "Class after") to show the development of particular classes. However, in some cases multiple classes were built concurrently for different reasons, enough that a third line for concurrent classes should be added.

The clearest modern example are the US Littoral Combat Ships. Both classes were ordered and are being built concurrently, with the Freedom-class receiving odd hull numbers and the Independence class evens. Another would be the British Type 26 and Type 31 frigates: the orders were for three Type 26s in 2017, five Type 31s in 2018, and then five more Type 26s in 2022 (Royal Navy specific), with both classes being built concurrently by different yards. The Benson-class destroyer was not succeeded by the Gleaves-class, they were ordered and built concurrently with different shipyards building different classes (primarily Bethlehem yards building the Bensons, particularly the repeat ships). US Destroyer Escorts of WWII were not ordered/produced in the Evarts->Buckley->Cannon->Edsall->Rudderow->John C. Butler order implied by the Preceded/Succeeded Bys (in turn implied by the hull number of the lead ships), they were ordered/built as follows:

1. First 50 Evarts-class ordered under a British contract in late 1941

2. Another 70 Evarts-class along with 600, Buckleys, Cannons, and Edsalls ordered and built concurrently (classes mainly distinguished by different propulsion plants) ordered in early/mid 1942

3. Rudderow and John C. Butler re-ordered from 3" designs in late 1942/early 1943 and built concurrently (followed by a short-lived order for 205 ships)

These are just particularly obvious examples for ships of the same type built at the same time by the same nation. There are more examples, particularly if you start considering ships with the same official classification but different capabilities. Germany built a few different types of U-boats concurrently, but the bulk of their production were the Type VII medium-range and the Type IX long-range submarines (with some specialized boats). This is a grey area, and I have deliberately chosen an example that in my opinion should be included as concurrent classes, but other examples would likely not be suitable (continuing the theme, the specialized Type XB and XIV classes).

These are sometimes noted by the Preceded/Succeeded Bys. For example, the Type 23 frigate lists the Types 26, 31, and 32 as ships that will succeed this frigate, but the Type 26 and Type 31 pages don't mention the others in the Class Overview template (except the in-development Type 32 that may succeed the Type 31). The three pages make it clear that the Constellation-class was preceded by the Freedom and Independence classes, but neither LCS page notes the other concurrently in the Class Overview template. Others, particularly the WWII destroyer escorts, don't mention this at all and as it currently exists gives an incorrect view of progression between the classes.

Currently the best attempts to recognize the differences would be the Type VII U-boat. The Type VII page has the Type IX listed as a succeeding class, but as "Type IX (long-range complement)" (this is not mirrored on the Type IX page). It's clunky and works if there were a handful of cases (like the Type XXI page), but it's not as useful for a larger scale.

Given the number of examples I believe we should add a third group to formalize the concurrent classes, along with rules about when this should and should not be used to clear up the grey area.

Beachedwhale1945 (talk) 14:07, 18 May 2023 (UTC)[reply]