Difference between revisions of "Template:Cite web"

From OpenCircuits
Jump to navigation Jump to search
(test0)
 
(test1 works now?)
Line 1: Line 1:
{{cite web
+
<includeonly>{{
|url =
+
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
|title =
+
  ||Error on call to [[Template:cite web]]: Parameters '''url''' and '''title''' must be specified
|accessdate =
+
}}{{
|accessdaymonth =
+
#if: {{{archiveurl|}}}{{{archivedate|}}}
|accessmonthday =
+
  | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
|accessyear =
+
    ||Error on call to [[template:cite web]]: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted
|author =
 
|last =
 
|first =
 
|authorlink =
 
|coauthors =
 
|date =
 
|year =
 
|month =
 
|format =
 
|work =
 
|publisher =
 
|pages =
 
|language =
 
|doi =
 
|archiveurl =
 
|archivedate =
 
|quote =
 
 
}}
 
}}
 +
}}{{#if: {{{author|}}}{{{last|}}}
 +
  | {{#if: {{{authorlink|}}}
 +
    | [[{{{authorlink}}}|{{#if: {{{last|}}}
 +
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
 +
      | {{{author}}}
 +
    }}]]
 +
    | {{#if: {{{last|}}}
 +
      | {{{last}}}{{#if: {{{first|}}} | , {{{first}}} }}
 +
      | {{{author}}}
 +
    }}
 +
  }}
 +
}}{{#if: {{{author|}}}{{{last|}}}
 +
  | {{#if: {{{coauthors|}}}| <nowiki>;</nowiki>&#32;{{{coauthors}}} }}
 +
}}{{#if: {{{author|}}}{{{last|}}}|
 +
    {{#if: {{{date|}}}
 +
    | &#32;({{{date}}})
 +
    | {{#if: {{{year|}}}
 +
      | {{#if: {{{month|}}}
 +
        | &#32;({{{month}}} {{{year}}})
 +
        | &#32;({{{year}}})
 +
      }}
 +
    }}
 +
  |}}
 +
}}{{#if: {{{last|}}}{{{author|}}}
 +
  | .&#32;}}{{
 +
  #if: {{{editor|}}}
 +
  | &#32;{{{editor}}}:
 +
}}{{#if: {{{archiveurl|}}}
 +
    | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
 +
    | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }}}}
 +
}}{{#if: {{{language|}}} | &#32;<span style="font-size: 0.95em; font-weight: bold; color:#555;">({{{language}}})</span>
 +
}}{{#if: {{{format|}}}
 +
  | &#32;({{{format|}}})
 +
}}{{#if: {{{work|}}}
 +
  | .&#32;''{{{work}}}''
 +
}}{{#if: {{{pages|}}}
 +
  | &#32;{{{pages}}}
 +
}}{{#if: {{{publisher|}}}
 +
  | .&#32;{{{publisher}}}{{#if: {{{author|}}}{{{last|}}}
 +
    |
 +
    | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
 +
  }}
 +
}}{{#if: {{{author|}}}{{{last|}}}
 +
  ||{{#if: {{{date|}}}
 +
    | &#32;({{{date}}})
 +
    | {{#if: {{{year|}}}
 +
      | {{#if: {{{month|}}}
 +
        | &#32;({{{month}}} {{{year}}})
 +
        | &#32;({{{year}}})
 +
      }}
 +
    }}
 +
  }}
 +
}}.{{#if: {{{archivedate|}}}
 +
  | &#32;Archived from [{{{url}}} the original] on [[{{{archivedate}}}]].
 +
}}{{#if: {{{doi|}}}
 +
  | &#32;[[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}].
 +
}}{{#if: {{{accessdate|}}}
 +
  | &#32;Retrieved on [[{{{accessdate}}}]]{{#if: {{{accessyear|}}} | , [[{{{accessyear}}}]] }}.
 +
}}{{#if: {{{accessmonthday|}}}
 +
  | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}.
 +
}}{{#if: {{{accessdaymonth|}}}
 +
  | &#32;Retrieved on {{{accessdaymonth}}} {{{accessyear}}}.
 +
}}{{#if: {{{quote|}}}
 +
  | &nbsp;“{{{quote}}}”
 +
}}</includeonly><noinclude>{{template doc}}</noinclude>

Revision as of 09:57, 27 July 2007