Template:Air force/doc: Difference between revisions

Content deleted Content added
mk
m Updated template name.
 
(17 intermediate revisions by 15 users not shown)
Line 1:
{{documentationDocumentation subpage}}
{{High-use}}
==Usage==
 
<tt><nowiki>{{air force|nation|variant|size=optional|name=optional}}</nowiki></tt>
== Usage ==
<tt><nowiki>{{tlc|air force|nation|variant|<nowiki>size=optional</nowiki>{{var|name=optional}}|</nowiki>name=</ttnowiki>{{var|optional}}}}
 
Produces a flag icon attached to a wikilinked national air force 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) 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 <code>air force</code> 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= Parameters ===
*'' {{para||nation''}} Use either the name of the nation or the three-letter [[ISO 3166-1 alpha-3]] country code.
*<tt><nowiki>{{air force|United Kingdom}}</nowiki></tt> → {{air force|United Kingdom}}
*'' {{para||variant''}} (optional) Specifies an alternate (historical) 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 <code>air force</code> variant if present, so there is no need to specify this variant in the template call.
*<tt><nowiki>{{air force|USA}}</nowiki></tt> → {{air force|USA}}
*'' {{para|size''}} (optional) Can be used to change the flag icon size.
*<tt><nowiki>{{air force|Australia}}</nowiki></tt> → {{air force|Australia}}
*'' {{para|name''}} (optional) Can be used to change the wikilink display text.
*<tt><nowiki>{{air force|India}}</nowiki></tt> → {{air force|India}}
*<tt><nowiki>{{air force|Pakistan}}</nowiki></tt> → {{air force|Pakistan}}
*<tt><nowiki>{{air force|Russia}}</nowiki></tt> → {{air force|Russia}}
*<tt><nowiki>{{air force|Canada}}</nowiki></tt> → {{air force|Canada}}
*<tt><nowiki>{{air force|Canada|1924}}</nowiki></tt> → {{air force|Canada|1924}}
 
==Other relatedExamples templates==
The {{tl|flagicon}} template can be used to display the air force flag by itself, using the <tt>air force</tt> variant as a template parameter:
*<tt><nowiki>{{flagicon|UK|air force}}</nowiki></tt> → {{flagicon|UK|air force}}
 
=== Australia ===
==Implementation notes==
*<tt><nowiki> {{tlc|air force|Australia}}</nowiki></tt>  → {{air force|Australia}}
By default, this template shows the standard national flag for the selected country, following by a wikilink to "''Country'' Air Force". Both of these items can be changed by adding specific parameters to the appropriate <tt>country_data</tt> template (complete set found in [[:Category:Country data templates]]).
 
=== Canada ===
*<tt><nowiki> {{tlc|air force|Canada}}</nowiki></tt>  → {{air force|Canada}}
*<tt><nowiki> {{tlc|air force|Canada|1924}}</nowiki></tt>  → {{air force|Canada|1924}}
 
=== India ===
*<tt><nowiki> {{tlc|air force|India}}</nowiki></tt>  → {{air force|India}}
 
=== Pakistan ===
*<tt><nowiki> {{tlc|air force|Pakistan}}</nowiki></tt>  → {{air force|Pakistan}}
 
=== Russia ===
*<tt><nowiki> {{tlc|air force|Russia}}</nowiki></tt>  → {{air force|Russia}}
* {{tlc|air force|Russia|aerospace forces}} → {{air force|Russia|aerospace forces}}
 
=== United Kingdom ===
*<tt><nowiki> {{tlc|air force|United Kingdom}}</nowiki></tt>  → {{air force|United Kingdom}}
 
=== United States ===
*<tt><nowiki> {{tlc|air force|USA}}</nowiki></tt>  → {{air force|USA}}
 
== Other related templates ==
The {{tl|flagiconflag icon}} template can be used to display the air force flag by itself, using the <ttcode>air force</ttcode> variant as a template parameter:
*<tt><nowiki> {{flagicontlc|flag icon|UK|air force}}</nowiki></tt>  → {{flagiconflag icon|UK|air force}}
 
== Implementation notes ==
By default, this template shows the standard national flag for the selected country, following by a wikilink to "''Country'' Air Force". Both of these items can be changed by adding specific parameters to the appropriate <tt>country_data</tt>{{tl|country data}} template (complete set found in [[:Category:Country data templates]]).
 
To use a different flag, such as the air force ensign for the nation, use:
:<tt> {{para|flag alias-air force = ''|{{var|image name of air force ensign''</tt>}}}}
 
To use a different name for the wikilinked air force article, use:
:<tt> {{para|link alias-air force = ''|{{var|article name''</tt>}}}}
 
== See also ==
* {{tln|Army}}
* {{tln|Navy}}
 
<noinclude>[[Category:WikiProject Aviation template instructions|Air force]]</noinclude>
 
<includeonly>{{Sandbox other||
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Flag template system|{{PAGENAME}}]]
[[Category:Air Forceforce templates|{{PAGENAME}}]]
 
}}</includeonly>
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[es:Plantilla:Fuerza aérea]]
[[mk:Шаблон:Воено воздухопловство]]
[[pt:Predefinição:Air force]]
[[simple:Template:Air force]]
</includeonly>