Template talk:Ship

message: This template easily formats wikilinks to warship articles so as to synchronize Wikipedia's article titling policy with common body-text usage.  It cuts the amount of piping to a minimum, inserts italics in the appropriate place, and (arguably) makes deciphering the markup somewhat easier.
To insert a wikilink to warship, insert the below string:
 
For example, to create  (which is automatically linked to HMS Vanguard (S28)), insert
 
Or, to create  (linked to USS Nimitz (CVN-68)), insert
 
The Tom 17:14, 25 August 2005 (UTC)
thread_title:  Initial documentation 

message: Shouldn't this template be protected, since it is transcluded onto the main page? A•N•N•Afoxlover hello! 20:42, 29 March 2007 (UTC)
thread_title:  [[Main page]] usage 

message: You may want to use  or .  They are a bit shorter to type, and now offer some (optional) flexibilty about what to display.
   would be equal to .
It really gets shorter if you want to display the hull number, such as  from.
  
More reasoning on Template talk:USS. --J Clear 23:20, 22 April 2007 (UTC)
thread_title:  Alternatives 

message: In the example , the final '6' has meaning?  If so, what?
Yours utterly baffled.--Toddy1 20:42, 27 September 2007 (UTC)
replies: text: Option 6 looks like a feature used in  and , but not in this template.  --Kralizec! (talk) 00:51, 28 September 2007 (UTC)
thread_title:  Apparently Meaningless Terminal 6 

message: The question above from  got me thinking.  Could someone with a better understanding of template parser functions add some of the functionality of  and  into this template?  Specifically I feel the following optional display control parameters would be very useful (note that #6 below works as the default on HMS/USS, while option #6 on HMS/USS works as the default on ):
Template usage                                  	Equivalent wikicode                                                	Final result
	Petropavlovsk          	Petropavlovsk
                    	H75                                        	H75
                   	SMS Oldenburg (1910)                      	SMS Oldenburg (1910)
 	French submarine (S 611)	French submarine (S 611)
Thoughts?  Suggestions?  Volunteers?    --Kralizec! (talk) 01:35, 28 September 2007 (UTC)
thread_title:  Feature request 

message: I recently edited the Tribal class destroyer (1936) page to replace many confusing links to vessels with this template, however these were reverted shortly afterward and the editor pointed me toward the :Wikipedia:Transclusion costs and benefits while noting on my talk page that this template is too taxing for server processing.  Does anyone have any thoughts about this?  I would argue that the benefits of standardizing and simplifying links to articles on vessels, not to mention the kilobytes saved, would trump any minuscule increase in server effort....Thanks!  Plasma east 15:29, 16 November 2007 (UTC)
replies: text: If I may make a suggestion ... bring this up at the WP:SHIPS talk page.  That ways it will be seen by heaps more eyes!   --Kralizec! (talk) 15:38, 16 November 2007 (UTC)
thread_title: Transclusion cost/benefit?

message: Request that the line
-->]]</includeonly><noinclude>
be changed to read
-->]]</includeonly><noinclude>
This modification would make no visible change to the template's operation, but helps generate a list of occurrences of .  Cheers. HausTalk 19:12, 1 December 2008 (UTC)
replies: text: Actually, please use this version of the sandbox template (less the sandbox notice). It incorporates Haus' request plus additional code for tracking the parameters USS, HMS, HMAS, and HMNZS. I have tested the code on the testcases page. This version also eliminates the text that displays on the template page that is now superfluous with the current template documentaion. — Bellhalla (talk) 20:34, 1 December 2008 (UTC)
replies: text:  Done. --Kralizec! (talk) 22:46, 1 December 2008 (UTC)
thread_title:  Change request for parameter audit 

message: * HMAS
* HMCS
* HMNZS
* HMS
* USS
— Bellhalla (talk) 23:56, 1 December 2008 (UTC)
thread_title:  Links for parameter audits 

message: Please update the template to this version in the sandbox (less the sandbox template notice at the top). This eliminates the code snippet:
:
that was intended to track usage of this template with certain prefixes. Example: when USS is used as a prefix, the redlinked template  is transcluded, which, in theory, allows one to determine usage (by looking at "What links here" for use ). Then the specific  could be used instead of this, the more generic template. However, since  and others of the same functionality already themselves call , the redlinked template is called for all uses of the prefix whether through  or  making it impossible to determine which template was invoked, and making this bit of code unnecessary and needlessly complicating many pages. — Bellhalla (talk) 17:35, 26 January 2009 (UTC)
replies: text: Done, though if you look at the source code, does the sandbox notice need to be removed as well? Thanks, Woody (talk) 17:52, 26 January 2009 (UTC)
replies: text: Yes, it should. :) — Bellhalla (talk) 17:58, 26 January 2009 (UTC)
replies: text: Done, regards, Woody (talk) 18:18, 26 January 2009 (UTC)
thread_title:  Edit request 

