2,819 bytes added
, 2 years ago
<includeonly>{{#vardefine:nationality| {{#switch:{{{1|}}}
| IJN | Japanese | Japanese Navy | Japan | Japan Navy = Imperial Japanese Navy
| IJA | Japanese Army | Japan Army = Imperial Japanese Army
| German | German Navy | Germany | Germany Navy = Kriegsmarine
| Italian | Italian Navy = Regia Marina
| USN | American | American Navy | United States = United States Navy
| RN | British | British Navy | England | England Navy | United Kingdom = Royal Navy
| French | French Navy = Marine Nationale
| IRN | Russian | Russian Navy | Soviet Union = Imperial Russian Navy
| Swedish | Sweden | Sweden Navy = Swedish Navy
| Netherlands = Royal Netherlands Navy
| RAN | Australia | Australia Navy | Australian | Australian Navy = Royal Australian Navy
|{{{1|}}}
}} }}[[File:Ensign {{#var:nationality}}.png|border|{{{size|40px}}}|link=]] {{#if:{{{text|}}}|{{#ifeq:{{{text|}}}|false||{{{text|}}}}}|{{#var:nationality}} }}</includeonly><noinclude>
A template for displaying navy ensigns from WWII.
Various naming of nations are accepted, for example to get <code>Royal Australian Navy</code> you could also use: <code>RAN</code>, <code>Australia</code>, <code>Australia Navy</code>, <code>Australian</code>, <code>Australian Navy</code>.
Edit template to see all accepted naming, or to add any additional.
Once categories are made and filled with ships for all current nations (besides IJN), linking to them can be added as a default feature.
<pre>{{Ensign|Royal Navy}}</pre>
{{Ensign|Royal Navy}}
<pre>{{Ensign|RN}}</pre>
{{Ensign|RN}}
<pre>{{Ensign|British}}</pre>
{{Ensign|British}}
<pre>{{Ensign|Imperial Japanese Navy|size=100px}}</pre>
{{Ensign|Imperial Japanese Navy|size=100px}}
<pre>{{Ensign|Imperial Japanese Navy|text=Custom text}}</pre>
{{Ensign|Imperial Japanese Navy|text=Custom text}}
<pre>{{Ensign|Imperial Japanese Navy|text=false}}</pre>
{{Ensign|Imperial Japanese Navy|text=false}}
{|class="wikitable"
!colspan=2 | List of Ensigns
|-
! align="center" | Ensigns
! align="center" width="400px" | Notes
|-
| '''{{Ensign|IJN}}'''
|-
| '''{{Ensign|IJA}}'''
|-
| '''{{Ensign|German}}'''
|-
| '''{{Ensign|Italian}}'''
|-
| '''{{Ensign|USN}}'''
|-
| '''{{Ensign|RN}}'''
|-
| '''{{Ensign|IRN}}'''
|-
| '''{{Ensign|Swedish}}'''
|-
| '''{{Ensign|Netherlands}}'''
|-
| '''{{Ensign|RAN}}'''
| From the formation of the RAN until 1967, Australian warships used the British White Ensign as their ensign.
To avoid duplicate flags, the post-war Ensign is being used.
|}
</noinclude>