Difference between revisions of "Template:Cite web"

From radlines.org
Jump to navigation Jump to search
(Wikispecies)
(not necessary)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{
+
<includeonly>{{
 
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
 
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}}
   ||You must specify  '''''title = ''''' and '''''url = ''''' when using {{[[Template:cite web|cite web]]}}.
+
   ||Error on call to [[Template:cite web]]: Parameters '''url''' and '''title''' must be specified
{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}
 
 
}}{{
 
}}{{
 
#if: {{{archiveurl|}}}{{{archivedate|}}}  
 
#if: {{{archiveurl|}}}{{{archivedate|}}}  
 
   | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
 
   | {{#if: {{#if: {{{archiveurl|}}}| {{#if: {{{archivedate|}}} |1}}}}
     ||You must specify '''''archiveurl = ''''' and '''''archivedate = ''''' when using {{[[Template:cite web|cite web]]}}.
+
     ||Error on call to [[template:cite web]]: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted
{{#if: {{NAMESPACE}}|| [[Category:Articles with broken citations]]}}
 
 
}}
 
}}
 
}}{{#if: {{{author|}}}{{{last|}}}
 
}}{{#if: {{{author|}}}{{{last|}}}
Line 24: Line 22:
 
}}{{#if: {{{author|}}}{{{last|}}}|
 
}}{{#if: {{{author|}}}{{{last|}}}|
 
     {{#if: {{{date|}}}
 
     {{#if: {{{date|}}}
     | &#32;({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|{{{date}}}|{{{date}}}}})
+
     | &#32;({{#formatdate:{{{date}}}}})
 
     | {{#if: {{{year|}}}
 
     | {{#if: {{{year|}}}
 
       | {{#if: {{{month|}}}
 
       | {{#if: {{{month|}}}
Line 32: Line 30:
 
     }}
 
     }}
 
   |}}
 
   |}}
}}{{#if: {{{last|}}}{{{author|}}}
+
}}{{#if: {{{last|}}}{{{author|}}}tle
   | .&#32;}}{{
+
   | .&#32;}}{{#if: {{{archiveurl|}}}
  #if: {{{editor|}}}
 
  | &#32;{{{editor}}}:
 
}}{{#if: {{{curly|}}}|“|
 
  }}{{#if: {{{archiveurl|}}}
 
 
     | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
 
     | {{#if: {{{archiveurl|}}} | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }}}}
 
     | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }}}}
 
     | {{#if: {{{url|}}} | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }}}}
  }}{{#if: {{{curly|}}}||
+
}}{{#if: {{{doi|}}}  
}}{{#if: {{{format|}}} | &#32;({{{format}}})  
+
  | . [[w:Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi}}} {{{doi}}}]
}}{{#if:{{{language|}}}  
+
}}{{#if: {{{language|}}} | &#32;(in {{{language}}})  
   | &#32;(in {{{language}}})
+
}}{{#if: {{{format|}}}
 +
   | &#32;({{{format|}}})
 
}}{{#if: {{{work|}}}
 
}}{{#if: {{{work|}}}
 
   | .&#32;''{{{work}}}''
 
   | .&#32;''{{{work}}}''
 
}}{{#if: {{{pages|}}}
 
}}{{#if: {{{pages|}}}
 
   | &#32;{{{pages}}}
 
   | &#32;{{{pages}}}
}}{{#if: {{{publisher|}}}
+
}}{{#if: {{{publisher|{{{website|}}}}}}
   | .&#32;{{{publisher}}}{{#if: {{{author|}}}{{{last|}}}
+
   | .&#32;{{{publisher|{{{website}}}}}}{{#if: {{{author|}}}{{{last|}}}
 
     |  
 
     |  
 
     | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
 
     | {{#if: {{{date|}}}{{{year|}}}{{{month|}}} || }}
Line 55: Line 50:
 
}}{{#if: {{{author|}}}{{{last|}}}
 
}}{{#if: {{{author|}}}{{{last|}}}
 
   ||{{#if: {{{date|}}}
 
   ||{{#if: {{{date|}}}
     | &#32;({{#ifeq:{{#time:Y-m-d|{{{date}}}}}|{{{date}}}|{{{date}}}|{{#ifeq:{{#time:Y-m-d|{{{date}}}}}|1970-01-01|{{{date}}}|{{{date}}}}}}})
+
     | &#32;({{#if:{{{year|}}}{{{month|}}}|{{{date}}}|{{#formatdate:{{{date}}}}}}})
 
     | {{#if: {{{year|}}}
 
     | {{#if: {{{year|}}}
 
       | {{#if: {{{month|}}}
 
       | {{#if: {{{month|}}}
Line 64: Line 59:
 
   }}
 
   }}
 
}}.{{#if: {{{archivedate|}}}
 
}}.{{#if: {{{archivedate|}}}
   | &#32;Archived from [{{{url}}} the original] on {{{archivedate}}}.
+
   | &#32;Archived from [{{{url}}} the original] on {{#formatdate:{{{archivedate}}}}}.
}}{{#if: {{{doi|}}}  
 
  | &#32;doi:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}].
 
 
}}{{#if: {{{accessdate|}}}
 
}}{{#if: {{{accessdate|}}}
 
   | &#32;Retrieved on {{{accessdate}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}.
 
   | &#32;Retrieved on {{{accessdate}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}.
 
}}{{#if: {{{accessmonthday|}}}
 
}}{{#if: {{{accessmonthday|}}}
   | &#32;Retrieved on {{{accessmonthday}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}.
+
   | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}.
}}{{#if: {{{accessdaymonth|}}}
+
}}</includeonly><noinclude>
  | &#32;Retrieved on {{{accessdaymonth}}}{{#if: {{{accessyear|}}} | &#32;{{{accessyear}}} }}.
+
{{Wikimedia documentation|site=Wikiquote}}
}}{{#if: {{{quote|}}}
+
</noinclude>
  | &nbsp;“{{{quote}}}”
 
}}<noinclude>
 
{{Wikimedia documentation|site=Wikispecies}}</noinclude>
 

Latest revision as of 21:01, 21 May 2018

This template is adapted from Wikiquote. See the corresponding page there for documentation.