Difference between revisions of "Template:Cite DANFS/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Suntag
(Added {{Template sandbox notice}})
imported>Bellhalla
(test template conversion to call of {{cite web}})
Line 1: Line 1:
<includeonly><!--
+
<includeonly>{{cite web | url = {{{url}}}
-->{{
+
| title = ''{{{title}}}''
  #if: {{{author|}}}{{{last|}}}
+
| accessdate = {{#if:{{{accessdate|}}}|{{{accessdate}}}}}  
  | {{
+
| accessdaymonth = {{#if:{{{accessdaymonth|}}}|{{{accessdaymonth}}}}}  
    #if: {{{authorlink|}}}
+
| accessmonthday = {{#if:{{{accessmonthday|}}}|{{{accessmonthday}}}}}  
    | [[{{{authorlink}}}|{{
+
| accessyear = {{#if:{{{accessyear|}}}|{{{accessyear}}}}}  
      #if: {{{last|}}}
+
| author = {{#if:{{{author|}}}|{{{author}}}}}  
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
+
| last = {{#if:{{{last|}}}|{{{last}}}}}  
      | {{{author}}}
+
| first = {{#if:{{{first|}}}|{{{first}}}}}  
    }}]]
+
| authorlink = {{#if:{{{authorlink|}}}|{{{authorlink}}}}}  
    | {{
+
| coauthors = {{#if:{{{coauthors|}}}|{{{coauthors}}}}}  
      #if: {{{last|}}}
+
| date = {{#if:{{{date|}}}|{{{date}}}}}  
      | {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }}
+
| year = {{#if:{{{year|}}}|{{{year}}}}}  
      | {{{author}}}
+
| month = {{#if:{{{month|}}}|{{{month}}}}}  
    }}
+
  | work = #if: {{{short|}}}|''[[Dictionary of American Naval Fighting Ships|DANFS]]''|{{#if: {{{link|}}}|''Dictionary of American Naval Fighting Ships''|''[[Dictionary of American Naval Fighting Ships]]''}}
  }}
+
| publisher = {{#if: {{{link|}}}|Navy Department, Naval Historical Center|[[United States Department of the Navy|Navy Department]], [[Naval Historical Center]]}}
}}{{
+
| quote = {{#if:{{{quote|}}}|{{{quote}}}}}
  #if: {{{author|}}}{{{last|}}}
+
}}
  | {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
+
</includeonly><noinclude>{{Template sandbox notice}}<!-- {{documentation}} --></noinclude>
}}{{
 
  #if: {{{origdate|}}}
 
  | &#32;<nowiki>[</nowiki>{{{origdate}}}]
 
  | {{
 
    #if: {{{origyear|}}}
 
    | {{
 
      #if: {{{origmonth|}}}
 
      | &#32;<nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}]
 
      | &#32;<nowiki>[</nowiki>{{{origyear}}}]
 
    }}
 
  }}
 
}}<!--
 
------------------------------------
 
-------------- DATE ----------------
 
------------------------------------
 
-->{{
 
  #if: {{{short|}}}
 
  |
 
  | {{
 
    #if: {{{date|}}}
 
    | &#32;({{{date}}})
 
    | {{
 
      #if: {{{year|}}}
 
      | {{
 
        #if: {{{month|}}}
 
        | &#32;({{{month}}} {{{year}}})
 
        | &#32;({{{year}}})
 
      }}
 
    }}
 
  }}
 
}}<!--
 
-->{{
 
  #if: {{{author|}}}{{{last|}}}
 
  | .
 
  }}<!--
 
------------------------------------
 
--------------- URL ----------------
 
------------------------------------
 
  -->&#32;[{{{url}}} ''{{{title}}}'']. <!--
 
------------------------------------
 
--------- WORK for "short" ---------
 
------------------------------------
 
  -->{{
 
    #if: {{{short|}}}
 
    | &#32;''[[Dictionary of American Naval Fighting Ships|DANFS]]''.<!--
 
------------------------------------
 
---- WORK, etc. for NOT "short" ----   
 
------------------------------------
 
-->| {{
 
          #if: {{{link|}}}
 
          | &#32;''Dictionary of American Naval Fighting Ships''. Navy Department, Naval Historical Center.
 
          | &#32;''[[Dictionary of American Naval Fighting Ships]]''. [[United States Department of the Navy|Navy Department]], [[Naval Historical Center]].
 
          }}{{
 
        #if: {{{accessdate|}}}
 
        | &nbsp;Retrieved on [[{{{accessdate}}}]].
 
        | {{
 
          #if: {{{accessyear|}}}
 
          | &nbsp;Retrieved <!--
 
        -->{{
 
            #if: {{{accessmonth|}}}
 
            | on [[{{{accessmonth}}} {{{accessyear}}}]].
 
            | during [[{{{accessyear}}}]].
 
            }}
 
          }}
 
        }}
 
    }}<!--
 
--></includeonly><noinclude>{{Template sandbox notice}}<!-- {{documentation}} --></noinclude>
 

Revision as of 19:45, 19 September 2008