Templat:Navy
{{country data {{{1}}}
| country flagnavy | variant = | size = | name =
}}
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.
Contoh
[sunting sumber]- {{navy|Malaysia}} → Tentera Laut Diraja Malaysia
- {{navy|United Kingdom}} → Tentera Laut Diraja
- {{navy|USA}} → Tentera Laut Amerika Syarikat
- {{navy|USA|1912}} → Tentera Laut Amerika Syarikat
- {{navy|CHN}} → Angkatan Laut Tentera Pembebasan Rakyat
- {{navy|France}} → Tentera Laut Perancis
- {{navy|France|name=Marine Nationale}} → Marine Nationale
- {{navy|DEU}} → Tentera Laut Jerman
- {{navy|DEU|name=Deutsche Marine}} → Deutsche Marine
- {{navy|India}} → Tentera Laut India
- {{navy|Japan}} → Pasukan Pertahanan Diri Laut Jepun
- {{navy|Empire of Japan}} → Tentera Laut Imperial Jepun
- {{navy|Nazi Germany}} → Kriegsmarine
- {{navy|Soviet Union}} → Tentera Laut Soviet
- {{navy|Canada}} → Tentera Laut Diraja Kanada
- {{navy|Canada|1921|name=Tentera Laut Diraja Kanada}} → Tentera Laut Diraja Kanada
Other related templates
[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}} →
- {{flagicon|CHN|naval}} →
- {{flagicon|Japan|naval}} →
- {{flagicon|Nazi Germany|naval}} →
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