message: Please replace this second line of the template code:
* -->[[ [[ 
replies: text: , regards, Woody (talk) 18:15, 18 February 2009 (UTC)
replies: text: Wow. That was fast. Thanks, Woody. — Bellhalla (talk) 18:18, 18 February 2009 (UTC)
thread_title:  Another edit request 

message: An editor recently accidentally put a space before the second parameter, as in . This resulted in an extra space being put between "battleship" and "Musashi." While I realize that the error is easily correctable, it would seem desirable to have the code self-correct such errors. Would it be possible for this template to ignore leading spaces in parameters? Mamyles (talk) 22:15, 5 March 2015 (UTC)
thread_title:  Ignore leading/trailing spaces in parameters 

message: * Zumwalt-class destroyer does not use a template in its lede. -DePiep (talk) 23:50, 2 March 2018 (UTC)
thread_title: Sclass

message: For the record. The module should notice (functional change).
* I have turned  into calling regular  code . As those other 50 ,  shortcuts do.
* Next to  I have created . The slash alters the label (what shows), but not the target page. There are seven slashed prefix templates like this.
Before today, the slash was a extra numbered option in  (8, 14). Now, even  follows the 1–6 label options. And the tracking categories. No backlog usage existing (all previous usages of such 8 and 14 have been edited). -DePiep (talk) 22:20, 16 March 2018 (UTC)
thread_title: Slashing MS into M/S

message: This is a first sweep of easy checks and changes, the low hanging fruit. In the near future, Module:WPSHIPS utilities could be finalised and used (see also above). It can introduce smarter checks. For example:
:Error checking: returns redlink (expensive)?
:Error checking: returns DAB page (expensive)?
:Any true logic on missing parts (when is "HMS D123" identifying and so missing name is no error)?
:Can hardcoded prefix variants, like , be brought under ?
:Use more specific error categories
:...
* -DePiep (talk) 14:35, 1 March 2018 (UTC)
thread_title: Postponed

message: *  -- ready to go live. Todo: adjust documentation. - DePiep (talk) 01:23, 9 March 2018 (UTC)
replies: text: Warning in Preview: added. - DePiep (talk) 18:37, 16 March 2018 (UTC)
thread_title: Result

message: I have created a set like  next to existing .  shows a slashed prefix (the target page stays unslashed).
Before, this could be done by using format code 8 or 14 in . Now, both templates use the standard set of format options (numbers 1–6).
* use : 
* use :  (Target page unslashed: MS Antenor (1957))
* When the target pagename has a "/" slash, use :
:Target: S/Y Manitou
:Use:  → 
The template pairs are:
:,     
:,     
- DePiep (talk) 18:29, 16 March 2018 (UTC)
thread_title:  Created: tempaltes that add a slash: M/S 

message: All pages invoking this template appear to be causing the rest of the text on the page to appear as small. Look on any page (including this talk page) to see that all of the text that follows an invocation of the template becomes small. I doubt this behavior is intended; any chance it can be fixed? Sheahunter1 (talk) 04:56, 18 August 2018 (UTC)
replies: text: Try purging your browser and see if that helps. I had the same problem, and it seems to have solved the issue for me. See Wikipedia:Purge for more information. However, I don't know if purging is a permanent solution or not. - BilCat (talk) 05:33, 18 August 2018 (UTC)

text: The problem has been resolved. It appears to be an issue with the "Close Square Bracket" template (https://en.wikipedia.org/w/index.php?title=Template:Square_bracket_close&diff=855421939&oldid=855419715). 2601:601:1001:E120:4C16:D71C:9F09:C2DB (talk) 06:16, 18 August 2018 (UTC)

text: Not done: No changes necessary. Enterprisey (talk!) 07:53, 18 August 2018 (UTC)
thread_title:  Template making all subsequent text small 

message: Please amend the template to  the ID parameter in the link text output. This is particularly necessary for hull numbers of American ships, in cases such as , in which a line break may be unsuitably placed immediately before "731". — RAVENPVFF · talk · 15:36, 2 August 2019 (UTC)
replies: text: — JFG talk 16:47, 9 August 2019 (UTC)
thread_title:  Template-protected edit request on 2 August 2019