Pergi ke kandungan

Templat:Navy/doc

Daripada Wikipedia, ensiklopedia bebas.

Kegunaan

[sunting sumber]

{{navy|nation|variant|size=optional|name=optional}}

Menghasilkan ikon bendera yang dipaut bersama-sama pautan ke rencana tentera laut negara berkenaan.

Parameter
  • nation — Gunakan sama ada nama negara atau tiga huruf digit berdasarkan kod negara ISO 3166-1 alpha-3.
  • variant (pilihan) — Menetapkan pilihan bendera tentera (sejarah) yang akan digunakan. This parameter is documented by the appropriate template in Kategori:Templat data negara. Note that the standard behaviour of this template is to use the naval variant if present, so there is no need to specify this variant in the template call.
  • size (pilihan) — Boleh digunakan untuk menukar saiz ikon bendera.
  • name (pilihan) — Boleh digunakan bagi memaparkan teks pautan wiki.
[sunting sumber]

The {{flagicon}} template can be used to display the naval flag by itself, using the naval variant as a template parameter:

  • {{flagicon|UK|naval}}United Kingdom
  • {{flagicon|CHN|naval}}Republik Rakyat China
  • {{flagicon|Japan|naval}}Jepun
  • {{flagicon|Nazi Germany|naval}}Jerman Nazi

Implementation notes

[sunting sumber]

By default, this template shows the standard national flag for the selected country, following by a wikilink to "Country Navy". Both of these items can be changed by adding specific parameters to the appropriate country_data template (complete set found in Kategori:Templat data negara).

To use a different flag, such as the naval ensign for the nation, use:

flag alias-naval = image name of naval ensign

To use a different name for the wikilinked navy article, use:

link alias-naval = article name

Lihat juga

[sunting sumber]