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
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><ref><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></ref></includeonly>
<noinclude>
<noinclude>
== Documentation ==
== Documentation ==
This template wraps a <nowiki><cite type="web">…</cite></nowiki> element inside its own <nowiki><ref>…</ref></nowiki> tag.
A minimal citation template that outputs plain text. 
You must wrap it in `<ref>…</ref>` yourself.


=== Parameters ===
=== Parameters ===   
* '''url''' (required): URL of the webpage  
* '''title''' (required) – title of the web page or article  
* '''title''' (required): Title of the page   
* '''author''' – author name(s), if any  
* '''last''', '''first''': Author’s surname and forename  
* '''publisher''' – publisher or site name   
* '''author''': Full author name (alternative)  
* '''date''' – publication date (YYYY-MM-DD)   
* '''date''': Publication date (YYYY-MM-DD)   
* '''url''' – URL of the resource  
* '''website''': Website or section name 
* '''access-date''' – date you accessed it (YYYY-MM-DD)
* '''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 ===   
=== Usage ===   
Insert in your article text at the point of citation:
In your article, *do not* use backticks, `<pre>`, or code fences—just:


<pre><nowiki>{{Cite web
    Some fact here<ref>{{Cite web
|url=https://example.com/article
      |title=Apple-1 Computer
|title=Example Article Title
      |author=Computer History Museum
|author=Jane Doe
      |publisher=Computer History Museum
|date=2021-08-01
      |date=2024-06-20
|website=Example Site
      |url=https://www.computerhistory.org/revolution/computers/4/101/2127
|publisher=Example Publisher
      |access-date=2024-06-20
|access-date=2025-05-15
    }}</ref>
}}</nowiki></pre>


Then, once per page (typically at the bottom), include:
…then, at the bottom **once**, include:


<nowiki><references/></nowiki>
    <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)