Template:Cite web: Difference between revisions

From BetaArchive Wiki
m (remove dash from access-date)
(checking if this will clear any duplicate URLs)
Line 1: Line 1:
<includeonly>{{Citation/core
<includeonly>{{#if: {{#if:{{{url|}}} | {{#if:{{{title|}}}|1}}}}
|Citation class=web
  |
 
  |<font style="color:red; font-size:medium">'''Error: title= and url= must be specified'''</font>
|Surname1={{{last|{{{last1|{{{author|{{{author1|{{{authors|{{{surname|{{{surname1|}}}}}}}}}}}}}}}}}}}}}
}}{{#if: {{{archiveurl|}}}{{{archivedate|}}}  
|Surname2={{{last2|{{{author2|{{{surname2|}}}}}}}}}
    |{{#if: {{#if:{{{archiveurl|}}}|{{#if:{{{archivedate|}}}|1}}}}
|Surname3={{{last3|{{{author3|{{{surname3|}}}}}}}}}
      |
|Surname4={{{last4|{{{author4|{{{surname4|}}}}}}}}}
      |<font style="color:red; font-size:medium">'''Error: archiveurl= and archivedate= must be both be specified or both omitted'''</font>
|Surname5={{{last5|{{{author5|{{{surname5|}}}}}}}}}
    }}
|Surname6={{{last6|{{{author6|{{{surname6|}}}}}}}}}
}}{{#if:{{{author|}}}{{{last|}}}
|Surname7={{{last7|{{{author7|{{{surname7|}}}}}}}}}
    |{{#if:{{{authorlink|}}}
|Surname8={{{last8|{{{author8|{{{surname8|}}}}}}}}}
      |[[{{{authorlink}}} | {{#if:{{{last|}}}
|Surname9={{{last9|{{{author9|{{{surname9|}}}}}}}}}
          |{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}
 
          |{{{author}}}
|Given1={{{first|{{{first1|{{{given|{{{given1|}}}}}}}}}}}}
          }}]]
|Given2={{{first2|{{{given2|}}}}}}
      |{{#if:{{{last|}}}
|Given3={{{first3|{{{given3|}}}}}}
          |{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}
|Given4={{{first4|{{{given4|}}}}}}
          |{{{author}}}
|Given5={{{first5|{{{given5|}}}}}}
        }}
|Given6={{{first6|{{{given6|}}}}}}
    }}
|Given7={{{first7|{{{given7|}}}}}}
}}{{#if:{{{author|}}}{{{last|}}}
|Given8={{{first8|{{{given8|}}}}}}
    |{{#if:{{{coauthors|}}}|<nowiki>;</nowiki> {{{coauthors}}} }}{{#if:{{{editorlink|}}}{{{editor-link|}}}
|Given9={{{first9|{{{given9|}}}}}}
      |{{#if:{{{editor|}}}
 
          |<nowiki>;</nowiki> [[{{{editorlink|{{{editor-link}}}}}} | {{{editor}}}]]
|Authorlink1={{{authorlink|{{{authorlink1|{{{author-link|{{{author1-link|}}}}}}}}}}}}
          |<nowiki>;</nowiki> [[{{{editorlink|{{{editor-link}}}}}} | {{{editor-last}}}, {{{editor-first}}}]]
|Authorlink2={{{authorlink2|{{{author2-link|}}}}}}
        }}
|Authorlink3={{{authorlink3|{{{author3-link|}}}}}}
      |{{#if:{{{editor|}}}{{{editor-last|}}}
|Authorlink4={{{authorlink4|{{{author4-link|}}}}}}
          |{{#if:{{{editor|}}}
|Authorlink5={{{authorlink5|{{{author5-link|}}}}}}
            |<nowiki>;</nowiki> {{{editor}}}
|Authorlink6={{{authorlink6|{{{author6-link|}}}}}}
            |<nowiki>;</nowiki> {{{editor-last}}}, {{{editor-first}}}
|Authorlink7={{{authorlink7|{{{author7-link|}}}}}}
          }}
|Authorlink8={{{authorlink8|{{{author8-link|}}}}}}
        }}
|Authorlink9={{{authorlink9|{{{author9-link|}}}}}}
    }}{{#if:{{{coeditors|}}}|<nowiki>;</nowiki> {{{coeditors}}} }}{{#if:{{{editor-type|}}}
 
      |, {{{editor-type}}}
|Coauthors={{{coauthors|{{{coauthor|}}}}}}
      |{{#if:{{{editor|}}}{{{editor-last|}}}
 
          |{{#if:{{{coeditors|}}}|, eds.|, ed.}}
|Other={{{others|}}}
        }}
 
    }}
|Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
}}{{#if:{{{author|}}}{{{last|}}}
          #if: {{{date|}}}
    |{{#if:{{{date|}}}
          |{{
      |&#32;({{#dateformat:{{{date}}}|{{#if:{{{dateformat|}}}|{{{dateformat}}} }} }})
              #iferror:{{#time:Y|{{{date|}}} }}
      |{{#if:{{{year|}}}
              |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
          |{{#if:{{{month|}}}
              |{{#time:Y|{{{date|}}} }}
            |&#32;({{{month}}} {{{year}}})
            }}
            |&#32;({{{year}}})
          |{{{publication-date|}}} <!-- last resort -->
          }}
        }}
        }}
      }}}
    }}
|YearNote={{{origyear|}}}
|Date={{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
 
|Title={{{work|}}}
|IncludedWorkTitle={{
  #if:{{{title|}}}
  |{{{title}}}
  |{{
    #if:{{{trans_title|}}}
     |
     |
     |{{citation error|nocat={{{template doc demo|}}}|no <code>&#124;title&#61;</code> specified|Cite web}}
}}{{#if:{{{last|}}}{{{author|}}}|.&#32;}}{{#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; position: relative;">(in {{{language}}})</span>
}}{{#if:{{{format|}}}|&#32;({{{format|}}})
}}{{#if:{{{work|{{{website|}}}}}}|.&#32;''{{{work|{{{website}}}}}}''
}}{{#if:{{{page|{{{pages|}}}}}}|&#32;{{{page|{{{pages}}}}}}
}}{{#if:{{{publisher|}}}
    |.&#32;{{{publisher}}}{{#if:{{{author|}}}{{{last|}}}
      |
      |{{#if:{{{date|}}}{{{year|}}}{{{month|}}}||}}
     }}
     }}
  }}
}}{{#if:{{{author|}}}{{{last|}}}
|TransTitle={{{trans_title|}}}
    |
|TitleType={{{type|}}}
    |{{#if:{{{date|}}}
|language={{{language|}}}
      |&#32;({{#dateformat:{{{date}}}|{{#if:{{{dateformat|}}}|{{{dateformat}}} }} }})
 
       |{{#if:{{{year|}}}
|IncludedWorkURL={{#if:{{{archiveurl|}}}
          |{{#if:{{{month|}}}
       |{{#ifeq: {{{deadurl|}}} | no | {{{url|}}} | {{{archiveurl|}}}}}
            |&#32;({{{month}}} {{{year}}})
      |{{{url|}}}
            |&#32;({{{year}}})
          }}
        }}
     }}
     }}
|AccessDate={{{accessdate|}}}
}}{{#if:{{{archivedate|}}}|. Archived from [{{{url}}} the original] on {{#dateformat:{{{archivedate}}}|{{#if:{{{dateformat|}}}|{{{dateformat}}} }} }}
|OriginalURL={{{url|}}}
}}{{#if:{{{accessdate|}}}|. Retrieved on {{#dateformat:{{{accessdate}}}|{{#if:{{{dateformat|}}}|{{{dateformat}}} }} }} }}{{#if:{{{accessmonthday|}}}|&#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}
|ArchiveURL={{{archiveurl|}}}
}}{{#if:{{{accessdaymonth|}}}|&#32;Retrieved on {{{accessdaymonth}}} {{{accessyear}}}
|ArchiveDate={{{archivedate|}}}
}}{{#if:{{{postscript|}}}
|DeadURL={{{deadurl|}}}
    |{{#ifeq:{{{postscript}}}|no||{{{postscript}}} }}
|format={{{format|}}}
    |.
 
}}{{#if:{{{quote|}}}|&#32;"{{{quote}}}"}}</includeonly>
|At={{#if: {{{page|}}}|{{#if:{{{nopp|}}}||p.&nbsp;}}{{{page}}}
      |{{#if: {{{pages|}}}|{{#if:{{{nopp|}}}||pp.&nbsp;}}{{{pages}}}
      |{{{at|}}}}}
    }}
 
|Series={{{agency|{{{series|{{{version|}}}}}}}}}
 
|Publisher={{{publisher|}}}
|Place={{{location|{{{place|}}}}}}
|PublicationPlace={{{location|{{{place|{{{publication-place|}}}}}}}}}
|PublicationDate={{{publication-date|}}}
 
|EditorSurname1={{{editor-last|{{{editor1-last|{{{editor|{{{editors|{{{editor-surname|{{{editor1-surname|}}}}}}}}}}}}}}}}}}
|EditorSurname2={{{editor2-last|{{{editor2-surname|}}}}}}
|EditorSurname3={{{editor3-last|{{{editor3-surname|}}}}}}
|EditorSurname4={{{editor4-last|{{{editor4-surname|}}}}}}
|EditorGiven1={{{editor-first|{{{editor1-first|{{{editor-given|{{{editor1-given|}}}}}}}}}}}}
|EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
|EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
|EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
|Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
|Editorlink2={{{editor2-link|}}}
|Editorlink3={{{editor3-link|}}}
|Editorlink4={{{editor4-link|}}}
 
|ARXIV={{{arxiv|}}}
|ASIN={{{asin|{{{ASIN|}}}}}}
|ASIN-TLD={{{asin-tld|}}}
|BIBCODE={{{bibcode|}}}
|DOI={{{doi|{{{DOI|}}}}}}
|DoiBroken={{{doi_brokendate|{{{doi_inactivedate|}}}}}}
|ISBN={{{isbn|{{{ISBN|}}}}}}
|ISSN={{{issn|{{{ISSN|}}}}}}
|JFM={{{jfm|{{{JFM|}}}}}}
|JSTOR={{{jstor|{{{JSTOR|}}}}}}
|LCCN={{{lccn|{{{LCCN|}}}}}}
|MR={{{mr|{{{MR|}}}}}}
|OCLC={{{oclc|{{{OCLC|}}}}}}
|OL={{{ol|{{{OL|}}}}}}
|OSTI={{{osti|{{{OSTI|}}}}}}
|PMC={{{pmc|{{{PMC|}}}}}}
|PMID={{{pmid|{{{PMID|}}}}}}
|RFC={{{rfc|{{{RFC|}}}}}}
|SSRN={{{ssrn|{{{SSRN|}}}}}}
|ZBL={{{zbl|}}}
|ID={{{id|{{{ID|}}}}}}
 
|laysummary={{{laysummary|}}}
|laydate={{{laydate|}}}
|laysource={{{laysource|}}}
 
|quote={{{quote|}}}
 
|Ref={{{ref|}}}


|amp={{{lastauthoramp|}}}
<noinclude>
|AuthorMask={{{author-mask|{{{authormask|}}}}}}
Based on Wikimedia Commons Template:Cite web, as of [https://commons.wikimedia.org/w/index.php?title=Template:Cite_web&oldid=392424502 6 February 2020].
|AuthorSep={{#ifeq:{{{author-separator|}}}|;|&#059;|{{{author-separator|&#059;}}}}}&#32;
|NameSep={{{author-name-separator|,}}}&#32;
|PS={{#if:{{{quote|}}}||{{{postscript|.}}}}}
|Sep={{#ifeq:{{{separator|{{{seperator}}} }}}|;|&#059;|{{{separator|{{{seperator|.}}} }}} }}
|template doc demo={{{template doc demo|}}}
|Trunc={{#if:{{{display-authors|}}}|{{{display-authors}}}|8}}
}}{{#if:{{{accessdate|}}}{{{accessdaymonth|}}}{{{accessday|}}}{{{accessmonthday|}}}{{{accessed|}}}{{{accessmonth|}}}{{{accessyear|}}}{{{dateformat|}}}{{{day|}}}{{{doilabel|}}}
}}</includeonly><noinclude>
Based on the Wikipedia Template:Cite web, as of [https://en.wikipedia.org/w/index.php?title=Template:Cite_web&action=edit&oldid=526379319 4 December 2012]. Relies on [[Template:Citation/core]].
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 09:36, 13 April 2021


Based on Wikimedia Commons Template:Cite web, as of 6 February 2020.