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>{{ | <includeonly>{{#if: {{#if:{{{url|}}} | {{#if:{{{title|}}}|1}}}} | ||
| | |||
|<font style="color:red; font-size:medium">'''Error: title= and url= must be specified'''</font> | |||
}}{{#if: {{{archiveurl|}}}{{{archivedate|}}} | |||
| | |{{#if: {{#if:{{{archiveurl|}}}|{{#if:{{{archivedate|}}}|1}}}} | ||
| | | | ||
| | |<font style="color:red; font-size:medium">'''Error: archiveurl= and archivedate= must be both be specified or both omitted'''</font> | ||
}} | |||
| | }}{{#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> {{{coauthors}}} }}{{#if:{{{editorlink|}}}{{{editor-link|}}} | ||
| | |{{#if:{{{editor|}}} | ||
|<nowiki>;</nowiki> [[{{{editorlink|{{{editor-link}}}}}} | {{{editor}}}]] | |||
|<nowiki>;</nowiki> [[{{{editorlink|{{{editor-link}}}}}} | {{{editor-last}}}, {{{editor-first}}}]] | |||
| | }} | ||
| | |{{#if:{{{editor|}}}{{{editor-last|}}} | ||
|{{#if:{{{editor|}}} | |||
| | |<nowiki>;</nowiki> {{{editor}}} | ||
| | |<nowiki>;</nowiki> {{{editor-last}}}, {{{editor-first}}} | ||
| | }} | ||
| | }} | ||
| | }}{{#if:{{{coeditors|}}}|<nowiki>;</nowiki> {{{coeditors}}} }}{{#if:{{{editor-type|}}} | ||
|, {{{editor-type}}} | |||
|{{#if:{{{editor|}}}{{{editor-last|}}} | |||
|{{#if:{{{coeditors|}}}|, eds.|, ed.}} | |||
| | }} | ||
}} | |||
}}{{#if:{{{author|}}}{{{last|}}} | |||
|{{#if:{{{date|}}} | |||
| ({{#dateformat:{{{date}}}|{{#if:{{{dateformat|}}}|{{{dateformat}}} }} }}) | |||
|{{#if:{{{year|}}} | |||
|{{#if:{{{month|}}} | |||
| ({{{month}}} {{{year}}}) | |||
| ({{{year}}}) | |||
}} | |||
}} | |||
}} | |||
| | |||
| | |||
| | |||
| | | | ||
|{{ | }}{{#if:{{{last|}}}{{{author|}}}|. }}{{#if:{{{archiveurl|}}} | ||
|{{#if:{{{archiveurl|}}} | |||
|{{#if:{{{title|}}} | [{{{archiveurl}}} {{{title}}}] }} | |||
}} | |||
|{{#if:{{{url|}}} | |||
|{{#if:{{{title|}}} | [{{{url}}} {{{title}}}] }} | |||
}} | |||
}}{{#if:{{{language|}}} |  <span style="font-size: 0.95em; font-weight: bold; color:#555; position: relative;">(in {{{language}}})</span> | |||
}}{{#if:{{{format|}}}| ({{{format|}}}) | |||
}}{{#if:{{{work|{{{website|}}}}}}|. ''{{{work|{{{website}}}}}}'' | |||
}}{{#if:{{{page|{{{pages|}}}}}}| {{{page|{{{pages}}}}}} | |||
}}{{#if:{{{publisher|}}} | |||
|. {{{publisher}}}{{#if:{{{author|}}}{{{last|}}} | |||
| | |||
|{{#if:{{{date|}}}{{{year|}}}{{{month|}}}||}} | |||
}} | }} | ||
}}{{#if:{{{author|}}}{{{last|}}} | |||
| | | | ||
| | |{{#if:{{{date|}}} | ||
| | | ({{#dateformat:{{{date}}}|{{#if:{{{dateformat|}}}|{{{dateformat}}} }} }}) | ||
|{{#if:{{{year|}}} | |||
| | |{{#if:{{{month|}}} | ||
|{{# | | ({{{month}}} {{{year}}}) | ||
| ({{{year}}}) | |||
}} | |||
}} | |||
}} | }} | ||
}}{{#if:{{{archivedate|}}}|. Archived from [{{{url}}} the original] on {{#dateformat:{{{archivedate}}}|{{#if:{{{dateformat|}}}|{{{dateformat}}} }} }} | |||
}}{{#if:{{{accessdate|}}}|. Retrieved on {{#dateformat:{{{accessdate}}}|{{#if:{{{dateformat|}}}|{{{dateformat}}} }} }} }}{{#if:{{{accessmonthday|}}}| Retrieved on {{{accessmonthday}}}, {{{accessyear}}} | |||
}}{{#if:{{{accessdaymonth|}}}| Retrieved on {{{accessdaymonth}}} {{{accessyear}}} | |||
}}{{#if:{{{postscript|}}} | |||
|{{#ifeq:{{{postscript}}}|no||{{{postscript}}} }} | |||
|. | |||
}}{{#if:{{{quote|}}}| "{{{quote}}}"}}</includeonly> | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
<noinclude> | |||
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]. | |||
Based on | |||
[[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.