Jump to content

Template:Cite web: Difference between revisions

From RetroTechCollection
Created page with "<includeonly><ref><cite type="web" |url = {{{url|}}} |title = {{{title|}}} |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></ref></includeonly> <noinclude> == Docume..."
 
No edit summary
Line 1: Line 1:
<includeonly><ref><cite type="web"
<includeonly><cite type="web"
|url        = {{{url|}}}
|url        = {{{url|}}}
|title      = {{{title|}}}
|title      = {{{title|}}}
Line 13: Line 13:
|url-status  = {{{url-status|}}}
|url-status  = {{{url-status|}}}
|doi        = {{{doi|}}}
|doi        = {{{doi|}}}
/></cite></ref></includeonly>
/></cite></includeonly>
<noinclude>
<noinclude>
== Documentation ==
== Documentation ==
This template wraps a <nowiki><cite type="web">…</cite></nowiki> element inside its own <nowiki><ref>…</ref></nowiki> tag.
Wraps a <nowiki><cite type="web">…</cite></nowiki>.


=== Parameters ===
Usage:
* '''url''' (required): URL of the webpage 
<nowiki>{{Cite web
* '''title''' (required): Title of the page 
|url=…
* '''last''', '''first''': Author’s surname and forename 
|title=…
* '''author''': Full author name (alternative) 
|website=…
* '''date''': Publication date (YYYY-MM-DD) 
|access-date=…
* '''website''': Website or section name 
}}</nowiki>
* '''publisher''': Publishing organisation 
* '''access-date''': Date you accessed the URL (e.g. 2025-05-15) 
* '''archive-url''', '''archive-date''': Archived copy URL and date 
* '''url-status''': live, dead, redirected 
* '''doi''': Digital Object Identifier 


=== Usage === 
Place *inside* <nowiki>`<ref></ref>`</nowiki> tags:
Insert in your article text at the point of citation:
<nowiki><ref>{{Cite web|…}}</ref></nowiki>
 
<pre><nowiki>{{Cite web
|url=https://example.com/article
|title=Example Article Title
|author=Jane Doe
|date=2021-08-01
|website=Example Site
|publisher=Example Publisher
|access-date=2025-05-15
}}</nowiki></pre>
 
Then, once per page (typically at the bottom), include:
 
<nowiki><references/></nowiki>
</noinclude>
</noinclude>

Revision as of 23:46, 15 May 2025


Documentation

Wraps a <cite type="web">…</cite>.

Usage: {{Cite web |url=… |title=… |website=… |access-date=… }}

Place *inside* `<ref>…</ref>` tags: <ref>{{Cite web|…}}</ref>