Difference between revisions of "Template:DANFSsection/doc"

From blackwiki
Jump to navigation Jump to search
imported>Eastlaw
(created documentation subpage)
 
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(4 intermediate revisions by 3 users not shown)
Line 8: Line 8:
 
The template includes a reference that will appear in references section of article, if "reflist" or "references" is used in that section.
 
The template includes a reference that will appear in references section of article, if "reflist" or "references" is used in that section.
  
<br/>
+
==== Example ====
Example usage (placed within double squiggly brackets):<br/> "DANFSsection|Pampanito|http://www.history.navy.mil/danfs/p1/pampanito.htm"
+
{{markup
<br/>
+
|<nowiki>{{DANFSsection|Pampanito|http://www.history.navy.mil/danfs/p1/pampanito.htm}}
yields:
 
<br/>
 
<br/>
 
<small>''This section is adapted from the [[public domain]] '''[[Dictionary of American Naval Fighting Ships]]''' article "Pampanito", available [http://www.history.navy.mil/danfs/p1/pampanito.htm '''here''']
 
</small>
 
<br/>
 
Not shown is the appearance of the footnote added to the references list of the article.
 
  
[[Category:Attribution templates|{{PAGENAME}}]]
+
== References ==
[[Category:Defunct WikiProject Ships templates|{{PAGENAME}}]]
+
{{reflist}}</nowiki>
 +
 
 +
|{{DANFSsection|Pampanito|http://www.history.navy.mil/danfs/p1/pampanito.htm}}
 +
 
 +
{{fake heading|sub=3|References}}
 +
{{Reflist|close}}
 +
}}
  
 
=== See also ===
 
=== See also ===
*[[tl|DANFS}}
+
*{{tl|DANFS}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
  
</includeonly>
+
[[Category:Attribution templates|{{PAGENAME}}]]
 +
[[Category:Defunct WikiProject Ships templates|{{PAGENAME}}]]
 +
}}</includeonly>

Latest revision as of 22:47, 24 April 2020

Usage

This template is to lead off an article section which contains all DANFS material used in an article. Intended placement is just following the section title. Two arguments are required:

  • DANFS article name
  • DANFS article URL

The template includes a reference that will appear in references section of article, if "reflist" or "references" is used in that section.

Example

Markup Renders as
{{DANFSsection|Pampanito|http://www.history.navy.mil/danfs/p1/pampanito.htm}}

== References ==
{{reflist}}

This section adapts text from the public domain Dictionary of American Naval Fighting Ships article "Pampanito", available here[1]


References
  1. "Pampanito". Dictionary of American Naval Fighting Ships. United States Navy.

See also