Difference between revisions of "Template:DADS"

From blackwiki
Jump to navigation Jump to search
imported>Hike395
(use Include-USGov wrapper to indicate public domain material)
imported>Hike395
(handle missing arguments gracefully)
Line 1: Line 1:
{{Include-USGov|agency=[[National Institute of Standards and Technology|NIST]]|source={{cite web |first=Paul E. |last=Black |url=http://www.nist.gov/dads/HTML/{{{2}}}.html |title={{{1}}}  |website=[[Dictionary of Algorithms and Data Structures]]}}}}<noinclude>
+
{{Include-USGov
 +
  |agency=[[National Institute of Standards and Technology|NIST]]
 +
  |author=Paul E. Black
 +
  |article={{#if:{{{1|}}}|{{{1}}}|Dictionary of Algorithms and Data Structures}}
 +
  |url={{#if:{{{2|}}}|http://www.nist.gov/dads/HTML/{{{2}}}.html|http://www.nist.gov/dads/}}
 +
  |source={{#if:{{{1|}}}|{{#if:{{{2|}}}|{{cite web |first=Paul E. |last=Black |url=http://www.nist.gov/dads/HTML/{{{2}}}.html |title={{{1}}}  |website=[[Dictionary of Algorithms and Data Structures]]}} }} }} }}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 02:48, 29 July 2016

 This article incorporates public domain material from the NIST document: Paul E. Black. "Dictionary of Algorithms and Data Structures".

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

Usage

This template is for articles incorporating text from the National Institute of Standards and Technology's Dictionary of Algorithms and Data Structures, which is public domain and available free online from the NIST website. It should be placed at the bottom of the article or used as an inline citation.

Without arguments, {{DADS}} produces

 This article incorporates public domain material from the NIST document: Paul E. Black. "Dictionary of Algorithms and Data Structures".

With two arguments:

{{DADS|Article title|articleURLFragment}}

where articleURLFragment is the html name of the page within the DADS website, and "Article title" is the name of the subject.

Hence,

{{DADS|Adaptive Huffman coding|adaptiveHuffman}}

will produce the following message at the bottom of the article:

 This article incorporates public domain material from the NIST document: Black, Paul E. "Adaptive Huffman coding". Dictionary of Algorithms and Data Structures.

See also

  • {{NIST-PD}} for articles which use other public domain text or data from the National Institute of Standards and Technology.

eo:Ŝablono:DADS