Jump to content

Template:Cite web: Difference between revisions

Taffy (talk | contribs)
Created page with "<noinclude> {{Documentation}} This template is used to cite web sources in Wikipedia articles. ==Usage== <pre> {{cite web | url = | title = | website = | publisher = | date = | access-date = | author = | first = | last = | archive-url = | archive-date = | url-status = | quote = }} </pre> ==Required parameters== * '''url''' - The URL of the web page being cited * '''title''' - The title of the web page * '''access-date''' - The date the web page was accessed (format: YY..."
 
Taffy (talk | contribs)
No edit summary
 
Line 92: Line 92:
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>
<includeonly>{{#if:{{{url|}}}|<ref{{#if:{{{name|}}}| name="{{{name}}}"}}}>{{#if:{{{last|}}}|{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}|{{#if:{{{author|}}}|{{{author}}}}}}}{{#if:{{{last|{{{author|}}}}}}|{{#if:{{{date|}}}| ({{{date}}})}}. }}{{#if:{{{title|}}}|{{#if:{{{url|}}}|[{{{url}}} "{{{title}}}"]|"{{{title}}}"}}|Error: Missing title}}{{#if:{{{website|}}}|. ''{{{website}}}''}}{{#if:{{{publisher|}}}|. {{{publisher}}}}}{{#if:{{{date|}}}|{{#if:{{{last|{{{author|}}}}}}||. {{{date}}}}}}}{{#if:{{{archive-url|}}}|. {{#if:{{{url-status|}}}|{{#switch:{{{url-status}}}|dead=Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]|live=Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]|Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]}}|Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]}} on {{{archive-date|}}}}}{{#if:{{{access-date|}}}|. Retrieved {{{access-date}}}|. Error: Missing access-date}}{{#if:{{{quote|}}}|: "{{{quote}}}"}}</ref>|Error: Missing URL}}</includeonly>
<includeonly>{{#if:{{{url|}}}|{{#if:{{{last|}}}|{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}|{{#if:{{{author|}}}|{{{author}}}}}}}{{#if:{{{last|{{{author|}}}}}}|{{#if:{{{date|}}}| ({{{date}}})}}. }}{{#if:{{{title|}}}|{{#if:{{{url|}}}|[{{{url}}} "{{{title}}}"]|"{{{title}}}"}}|Error: Missing title}}{{#if:{{{website|}}}|. ''{{{website}}}''}}{{#if:{{{publisher|}}}|. {{{publisher}}}}}{{#if:{{{date|}}}|{{#if:{{{last|{{{author|}}}}}}||. {{{date}}}}}}}{{#if:{{{archive-url|}}}|. {{#if:{{{url-status|}}}|{{#switch:{{{url-status}}}|dead=Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]|live=Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]|Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]}}|Archived from [{{#if:{{{url|}}}|{{{url}}}}} the original]}} on {{{archive-date|}}}}}{{#if:{{{access-date|}}}|. Retrieved {{{access-date}}}|. Error: Missing access-date}}{{#if:{{{quote|}}}|: "{{{quote}}}"}}|Error: Missing URL}}</includeonly>