Template:Ref web: Difference between revisions

No edit summary
(This revision and previous are available under: CC BY-SA 3.0. See list of authors in previous history below.)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
<includeonly>{{
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
  ||Error on call to [[Template:ref web]]: Parameters '''url''' and '''title''' must be specified
}}{{
#if: {{{archiveurl|}}}{{{archivedate|}}}
  | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
    ||Error on call to [[template:ref web]]: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted
}}
}}{{#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;{{#iferror:{{#time:Y-m-d|{{{date}}}}}|<span style="color:red">'''"{{{date|}}}" is not a valid date.'''</span>[[Category:Articles with a date parse error]]}}
    | {{#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;">({{{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;({{#iferror:{{#time:Y-m-d|{{{date}}}}}|<span style="color:red">'''"{{{date|}}}" is not a valid date.'''</span>[[Category:Articles with a date parse error]]}})
    | {{#if: {{{year|}}}
      | {{#if: {{{month|}}}
        | &#32;({{{month}}} {{{year}}})
        | &#32;({{{year}}})
      }}
    }}
  }}
}}.{{#if: {{{archivedate|}}}
  | &#32;Archived from [{{{url}}} the original] on {{#iferror:{{#time:Y-m-d|{{{archivedate}}}}}|<span style="color:red">'''"{{{archivedate|}}}" is not a valid date.'''</span>[[Category:Articles with a date parse error]]}}.
}}{{#if: {{{doi|}}}
  | &#32;[[wikipedia:Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}].
}}{{#if: {{{accessdate|}}}
  | &#32;Retrieved on {{#iferror:{{#time:Y-m-d|{{{accessdate}}}}}|<span style="color:red">'''"{{{accessdate|}}}" is not a valid date.'''</span>[[Category:Articles with a date parse error]]}}{{#if: {{{accessyear|}}} | , [[{{{accessyear}}}]] }}.
}}{{#if: {{{accessmonthday|}}}
  | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}.
}}{{#if: {{{accessdaymonth|}}}
  | &#32;Retrieved on {{{accessdaymonth}}} {{{accessyear}}}.
}}{{#if: {{{bluequote|}}}
  | &nbsp;<span class="blizztext">{{{bluequote}}}</span>
}}{{#if: {{{quote|}}}
  | &nbsp;“{{{quote}}}”
}}{{#if: {{{quote2|}}}
  | &nbsp;{{{quote2}}}
}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 18:06, 3 August 2015