Difference between revisions of "Template:DANFSsection/doc"

From blackwiki
Jump to navigation Jump to search
imported>Revent
(Adapt documentation to use {{tlx}} and actual incovation of the template for example)
imported>Daranz
(→‎Example: Replace with {{markup}} so we can actually show the footnote)
Line 9: Line 9:
  
 
==== Example ====
 
==== Example ====
* {{tlx|DANFSsection|Pampanito|<nowiki>http://www.history.navy.mil/danfs/p1/pampanito.htm</nowiki>}}
+
{{markup
 +
|<nowiki>{{DANFSsection|Pampanito|http://www.history.navy.mil/danfs/p1/pampanito.htm}}
  
{{Quotebox|{{DANFSsection|Pampanito|http://www.history.navy.mil/danfs/p1/pampanito.htm}}}}
+
== References ==
 +
{{reflist}}</nowiki>
  
Not shown is the appearance of the footnote added to the references list of the article.
+
|{{DANFSsection|Pampanito|http://www.history.navy.mil/danfs/p1/pampanito.htm}}
 +
 
 +
{{fake heading|sub=3|References}}
 +
{{Reflist|close}}
 +
}}
  
 
=== See also ===
 
=== See also ===

Revision as of 20:07, 19 July 2013

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