Jump to content

Template:Cite web: Difference between revisions

From RetroTechCollection
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly><ref>
<includeonly>
''{{{title|}}}''{{#if:{{{author|}}}| {{{author}}}}}{{#if:{{{date|}}}|, {{{date}}}}}{{#if:{{{website|}}}|, {{{website}}}}}{{#if:{{{publisher|}}}|, {{{publisher}}}}}{{#if:{{{url|}}}|, [{{{url}}} link]}}}{{#if:{{{access-date|}}}| (accessed {{{access-date}}})}}}
''{{{title|}}}''{{#if:{{{author|}}}| {{{author}}}}}{{#if:{{{publisher|}}}|, {{{publisher}}}}}{{#if:{{{date|}}}|, {{{date}}}}}[{{{url}}} link]{{#if:{{{access-date|}}}| (accessed {{{access-date}}})}}
</ref></includeonly>
</includeonly>
<noinclude>
<noinclude>
== Documentation ==
== Documentation ==
A simple, self‐contained citation template that requires *no* Lua or special extensions.
A minimal citation template that outputs plain text. 
You must wrap it in `<ref>…</ref>` yourself.


=== Parameters ===
=== Parameters ===
* '''title''' (required) – title of the work  
* '''title''' (required) – title of the web page or article  
* '''author''' – author name(s)   
* '''author''' – author name(s), if any  
* '''date''' – publication date 
* '''publisher''' – publisher or site name   
* '''website''' – website or source name   
* '''date''' – publication date (YYYY-MM-DD)  
* '''publisher''' – publisher or organization  
* '''url''' – URL of the resource   
* '''url''' – URL of the resource   
* '''access-date''' – date you accessed it
* '''access-date''' – date you accessed it (YYYY-MM-DD)


=== Usage ===   
=== Usage ===   
Insert in your article *without* any backticks or `<pre>`:
In your article, *do not* use backticks, `<pre>`, or code fences—just:


```wikitext
    Some fact here<ref>{{Cite web
Some fact here {{Cite web
      |title=Apple-1 Computer
|title=Apple-1 Computer
      |author=Computer History Museum
|author=Computer History Museum
      |publisher=Computer History Museum
|date=2024-06-20
      |date=2024-06-20
|website=computerhistory.org
      |url=https://www.computerhistory.org/revolution/computers/4/101/2127
|url=https://www.computerhistory.org/revolution/computers/4/101/2127
      |access-date=2024-06-20
|access-date=2024-06-20
    }}</ref>
}}
 
…then, at the bottom **once**, include:
 
    <references/>
</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)