Difference between revisions of "Template:Cite web"

From CWCki
Jump to navigation Jump to search
m
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{
{{ <!--============  Writer  ============-->
<!--============  Writer  ============-->
#if: {{{first|{{{writer|{{{last|}}}}}}}}}
#if: {{{first|{{{writer|{{{last|}}}}}}}}}


Line 9: Line 8:


<!--============  Link and title  ============-->
<!--============  Link and title  ============-->
#ifeq: {{{url-status|}}} | dead | <s> }}{{
#ifeq: {{{url-status|}}} | dead | <s> }}{{


#if: {{{title|}}}  
#if: {{{title|}}}  
   | [{{{url}}} {{{title|}}}]
   | [{{{url}}} {{{title|}}}]
   | {{{url}}}}}{{
   | {{{url}}}}}</s>{{


#ifeq: {{{url-status|}}} | dead | </s> }}{{
<!--============  Archival ============-->
 
#if: {{{archive | {{{autoarchive | {{{wayback|}}} }}} }}}
<!--============  Archive ============-->
   |&nbsp;[{{{archive|https://web.archive.org/web/{{{autoarchive|{{{wayback|}}}}}}/{{{url}}}}}} (archived)] <!-- If archive link provided -->
#if: {{{archive|{{{autoarchive|}}}}}}
  | {{#ifeq: {{{archive-priority|{{{priority|}}}}}} | high  <!-- If no link provided, and site is volatile, display warning -->
   |&nbsp;[{{{archive
    | &nbsp;<span class="basic-tooltip" style="color: red;" title=
  |https://web.archive.org/web/{{{autoarchive|}}}/{{{url}}}}}} (archived)]}}. {{
    "{{{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  ============-->
<!--============  Website name  ============-->
#if: {{{website|}}}
#if: {{{website|}}}
   |''{{{website|}}}''.}}<noinclude>
   |''{{{website|}}}''.}}<noinclude>


<!--============  END OF CODE  ============-->
<!--============  END OF CODE  ============-->
Line 43: Line 44:
<pre>{{Cite web|url=https://wikipedia.org|title=Wikipedia Main Page|first=John|last=Smith|website=[[Wikipedia]]}}</pre>
<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]]}}
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: