Jump to content

Template:Cite DANFS and Template:Cite DANFS/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
aliases for CS1 discouraged parameters
 
remove line breaks
 
Line 1: Line 1:
<noinclude>{{Template sandbox notice}}</noinclude><includeonly>{{cite web | url = {{{url}}}
<includeonly>{{#invoke:template wrapper|wrap|_template=cite web |_exclude=short, link |_alias-map=accessdate:access-date,authorlink:author-link,origyear:orig-date
| title = {{#invoke:WPSHIPS utilities|cite_danfs_title|{{{title}}}}}
| title = ''{{{title}}}''
| work = {{#if: {{{short|}}}
| accessdate = {{#if:{{{accessdate|}}}|{{{accessdate}}}}}
| accessdaymonth = {{#if:{{{accessdaymonth|}}}|{{{accessdaymonth}}}}}
| {{#switch:{{lc:{{{short|}}}}}
| accessmonthday = {{#if:{{{accessmonthday|}}}|{{{accessmonthday}}}}}
| first=[[Dictionary of American Naval Fighting Ships]]
| accessyear = {{#if:{{{accessyear|}}}|{{{accessyear}}}}}
| #default={{#if: {{{link|}}}
| author = {{#if:{{{author|}}}|{{{author}}}}}
| DANFS
| last = {{#if:{{{last|}}}|{{{last}}}}}
| [[Dictionary of American Naval Fighting Ships{{!}}DANFS]]
| first = {{#if:{{{first|}}}|{{{first}}}}}
}}
| authorlink = {{#if:{{{authorlink|}}}|{{{authorlink}}}}}
}}
| {{#if: {{{link|}}}
| coauthors = {{#if:{{{coauthors|}}}|{{{coauthors}}}}}
| date = {{#if:{{{date|}}}|{{{date}}}}}
| Dictionary of American Naval Fighting Ships
| year = {{#if:{{{year|}}}|{{{year}}}}}
| [[Dictionary of American Naval Fighting Ships]]
| month = {{#if:{{{month|}}}|{{{month}}}}}
}}
| work = {{#if: {{{short|}}}|{{#switch:{{lc:{{{short|}}}}}|first=[[Dictionary of American Naval Fighting Ships]] ''(''DANFS<span style="padding-left:0.1em;">'')''</span>|#default=[[Dictionary of American Naval Fighting Ships{{!}}DANFS]]}}|{{#if: {{{link|}}}|Dictionary of American Naval Fighting Ships|[[Dictionary of American Naval Fighting Ships]]}}}}
}}
| publisher = {{#if: {{{short|}}}||{{#if: {{{link|}}}|Navy Department, Naval Historical Center|[[United States Department of the Navy{{!}}Navy Department]], [[Naval Historical Center]]}}}}
| publisher = {{#if: {{{short|}}}
| quote = {{#if:{{{quote|}}}|{{{quote}}}}}
|
}}</includeonly><noinclude>{{documentation}}</noinclude>
| {{#if: {{{link|}}}
| Navy Department, Naval History & Heritage Command
| [[United States Department of the Navy{{!}}Navy Department]], [[Naval History and Heritage Command]]
}}
}}
}}</includeonly><noinclude>
{{documentation}}</noinclude>