defzone.net@gmail.comLiên hệ
DZ
DefZone.Net

Kien thuc cong nghe & giai tri

Bài viếtĐịa điểmAlbum ảnhGameCửa hàng
  1. Home
  2. Wiki
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 5,400 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:WPSHIPS utilities (sandbox)

Usage

[edit]

This template is designed to make an easy external link to a ship's page at Navsource.net

Formal usage

[edit]
  • {{navsource|URLcode|Shipname}} where URLcode is extracted from the navsource.net URL (see below) and Shipname is the optional, unformatted name of the ship.

URLcode

[edit]

To obtain the URLcode parameter value:

  1. Find the navsource.net url.
    The url for the USS Houston (CL-81) navsource page is http://www.navsource.net/archives/04/081/04081.htm
  2. The URLcode parameter value is that part of the URL between archives/ and .htm
    In this example you would use 04/081/04081

Shipname

[edit]

This optional parameter provides the name of the ship in the rendered link. If omitted or left blank, the template uses the current page name in the link. If Shipname parameter is one of the standard forms <prefix> <name> <disambiguator>; <prefix> <name>; or <name> <disambiguator>; or <name> where <name> is part of the article title; then {{navsource}} will apply proper formatting to Shipname.

Error messages

[edit]

When {{navsource}} cannot figure out how to format Shipname, it will return the Shipname in its original format along with an error message that may help to get the name right. If the name render's as you think it should add the parameter |showerrs=no to disable the error message.

Examples
Template usage Equivalent wikicode Final result
{{navsource|04/081/04081|Houston}} [http://www.navsource.net/archives/04/081/04081.htm Photo gallery] of ''Houston'' at NavSource Naval History Photo gallery of Houston at NavSource Naval History no nationality or prefix;[a]
{{navsource|04/081/04081|Houston (CL-81)}} [http://www.navsource.net/archives/04/081/04081.htm Photo gallery] of ''Houston'' (CL-81) at NavSource Naval History Photo gallery of Houston (CL-81) at NavSource Naval History
{{navsource|04/081/04081|USS Houston (CL-81)}} [http://www.navsource.net/archives/04/081/04081.htm Photo gallery] of USS ''Houston'' (CL-81) at NavSource Naval History Photo gallery of USS Houston (CL-81) at NavSource Naval History
{{navsource|04/081/04081|showerrs=no}} [http://www.navsource.net/archives/04/081/04081.htm Photo gallery] of Navsource at NavSource Naval History Photo gallery of Navsource at NavSource Naval History[b]
  1. ^ This example is not formatted because 'Houston' is not part of this template's page title
  2. ^ This example uses the template's page name. Because the template's page title is not a recognizable ship name, {{navsource}} returns an error message that is disabled by |showerrs=no
The above documentation is transcluded from Template:Navsource/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
DZ
DefZone.Net

Noi chia se kien thuc, huong dan va kham pha cong nghe.

Liên kết nhanh

Trang chủ Bài viết Wiki Cửa hàng Liên hệ

Liên hệ

Email: defzone.net@gmail.com
Điện thoại: +84 762 559 696
Địa chỉ: Thiên Hương, Thủy Nguyên, Hải Phòng

Đăng ký nhận tin

Nhận bài viết và cập nhật mới nhất qua email.

© 2026 DefZone.Net. All rights reserved.
PrivacyTermsSitemap Language