Difference between revisions of "Template:DANFS"

From blackwiki
Jump to navigation Jump to search
imported>Jo-Jo Eumerus
m (Changed protection level for "Template:DANFS": Highly visible template: Allowing template editors ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
imported>Hike395
(update to use Include-USGov)
Line 1: Line 1:
''This article incorporates text from the [[public domain]] ''[[Dictionary of American Naval Fighting Ships]]''.{{#if:{{{1|}}}|{{#if:{{{2|}}}|&#32;The entries can be found [{{#if:1|{{{1}}}}} here] and [{{#if:1|{{{2}}}}} here].|&#32;The entry can be found [{{#if:1|{{{1}}}}} here].}}}}''<noinclude>
+
{{Include-USGov|agency=[[Naval Historical Center]]|article={{#if:{{{1|}}}|{{PAGENAME}}|[[Dictionary of American Naval Fighting Ships]]}}|url={{{1|}}}}}{{#if:{{{2|}}}|<br>{{Include-USGov|agency=[[Naval Historical Center]]|article={{PAGENAME}}|url={{{2}}}}}}}<noinclude>
 
{{documentation}}
 
{{documentation}}
</noinclude>
+
</noinclude><includeonly>[[Category:Wikipedia articles incorporating text from the Dictionary of American Naval Fighting Ships]]</includeonly>
<includeonly>[[Category:Wikipedia articles incorporating text from the Dictionary of American Naval Fighting Ships]]</includeonly>
 

Revision as of 01:09, 11 September 2019

12px This article incorporates public domain material from the Naval Historical Center document: "Script error: No such module "If empty".".

50px Template documentation[view] [edit] [history] [purge]

Usage

This template is to be used in the references section of an article in order to identify that it contains text taken from the Dictionary of American Naval Fighting Ships (DANFS). If the article does not contain text from DANFS, it should not be used.

  • Placing the template {{DANFS}} on the article results in:
12px This article incorporates public domain material from the Naval Historical Center document: "Script error: No such module "If empty".".
  • The template allows for directly linking to the DANFS article in question. For example: using {{DANFS|http://www.history.navy.mil/danfs/c13/constellation-i.htm}} links directly to the article on USS Constellation (1797) and results in:
12px This article incorporates public domain material from the Naval Historical Center document: "DANFS".
  • The template also allows linking for two DANFS articles. By using the parameters {{DANFS|http://www.history.navy.mil/danfs/c13/constellation-i.htm|http://www.hazegray.org/danfs/frigates/constell.htm}} you may link to the more recent DANFS article and the original DANFS article listed at Hazegray. This results in:
12px This article incorporates public domain material from the Naval Historical Center document: "DANFS".
12px This article incorporates public domain material from the Naval Historical Center document: "DANFS".

See also

Template:WPSHIPS Ship citation templates