Template:Cite web: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
<includeonly><cite type="web"
<includeonly><ref>
|url        = {{{url|}}}
''{{{title|}}}''{{#if:{{{author|}}}| {{{author}}}}}{{#if:{{{date|}}}|, {{{date}}}}}{{#if:{{{website|}}}|, {{{website}}}}}{{#if:{{{publisher|}}}|, {{{publisher}}}}}{{#if:{{{url|}}}|, [{{{url}}} link]}}}{{#if:{{{access-date|}}}| (accessed {{{access-date}}})}}}
|title      = {{{title|}}}
</ref></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 simple, self‐contained citation template that requires *no* Lua or special extensions.


Usage:
=== Parameters ===
<nowiki>{{Cite web
* '''title''' (required) – title of the work 
|url=…
* '''author''' – author name(s) 
|title=…
* '''date''' – publication date 
|website=…
* '''website''' – website or source name 
|access-date=…
* '''publisher''' – publisher or organization 
}}</nowiki>
* '''url''' – URL of the resource 
* '''access-date''' – date you accessed it


Place *inside* <nowiki>`<ref>…</ref>`</nowiki> tags:
=== Usage === 
<nowiki><ref>{{Cite web|…}}</ref></nowiki>
Insert in your article *without* any backticks or `<pre>`:
</noinclude>
 
```wikitext
Some fact here {{Cite web
|title=Apple-1 Computer
|author=Computer History Museum
|date=2024-06-20
|website=computerhistory.org
|url=https://www.computerhistory.org/revolution/computers/4/101/2127
|access-date=2024-06-20
}}