Difference between revisions of "Template:Cite web"
Jump to navigation
Jump to search
m |
|||
(40 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ <!--============ Writer ============--> | |||
#if: {{{first|{{{writer|{{{last|}}}}}}}}} | |||
|{{{writer|{{{last|}}}}}}{{ | |||
#if: {{{first|}}} | |||
|{{#if: {{{last|}}} | |||
| , }}{{{first|}}}}}. }}{{ | |||
<!--============ Link and title ============--> | |||
#ifeq: {{{url-status|}}} | dead | <s> }}{{ | |||
#if: {{{title|}}} | |||
| [{{{url}}} {{{title|}}}] | |||
| {{{url}}}}}</s>{{ | |||
<!--============ Archival ============--> | |||
#if: {{{archive | {{{autoarchive | {{{wayback|}}} }}} }}} | |||
| [{{{archive|https://web.archive.org/web/{{{autoarchive|{{{wayback|}}}}}}/{{{url}}}}}} (archived)] <!-- If archive link provided --> | |||
| {{#ifeq: {{{archive-priority|{{{priority|}}}}}} | high <!-- If no link provided, and site is volatile, display warning --> | |||
| <span class="basic-tooltip" style="color: red;" title= | |||
"{{{website|This site}}} is unreliable, and may be in danger of crashing and losing the information here. Editors should add a link to a suitable archived version as soon as possible." | |||
>''Warning: volatile site''</span><includeonly>{{ | |||
#ifeq: {{NAMESPACE}} | |||
| <!-- Main --> | [[Category:Articles with endangered links]] | |||
}} | |||
</includeonly>}}}}. {{ | |||
<!--============ Website name ============--> | |||
#if: {{{website|}}} | |||
|''{{{website|}}}''.}}<noinclude> | |||
<!--============ END OF CODE ============--> | |||
{{Usage| | {{Usage| | ||
Note: The ' | Note: The 'autoarchive' parameter is just the number in the Wayback Machine. If this doesn't work, or if you're using an alternative site, just use the normal 'archive' parameter. | ||
<pre>{{Cite web|url=https://wikipedia.org|title=Wikipedia Main Page|writer=Wikipedia editors|website=[[Wikipedia]]|autoarchive=20050214084215|url-status=dead}}</pre> | |||
Displays: {{Cite web|url=https://wikipedia.org|title=Wikipedia Main Page|writer=Wikipedia editors|website=[[Wikipedia]]|autoarchive=20050214084215|url-status=dead}} | |||
<pre>{{Cite web|url=https://wikipedia.org|website=[[Wikipedia]]|autoarchive=20050214084215}}</pre> | |||
Displays: {{Cite web|url=https://wikipedia.org|website=[[Wikipedia]]|autoarchive=20050214084215}} | |||
<pre>{{Cite web|url=https://wikipedia.org|title=Wikipedia Main Page|first=John|last=Smith|website=[[Wikipedia]]}}</pre> | |||
}} | Displays: {{Cite web|url=https://wikipedia.org|title=Wikipedia Main Page|first=John|last=Smith|website=[[Wikipedia]]|archive-priority=high}}}} | ||
==See also== | |||
'''Sub-templates include:''' | |||
* [[Template:Cite farms]] | |||
* [[Template:Cite Reddit]] | |||
</noinclude> | </noinclude> |
Latest revision as of 13:55, 27 October 2021
{{{url}}}.
Usage
These usage notes will not be included in articles bearing this template.
Note: The 'autoarchive' parameter is just the number in the Wayback Machine. If this doesn't work, or if you're using an alternative site, just use the normal 'archive' parameter.
{{Cite web|url=https://wikipedia.org|title=Wikipedia Main Page|writer=Wikipedia editors|website=[[Wikipedia]]|autoarchive=20050214084215|url-status=dead}}
Displays: Wikipedia editors. Wikipedia Main Page (archived). Wikipedia.
{{Cite web|url=https://wikipedia.org|website=[[Wikipedia]]|autoarchive=20050214084215}}
Displays: https://wikipedia.org (archived). Wikipedia.
{{Cite web|url=https://wikipedia.org|title=Wikipedia Main Page|first=John|last=Smith|website=[[Wikipedia]]}}
Displays: Smith, John. Wikipedia Main Page Warning: volatile site. Wikipedia.
See also
Sub-templates include: