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 editContent deleted Content addedVisualWikitext
Revision as of 21:48, 9 June 2019 view sourcePrimefac (talk | contribs)Edit filter managers, Autopatrolled, Bureaucrats, Checkusers, Oversighters, Administrators209,808 edits updating original naval jack - see talk and Jack of the United States← Previous edit Latest revision as of 18:32, 23 June 2019 view source Primefac (talk | contribs)Edit filter managers, Autopatrolled, Bureaucrats, Checkusers, Oversighters, Administrators209,808 edits fixing flag again 
Line 26: Line 26:
|{{#ifexpr: {{{1|9999}}} >= 1795|US flag 15 stars |{{#ifexpr: {{{1|9999}}} >= 1795|US flag 15 stars
|{{#ifexpr: {{{1|9999}}} >= 1777|US flag 13 stars |{{#ifexpr: {{{1|9999}}} >= 1777|US flag 13 stars
|{{#ifexpr: {{{1|9999}}} >= 1775|Naval jack of the United States (1776–1777) |{{#ifexpr: {{{1|9999}}} >= 1775|Flag of the United States (1776–1777)
<!--default if no param-->|Flag of the United States <!--default if no param-->|Flag of the United States
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}.svg|100x35px|alt=|link=]]</span><noinclude> }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}.svg|100x35px|alt=|link=]]</span><noinclude>

Latest revision as of 18:32, 23 June 2019

Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 10,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

This template is used to select the appropriate ensign of the United States Navy for the Ship flag parameter of {{Infobox Ship Career}}. The template was created because the flag of the United States changed whenever a new state was admitted to the union. Its intent is to make getting the right ensign easier.

Usage
{{USN flag|year}}

The year parameter is optional; if absent, the current (since July 4, 1960) ensign is displayed. The image is rendered at 100x35px pixel size, which is the default standard also used by {{Shipboxflag}} for the same usage.

Nitpicky usage note: the "official" date of flag turnover is always July 4th of the year specified. The template displays the flag used at the end of the specified year, which is actually always the smaller part of that year. For example, the US flag changed from 46 to 48 stars on July 4, 1912, so if you use {{USN flag|1912}} in an article, it will display the 48-star flag. If, however, you wanted to indicate a 46-star flag for a ship that only served in early 1912, you will need to indicate the previous year's flag, {{USN flag|1911}} in order to render that number of stars.

See {{navy}} for an alternate method of rendering historical United States flags, but in icon size and with a wikilink to the United States Navy article. For example, {{navy|USA|1912}} will produce  United States Navy.

See also
{{Country data United States}}
The above documentation is transcluded from Template:USN flag/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template. Category: