Template:JDS

From HandWiki
Template documentation[view] [edit] [history] [purge]

Usage

This is a typing short cut for linking to Japanese Maritime Self-Defense Force ship articles named in the format "JDS Deep Six (AWOL-99)". Since ship names are italicized in article text, linking to them in the usual manner means typing everything twice, such as [[JDS Deep Six (AWOL-99)|JDS ''Deep Six'' (AWOL-99)]]. This template halves that to {{JDS|Deep Six|AWOL-99}}.

Formal usage

  • {{JDS|Ship Name}}
  • {{JDS|Ship Name|ID}}, where ID can be the hull number, launch year, or pennant number, as specified in the article title.

Example

Template usage Equivalent wikicode Final result
{{JDS|Wakaba|DE-261}} [[JDS Wakaba (DE-261)|JDS ''Wakaba'' (DE-261)]] missing name

Optional display control parameter

There is an optional third parameter that controls which pieces of text are displayed in the article. Its value is treated as a binary number and will display the corresponding "bits". So setting the 4's bit will display BRP, setting the 2's bit will display the ship name, and setting the 1's bit will display the ID. If binary math isn't your thing, refer to these examples:

Value Parameter(s)
displayed
Example Equivalent wikicode Final result
None all {{JDS|Wakaba|DE-261}} [[JDS Wakaba (DE-261)|JDS ''Wakaba'' (DE-261)]] missing name
1 3rd {{JDS|Wakaba|DE-261|1}} [[JDS Wakaba (DE-261)|DE-261]] missing name
2 2nd {{JDS|Wakaba|DE-261|2}} [[JDS Wakaba (DE-261)|''Wakaba'']] missing name
3 2nd, 3rd {{JDS|Wakaba|DE-261|3}} [[JDS Wakaba (DE-261)|''Wakaba'' (DE-261)]] missing name
4 invalid result {{JDS|Wakaba|DE-261|4}} [[JDS Wakaba (DE-261)|Invalid Optional Parameter]] missing name
5 1st, 3rd {{JDS|Wakaba|DE-261|5}} [[JDS Wakaba (DE-261)|JDS (DE-261)]] missing name
6 1st, 2nd {{JDS|Wakaba|DE-261|6}} [[JDS Wakaba (DE-261)|JDS ''Wakaba'']] missing name

TemplateData

This section:

See also

WP:SHIPSship class and ship prefix shortcut templates
Ship classes
Group Template Ref article Example
after member ship {{sclass}} article hyphenated Script error: The function "sclass" does not exist.
after theme {{sclass2}} article hyphenated Script error: The function "sclass" does not exist.
General ship prefixes
Group Template Ref article Example
generic {{ship}} any prefix missing name or missing name
civil {{GTS}} Gas turbine ships missing name
civil {{HSC}} High-speed crafts missing name
civil {{MS}} or {{M/S}} Motor ships missing name or M/S Antenor  (1957)
civil {{MV}} or {{M/V}} Motor vessels missing name or M/V Aurora  (2000)
civil {{MY}} or {{M/Y}} Motor yachts missing name or M/Y Monte Carlo
civil {{PS}} Paddle steamers missing name
civil {{RMS}} Royal Mail Ships missing name
civil {{RV}} or {{R/V}} Research vessels missing name or R/V Vityaz  (1939)
civil {{SB}} Sailing barges missing name
civil {{SS}} or {{S/S}} Steamships Script error: The function "ship_prefix_templates" does not exist. or Template:Ship/alt-label-prefix
civil {{SV}} or {{S/V}} Sailing vessels missing name or S/V Argo  (1841)
civil {{SY}} or {{S/Y}} Sailing vessels missing name or S/Y Raven  (1889)
civil {{TSS}} Twin-screw steamers missing name
International navy ship prefixes
Group Template Ref article Example
 Algeria {{ANS}} Algerian National Navy ships missing name
 Australia {{HMAS}} Royal Australian Navy ships missing name
 Bahamas {{HMBS}} Royal Bahamas Defence Force ships missing name
 Bangladesh {{BNS}} Bangladesh Navy ships missing name
 Canada {{HMCS}} Royal Canadian Navy ships missing name
{{CCGS}} Canadian Coast Guard ships missing name
 Colombia {{ARC}} Colombian Navy ships missing name
 Denmark {{HDMS}} Royal Danish Navy ships missing name
 Ecuador {{BAE}} Ecuadorian Navy ships missing name
 Egypt {{ENS}} Egyptian Navy ships missing name
 Estonia {{EML}} Estonian Navy ships missing name
 Fiji {{RFNS}} Republic of Fiji Naval Service ships missing name
 Finland {{FNS}} Finnish Navy ships missing name
 Greece {{HS}} Hellenic Navy ships missing name
 Germany {{SMS}} Imperial German Navy and Austro-Hungarian Navy ships Script error: The function "ship_prefix_templates" does not exist.
{{SMU}} Imperial German Navy and Austro-Hungarian Navy U-boats Script error: The function "ship_prefix_templates" does not exist.
{{GS}} German World War II and later U-boats missing name
 Iceland {{ICGV}} Icelandic Coast Guard ships missing name
 India {{INS}} Indian Navy ships Script error: The function "ship_prefix_templates" does not exist.
 Indonesia {{KRI}} Indonesian Navy ships missing name
 Ireland {{}} Irish Navy ships missing name
 Japan {{Jsub}} Imperial Japanese Navy submarines missing name
{{JDS}} Older Japan Maritime Self-Defense Force ships missing name
{{JS}} Newer Japan Maritime Self-Defense Force ships missing name
 Netherlands {{HNLMS}} Royal Netherlands Navy ships Script error: The function "ship_prefix_templates" does not exist.
 New Zealand {{HMNZS}} Royal New Zealand Navy ships missing name
 Nigeria {{NNS}} Nigerian Navy ships missing name
 Norway {{HNoMS}} Royal Norwegian Navy ships Script error: The function "ship_prefix_templates" does not exist.
 Papua New Guinea {{HMPNGS}} Papua New Guinean Navy ships missing name
 Peru {{BAP}} Peruvian Navy ships missing name
 Philippines {{RPS}} Older Philippine Navy ships missing name
{{BRP}} Newer Philippine Navy ships missing name
 Poland {{ORP}} Polish Navy ships missing name
 Portugal {{NRP}} Portuguese Navy ships missing name
 Romania {{NMS}} Romanian Navy ships missing name
 Singapore {{RSS}} Republic of Singapore Navy ships missing name
 South Africa {{SAS}} South African Navy ships after 31 May 1961 missing name
{{HMSAS}} Union of South Africa Navy (before 30 May 1961) missing name
 South Korea {{ROKS}} Republic of Korea Navy ships missing name
 Sweden {{HSwMS}} Swedish Navy ships Script error: The function "ship_prefix_templates" does not exist.
 Thailand {{HTMS}} Royal Thai Navy ships missing name
 Turkey {{TCG}} Turkish Naval Forces ships missing name
 United Kingdom {{HMS}} Royal Navy ships Script error: The function "ship_prefix_templates" does not exist.
{{HMT}} Royal Navy trawlers HMT Elk (1902)
{{RFAux}} Royal Fleet Auxiliary ships missing name
 United States {{USAT}} US Army transport ships missing name
{{USCGC}} US Coast Guard Cutter missing name
{{USNS}} US Naval Ship missing name
{{USRC}} US Revenue Cutter Service missing name
{{USS}} US Navy ship missing name
{{USAV}} US Army Vessel missing name