Misplaced Pages

Template:USN flag: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 13:16, 7 June 2007 view sourceTomTheHand (talk | contribs)19,190 edits showing how to do just a width← Previous edit Revision as of 15:30, 15 June 2007 view source TomTheHand (talk | contribs)19,190 editsm fixing a 50-star bugNext edit →
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude> <noinclude>
This template is used to insert the appropriate jack for the ] into infoboxes and other places where it's useful. The template was created because the ] was, for most of its history, the blue field with stars from the ]. As a result, whenever a new state was admitted, the ensign changed. The template's intent is to make getting the right jack easier. This template is used to insert the appropriate ensign for the ] into infoboxes and other places where it's useful. The template was created because the ] changed whenever a new state was admitted. The template's intent is to make getting the right ensign easier.


To use the template, insert the following where you'd like the jack to appear: To use the template, insert the following where you'd like the ensign to appear:
*'''<nowiki>{{USN flag|</nowiki>'''''year''|''width in pixels'''''}}''' *'''<nowiki>{{USN flag|</nowiki>'''''year''|''width in pixels'''''}}'''
Both parameters are optional. If you do not include a year, the current jack will be displayed. If you do not include a width, the jack will be the right size for use in a ship infobox. The jack will have a 1-pixel white border around it to make it stand out clearly from the blue infobox. Here are some example uses: Both parameters are optional. If you do not include a year, the current ensign will be displayed. If you do not include a width, the ensign will be the right size for use in a ship infobox. The ensign will have a 1-pixel white border around it to make it stand out clearly from the blue infobox. Here are some example uses:
*'''<nowiki>{{USN flag}}</nowiki>''' gives the current jack in infobox size: {{USN flag}} *'''<nowiki>{{USN flag}}</nowiki>''' gives the current ensign in infobox size: {{USN flag}}
*'''<nowiki>{{USN flag|1945}}</nowiki>''' gives the jack as used in 1945 in infobox size: {{USN flag|1945}} *'''<nowiki>{{USN flag|1945}}</nowiki>''' gives the ensign as used in 1945 in infobox size: {{USN flag|1945}}
*'''<nowiki>{{USN flag|1865|20}}</nowiki>''' gives the 1865 jack, 20 pixels wide: {{USN flag|1865|20}} *'''<nowiki>{{USN flag|1865|20}}</nowiki>''' gives the 1865 ensign, 20 pixels wide: {{USN flag|1865|20}}
If you want to specify ''just'' a width, it is done like so: If you want to specify ''just'' a width, it is done like so:
*'''<nowiki>{{USN flag|2=20}}</nowiki>''' gives the current jack, 20 pixels wide: {{USN flag|2=20}} *'''<nowiki>{{USN flag|2=20}}</nowiki>''' gives the current ensign, 20 pixels wide: {{USN flag|2=20}}
*'''<nowiki>{{USN flag|2=100}}</nowiki>''' gives the current jack, 100 pixels wide: {{USN flag|2=100}} *'''<nowiki>{{USN flag|2=100}}</nowiki>''' gives the current ensign, 100 pixels wide: {{USN flag|2=100}}


A year should almost always be specified. Only leave it off when the ship is in service right now. A width should usually not be specified. Only specify a width when the template is being used someplace other than an infobox. A year should almost always be specified. Only leave it off when the ship is in service right now. A width should usually not be specified. Only specify a width when the template is being used someplace other than an infobox.


