<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://noumenapedia.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AHMS%2Fdoc</id>
	<title>Template:HMS/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://noumenapedia.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AHMS%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://noumenapedia.net/index.php?title=Template:HMS/doc&amp;action=history"/>
	<updated>2026-10-28T06:15:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://noumenapedia.net/index.php?title=Template:HMS/doc&amp;diff=9023&amp;oldid=prev</id>
		<title>Deleatur yhe: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://noumenapedia.net/index.php?title=Template:HMS/doc&amp;diff=9023&amp;oldid=prev"/>
		<updated>2026-09-09T14:55:22Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:55, 9 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Deleatur yhe</name></author>
	</entry>
	<entry>
		<id>https://noumenapedia.net/index.php?title=Template:HMS/doc&amp;diff=9022&amp;oldid=prev</id>
		<title>wikipedia&gt;A876: +comma. -typo. a wording.</title>
		<link rel="alternate" type="text/html" href="https://noumenapedia.net/index.php?title=Template:HMS/doc&amp;diff=9022&amp;oldid=prev"/>
		<updated>2026-05-22T17:07:14Z</updated>

		<summary type="html">&lt;p&gt;+comma. -typo. a wording.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{High-use}}&lt;br /&gt;
{{Lua|Module:WPSHIPS utilities}}&lt;br /&gt;
{{Template shortcut|HMS}}&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
This is a typing shortcut for linking to ship articles of the [[Royal Navy]] named in the format &amp;#039;HMS Gloucester (D96)&amp;#039;. Since ship names are italicised in article text, and editors often don&amp;#039;t want to include its [[pennant number]], linking to them in the usual manner means typing everything twice, such as &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Gloucester (D96)|HMS &amp;#039;&amp;#039;Gloucester&amp;#039;&amp;#039;]]&amp;lt;/syntaxhighlight&amp;gt;. This template halves that to &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Gloucester|D96|6}}&amp;lt;/syntaxhighlight&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
HMS is the abbreviation for [[His Majesty&amp;#039;s Ship]] (or Her Majesty&amp;#039;s Ship). It is almost never written out.&lt;br /&gt;
&lt;br /&gt;
===Basic usage===&lt;br /&gt;
:&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Ship name}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Ship name|ID}}&amp;lt;/syntaxhighlight&amp;gt;: the optional ID can be the [[hull number]], [[pennant number]], or launch year as specified in the article title: &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Ship name (ID)]]&amp;lt;/syntaxhighlight&amp;gt;.&lt;br /&gt;
:&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Ship name|ID|6}}&amp;lt;/syntaxhighlight&amp;gt;: the last code (e.g., &amp;#039;6&amp;#039;) sets the formatting of the blue wikilink label.&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
{|class=wikitable width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-style=background-color:#FCFCFC align=left&lt;br /&gt;
! Template usage&lt;br /&gt;
! Equivalent wikicode&lt;br /&gt;
! Final result&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Illustrious|R06}}&amp;lt;/syntaxhighlight&amp;gt;||&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Illustrious (R06)|HMS &amp;#039;&amp;#039;Illustrious&amp;#039;&amp;#039; (R06)]]&amp;lt;/syntaxhighlight&amp;gt;||{{HMS|Illustrious|R06}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Raisonnable|1768}}&amp;lt;/syntaxhighlight&amp;gt;||&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Raisonnable (1768)|HMS &amp;#039;&amp;#039;Raisonnable&amp;#039;&amp;#039; (1768)]]&amp;lt;/syntaxhighlight&amp;gt;||{{HMS|Raisonnable|1768}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Victory}}&amp;lt;/syntaxhighlight&amp;gt;||&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Victory|HMS &amp;#039;&amp;#039;Victory&amp;#039;&amp;#039;]]&amp;lt;/syntaxhighlight&amp;gt;||{{HMS|Victory}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The last example could be used to link to ship index (disambiguation) page.&lt;br /&gt;
&lt;br /&gt;
===Format options parameter===&lt;br /&gt;
A third, unnamed parameter {{parameter|3}} allows setting which pieces of text are &amp;lt;u&amp;gt;displayed&amp;lt;/u&amp;gt; in the rendered wikilink. It sets the &amp;#039;&amp;#039;label&amp;#039;&amp;#039; in the link: &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[targetpage|label]]&amp;lt;/syntaxhighlight&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For example, the ship&amp;#039;s article is entered as &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Illustrious|R06}}&amp;lt;/syntaxhighlight&amp;gt;, by default showing as {{HMS|Illustrious|R06}}.&lt;br /&gt;
&lt;br /&gt;
But in your article, the pennant number (disambiguator) may not be needed to display. In that case, add {{parameter|3|2}}, and the result is:&lt;br /&gt;
*&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Illustrious|R06|2}}&amp;lt;/syntaxhighlight&amp;gt; →&lt;br /&gt;
*:&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Illustrious (R06)|&amp;#039;&amp;#039;Illustrious&amp;#039;&amp;#039;]]&amp;lt;/syntaxhighlight&amp;gt; →&lt;br /&gt;
*::{{HMS|Illustrious|R06|2}}.&lt;br /&gt;
&lt;br /&gt;
The options are:&lt;br /&gt;
{|class=wikitable width=100%&lt;br /&gt;
! Value&lt;br /&gt;
! Parameter(s)&amp;lt;br&amp;gt;displayed&lt;br /&gt;
! Example&lt;br /&gt;
! Equivalent wikicode&lt;br /&gt;
! Final result&lt;br /&gt;
|-&lt;br /&gt;
! none&lt;br /&gt;
| style=text-align:center|prefix, name, ID&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Illustrious|R06}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Illustrious (R06)|HMS &amp;#039;&amp;#039;Illustrious&amp;#039;&amp;#039; (R06)]]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{HMS|Illustrious|R06}}&lt;br /&gt;
|-&lt;br /&gt;
! 1&lt;br /&gt;
| style=text-align:center|ID&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Illustrious|R06|1}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Illustrious (R06)|R06]]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{HMS|Illustrious|R06|1}}&lt;br /&gt;
|-&lt;br /&gt;
! 2&lt;br /&gt;
| style=text-align:center|name&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Illustrious|R06|2}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Illustrious (R06)|&amp;#039;&amp;#039;Illustrious&amp;#039;&amp;#039;]]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{HMS|Illustrious|R06|2}}&lt;br /&gt;
|-&lt;br /&gt;
! 3&lt;br /&gt;
| style=text-align:center|name, ID&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Illustrious|R06|3}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Illustrious (R06)|&amp;#039;&amp;#039;Illustrious&amp;#039;&amp;#039; (R06)]]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{HMS|Illustrious|R06|3}}&lt;br /&gt;
|-&lt;br /&gt;
! 4&lt;br /&gt;
| style=text-align:center|invalid&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Illustrious|R06|4}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| —&lt;br /&gt;
| {{HMS|Illustrious|R06|4|no-tracking=yes}}&lt;br /&gt;
|-&lt;br /&gt;
! 5&lt;br /&gt;
| style=text-align:center|prefix, ID&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Illustrious|R06|5}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Illustrious (R06)|HMS &amp;#039;&amp;#039;R06&amp;#039;&amp;#039;]]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{HMS|Illustrious|R06|5}}&lt;br /&gt;
|-&lt;br /&gt;
! 6&lt;br /&gt;
| style=text-align:center|prefix, name&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;{{HMS|Illustrious|R06|6}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| &amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot; inline=&amp;quot;1&amp;quot;&amp;gt;[[HMS Illustrious (R06)|HMS &amp;#039;&amp;#039;Illustrious&amp;#039;&amp;#039;]]&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
| {{HMS|Illustrious|R06|6}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;{&lt;br /&gt;
&amp;quot;description&amp;quot;: &amp;quot;This is a typing shortcut for linking to Royal Navy ship articles named in the format &amp;#039;HMS Gloucester (D96)&amp;#039; (that is, the initial letters HMS, the ship&amp;#039;s name, and its pennant number). Since ship names are italicised in article text and editors often don&amp;#039;t want to include the pennant number, linking to them in the usual manner means typing everything twice, such as [[HMS Gloucester (D96)|HMS &amp;#039;&amp;#039;Gloucester&amp;#039;&amp;#039;]]. This template halves that to {{HMS|Gloucester|D96|6}}. This template cannot be used for ships which are not part of the Royal Navy.&amp;quot;,&lt;br /&gt;
  &amp;quot;params&amp;quot;: {&lt;br /&gt;
    &amp;quot;1&amp;quot;: {&lt;br /&gt;
      &amp;quot;label&amp;quot;: &amp;quot;Ship name&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;This parameter gives the name of this ship.&amp;quot;,&lt;br /&gt;
      &amp;quot;default&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
      &amp;quot;example&amp;quot;: &amp;quot;Gloucester&amp;quot;,&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
      &amp;quot;required&amp;quot;: true&lt;br /&gt;
	},&lt;br /&gt;
    &amp;quot;2&amp;quot;: {&lt;br /&gt;
      &amp;quot;label&amp;quot;: &amp;quot;ID&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;This parameter gives the ship&amp;#039;s hull number, pennant number, year of construction, or any other identifying information that will allow the ship to be distinguished from other ships of the same name.&amp;quot;,&lt;br /&gt;
      &amp;quot;default&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
      &amp;quot;example&amp;quot;:&amp;quot;1774&amp;quot;,&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
      &amp;quot;required&amp;quot;: false&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;3&amp;quot;: {&lt;br /&gt;
      &amp;quot;label&amp;quot;: &amp;quot;3&amp;quot;,&lt;br /&gt;
      &amp;quot;description&amp;quot;: &amp;quot;This is an optional parameter which sets out in bits the way the editor would like to display the name of the ship within an article.  If it is set to 1, the ship will be displayed only by its ID number (that is, but the entry given in parameter 2) without the prefix HMS and without the ship&amp;#039;s name; if given as 2, it will give just the ship&amp;#039;s name, in italics, without the HMS prefix nor the ID number; if given as 3, it will give the ship&amp;#039;s name and its ID number, but not the HMS prefix; 4 is not a valid entry; if given as 5, it will give the HMS prefix and the ID number, but will drop the ship&amp;#039;s name; if given as 6, it will give the prefix HMS and the ship&amp;#039;s name but will drop the ID number.  If left blank, the ship will be displayed as HMS plus the ship&amp;#039;s name plus its ID number.&amp;quot;,&lt;br /&gt;
      &amp;quot;suggested&amp;quot;: false,&lt;br /&gt;
      &amp;quot;default&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
      &amp;quot;example&amp;quot;: &amp;quot;5&amp;quot;,&lt;br /&gt;
      &amp;quot;autovalue&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
      &amp;quot;type&amp;quot;: &amp;quot;number&amp;quot;,&lt;br /&gt;
      &amp;quot;required&amp;quot;: false&lt;br /&gt;
       }&lt;br /&gt;
    }&lt;br /&gt;
  }&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{WPSHIPS shortcut templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&lt;br /&gt;
[[Category:Ship prefix templates|HMS]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;A876</name></author>
	</entry>
</feed>