Jump to content

Template:Cite web: Difference between revisions

From RetroTechCollection
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><cite type="web"
<includeonly>
|url        = {{{url|}}}
''{{{title|}}}''{{#if:{{{author|}}}| {{{author}}}}}{{#if:{{{publisher|}}}|, {{{publisher}}}}}{{#if:{{{date|}}}|, {{{date}}}}}—[{{{url}}} link]{{#if:{{{access-date|}}}| (accessed {{{access-date}}})}}
|title      = {{{title|}}}
</includeonly>
|last        = {{{last|}}}
|first      = {{{first|}}}
|author      = {{{author|}}}
|date        = {{{date|}}}
|website    = {{{website|}}}
|publisher  = {{{publisher|}}}
|access-date = {{{access-date|}}}
|archive-url = {{{archive-url|}}}
|archive-date= {{{archive-date|}}}
|url-status  = {{{url-status|}}}
|doi        = {{{doi|}}}
/></cite></includeonly>
<noinclude>
<noinclude>
== Documentation ==
== Documentation ==
Wraps a <nowiki><cite type="web">…</cite></nowiki>.
A minimal citation template that outputs plain text. 
You must wrap it in `<ref>…</ref>` yourself.


Usage:
=== Parameters === 
<nowiki>{{Cite web
* '''title''' (required) – title of the web page or article 
|url=…
* '''author''' – author name(s), if any 
|title=…
* '''publisher''' – publisher or site name 
|website=…
* '''date''' – publication date (YYYY-MM-DD) 
|access-date=…
* '''url''' – URL of the resource 
}}</nowiki>
* '''access-date''' – date you accessed it (YYYY-MM-DD)


Place *inside* <nowiki>`<ref>…</ref>`</nowiki> tags:
=== Usage === 
<nowiki><ref>{{Cite web|}}</ref></nowiki>
In your article, *do not* use backticks, `<pre>`, or code fences—just:
 
    Some fact here<ref>{{Cite web
      |title=Apple-1 Computer
      |author=Computer History Museum
      |publisher=Computer History Museum
      |date=2024-06-20
      |url=https://www.computerhistory.org/revolution/computers/4/101/2127
      |access-date=2024-06-20
    }}</ref>
 
…then, at the bottom **once**, include:
 
    <references/>
</noinclude>
</noinclude>

Latest revision as of 23:54, 15 May 2025


Documentation

[edit source]

A minimal citation template that outputs plain text. You must wrap it in `[1]` yourself.

Parameters

[edit source]
  • title (required) – title of the web page or article
  • author – author name(s), if any
  • publisher – publisher or site name
  • date – publication date (YYYY-MM-DD)
  • url – URL of the resource
  • access-date – date you accessed it (YYYY-MM-DD)

In your article, *do not* use backticks, `

`, or code fences—just:

    Some fact here[2]

…then, at the bottom **once**, include:

    
  1. Apple-1 Computer– Computer History Museum, Computer History Museum, 2024-06-20—link(accessed 2024-06-20)