Also, a nitpicky usage note. The template displays the flag used at the ''end'' of the specified year. For example, the US flag changed from 46 to 48 stars on July 4, 1912. If you use '''<nowiki>{{USN flag|1912}}</nowiki>''' in an article, it will display the 48 star flag. If you want a 46 star flag for a ship that only served in ''early'' 1912, use the previous year's flag, '''<nowiki>{{USN flag|1911}}</nowiki>'''. Also, a nitpicky usage note. The template displays the flag used at the ''end'' of the specified year. For example, the US flag changed from 46 to 60 stars on July 4, 1912. If you use '''<nowiki>{{USN flag|1912}}</nowiki>''' in an article, it will display the 60 star flag. If you want a 46 star flag for a ship that only served in ''early'' 1912, use the previous year's flag, '''<nowiki>{{USN flag|1911}}</nowiki>'''.
</noinclude><includeonly>{{#ifexpr: {{{1|999999}}} >= 2002| {{border|]}}}}<!-- </noinclude><includeonly>{{#ifexpr: {{{1|999999}}} >= 2002| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1960 and {{{1|999999}}} < 2002|{{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1960 and {{{1|999999}}} < 2002|{{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1959 and {{{1|999999}}} < 1960|{{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1959 and {{{1|999999}}} < 1960|{{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1912 and {{{1|999999}}} < 1959|{{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1912 and {{{1|999999}}} < 1959|{{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1908 and {{{1|999999}}} < 1912| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1908 and {{{1|999999}}} < 1912| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1896 and {{{1|999999}}} < 1908| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1896 and {{{1|999999}}} < 1908| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1891 and {{{1|999999}}} < 1896| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1891 and {{{1|999999}}} < 1896| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1890 and {{{1|999999}}} < 1891| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1890 and {{{1|999999}}} < 1891| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1877 and {{{1|999999}}} < 1890| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1877 and {{{1|999999}}} < 1890| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1867 and {{{1|999999}}} < 1877| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1867 and {{{1|999999}}} < 1877| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1865 and {{{1|999999}}} < 1867| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1865 and {{{1|999999}}} < 1867| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1863 and {{{1|999999}}} < 1865| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1863 and {{{1|999999}}} < 1865| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1861 and {{{1|999999}}} < 1863| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1861 and {{{1|999999}}} < 1863| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1859 and {{{1|999999}}} < 1861| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1859 and {{{1|999999}}} < 1861| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1858 and {{{1|999999}}} < 1859| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1858 and {{{1|999999}}} < 1859| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1851 and {{{1|999999}}} < 1858| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1851 and {{{1|999999}}} < 1858| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1848 and {{{1|999999}}} < 1851| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1860 and {{{1|999999}}} < 1851| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1847 and {{{1|999999}}} < 1848| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1847 and {{{1|999999}}} < 1860| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1846 and {{{1|999999}}} < 1847| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1846 and {{{1|999999}}} < 1847| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1845 and {{{1|999999}}} < 1846| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1845 and {{{1|999999}}} < 1846| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1837 and {{{1|999999}}} < 1845| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1837 and {{{1|999999}}} < 1845| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1836 and {{{1|999999}}} < 1837| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1836 and {{{1|999999}}} < 1837| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1822 and {{{1|999999}}} < 1836| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1822 and {{{1|999999}}} < 1836| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1820 and {{{1|999999}}} < 1822| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1820 and {{{1|999999}}} < 1822| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1819 and {{{1|999999}}} < 1820| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1819 and {{{1|999999}}} < 1820| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1818 and {{{1|999999}}} < 1819| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1818 and {{{1|999999}}} < 1819| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1795 and {{{1|999999}}} < 1818| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1795 and {{{1|999999}}} < 1818| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} >= 1777 and {{{1|999999}}} < 1795| {{border|]}}}}<!-- -->{{#ifexpr: {{{1|999999}}} >= 1777 and {{{1|999999}}} < 1795| {{border|]}}}}<!--
-->{{#ifexpr: {{{1|999999}}} < 1777| {{border|]}}}}</includeonly> -->{{#ifexpr: {{{1|999999}}} < 1777| {{border|]}}}}</includeonly>

Revision as of 15:30, 15 June 2007

This template is used to insert the appropriate ensign for the United States Navy into infoboxes and other places where it's useful. The template was created because the Flag of the United States changed whenever a new state was admitted. The template's intent is to make getting the right ensign easier.

To use the template, insert the following where you'd like the ensign to appear:

  • {{USN flag|year|width in pixels}}

Both parameters are optional. If you do not include a year, the current ensign will be displayed. If you do not include a width, the ensign will be the right size for use in a ship infobox. The ensign will have a 1-pixel white border around it to make it stand out clearly from the blue infobox. Here are some example uses:

  • {{USN flag}} gives the current ensign in infobox size: United States Navy Ensign
  • {{USN flag|1945}} gives the ensign as used in 1945 in infobox size: United States Navy ensign
  • {{USN flag|1865|20}} gives the 1865 ensign, 20 pixels wide: United States Navy ensign

If you want to specify just a width, it is done like so:

  • {{USN flag|2=20}} gives the current ensign, 20 pixels wide: United States Navy Ensign
  • {{USN flag|2=100}} gives the current ensign, 100 pixels wide: United States Navy Ensign

A year should almost always be specified. Only leave it off when the ship is in service right now. A width should usually not be specified. Only specify a width when the template is being used someplace other than an infobox.

Also, a nitpicky usage note. The template displays the flag used at the end of the specified year. For example, the US flag changed from 46 to 60 stars on July 4, 1912. If you use {{USN flag|1912}} in an article, it will display the 60 star flag. If you want a 46 star flag for a ship that only served in early 1912, use the previous year's flag, {{USN flag|1911}}.