සැකිල්ල:Navy/doc
Appearance
This is a documentation subpage for සැකිල්ල:Navy. It may contain usage information, categories and other content that is not part of the original සැකිල්ල page. |
Usage
[සංස්කරණය]{{navy|nation|variant|size=optional|name=optional}}
Produces a flag icon attached to a wikilinked national navy article.
- Parameters
- nation — Use either the name of the nation or the three-letter ISO 3166-1 alpha-3 country code
- variant (optional) — Specifies an alternate (historical) naval flag to use. This parameter is documented by the appropriate template in Category:Country data templates. 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 (optional) — Can be used to change the flag icon size
- name (optional) — Can be used to change the wikilink display text
Examples
[සංස්කරණය]- {{navy|United Kingdom}} → Royal Navy
- {{navy|Algeria}} → Algerian National Navy
- {{navy|USA}} → එක්සත් ජනපද නාවික හමුදාව
- {{navy|USA|1912}} → එක්සත් ජනපද නාවික හමුදාව
- {{navy|USA|coast guard}} → එක්සත් ජනපද නාවික හමුදාව
- {{navy|CHN}} → චීනය නාවික හමුදාව
- {{navy|France}} → ප්රංශය නාවික හමුදාව
- {{navy|France|name=Marine Nationale}} → Marine Nationale
- {{navy|DEU}} → ජර්මනිය නාවික හමුදාව
- {{navy|DEU|name=Deutsche Marine}} → Deutsche Marine
- {{navy|India}} → Indian Navy
- {{navy|Japan}} → ජපානය නාවික හමුදාව
- {{navy|Empire of Japan}} → ජපානය නාවික හමුදාව
- {{navy|German Empire}} → Kaiserliche Marine
- {{navy|Nazi Germany}} → Kriegsmarine
- {{navy|Russian Empire}} → Imperial Russian Navy
- {{navy|Soviet Union}} → Soviet Navy
- {{navy|Russia}} → Russian Navy
- {{navy|Canada}} → කැනඩාව නාවික හමුදාව
- {{navy|Canada|1921}} → කැනඩාව නාවික හමුදාව
Other related templates
[සංස්කරණය]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
[සංස්කරණය]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 Category:Country data templates).
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
See also
[සංස්කරණය]