Template:Cite web: Difference between revisions
(add dashes to archiveurl, archivedate) |
No edit summary Tag: 2017 source edit |
||
(8 intermediate revisions by 2 users not shown) | |||
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> | |||
{{Documentation}} | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
</noinclude> | </noinclude> |
Latest revision as of 03:59, 6 November 2023
Template documentation [view] [edit] [discuss] [history] [purge] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
UsageThis template may be used to cite websites. TemplateYou may copy the sample templates below for use in other pages. Unused parameters can be omitted.
{{cite web |title= |url= |format= |work= |publisher= |date= |dateformat= |accessdate=8 May 2024 |postscript= }}
{{cite web |author= |authorlink= |coauthors= |editor= |editor-link= |coeditors= |editor-type= |title= |url= |archiveurl= |archivedate= |format= |work= |publisher= |date= |dateformat= |month= |year= |accessdate=8 May 2024 |page= |pages= |language= |quote= |postscript= }}
{{cite web |last= |first= |authorlink= |coauthors= |editor-last= |editor-first= |editor-link= |coeditors= |editor-type= |title= |url= |format= |archiveurl= |archivedate= |work= |publisher= |date= |dateformat= |month= |year= |accessdate=8 May 2024 |page= |pages= |language= |quote= |postscript= }}
{{cite web |last= |first= |author= |authorlink= |coauthors= |editor-last= |editor-first= |editor= |editor-link= |coeditors= |editor-type= |title= |url= |archiveurl= |archivedate= |format= |work= |publisher= |date= |dateformat= |month= |year= |accessdate= |accessdaymonth= |accessmonthday= |accessyear= |page= |pages= |language= |quote= |postscript= }}
{{cite web |last = |first = |author = |authorlink = |coauthors = |editor-last = |editor-first = |editor = |editor-link = |coeditors = |editor-type = |title = |url = |archiveurl = |archivedate = |format = |work = |publisher = |date = |dateformat = |month = |year = |accessdate = |accessdaymonth = |accessmonthday = |accessyear = |page = |pages = |language = |quote = |postscript = }} ParametersAll parameters are optional unless otherwise indicated.
Examples
Source
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||