Jump to content

Template:Cite web/doc: Difference between revisions

From Consumer_Action_Taskforce
m add note
m Rewrite documentation to include a data table
Line 2: Line 2:
==Usage==
==Usage==
See the [https://en.wikipedia.org/w/index.php?title=Template:Cite_web/doc&oldid=1272810747 full documentation on wikipedia] for extensive examples and documentation.  
See the [https://en.wikipedia.org/w/index.php?title=Template:Cite_web/doc&oldid=1272810747 full documentation on wikipedia] for extensive examples and documentation.  
A good general template to use is:  
 
A good general rule of thumb for fields to use when using this template in references is the following:
<pre>
<pre>
<ref name=" ">
<ref name="shortname">
{{cite web  
{{cite web  
|first= (optional)
|first=  
|last=(optional)
|last=  
|title=
|title=
|url=  
|url=  
|website=(optional)
|website=
|date=(publication date- optional)
|date=
|access-date=(optional)
|access-date=
|url-status=live|dead(optional)
|url-status=live|dead
|archive-url=(optional)
|archive-url=
|archive-date=(optional-tied with archive url)
|archive-date=
}}</ref>
}}</ref>
</pre>
</pre>
=== Template Data ===
<templatedata>
{
"params": {
"first": {
"description": "The authors first name.",
"type": "string"
},
"last": {
"description": "The author's last name.",
"type": "string"
},
"title": {
"description": "The webpage's or article's title.",
"type": "string",
"required": true
},
"url": {
"description": "The url link to the webpage.",
"type": "url",
"required": true
},
"website": {
"description": "The name of the website. Don't link.",
"type": "string"
},
"date": {
"description": "The date the webpage was created.",
"type": "date"
},
"access-date": {
"description": "The date the webpage was accessed to write this wiki article.",
"type": "date"
},
"url-status": {
"description": "Use to indicate if the citation should show the archive link by default. Use live/dead.",
"type": "string",
"suggestedvalues": [
"live",
"dead"
],
"suggested": true
},
"archive-url": {
"description": "A link to an archive of the webpage. (archive.org, archive.ph etc)",
"type": "url"
},
"archive-date": {
"description": "The date the webpage was archived",
"type": "date"
}
},
"description": "The following is NOT a complete list of parameters, they just provide a good all around version of the temlpate for the needs of the wiki.\nVisit the linked wikipedia documentation for a complete overview. "
}
</templatedata>

Revision as of 13:09, 26 February 2025

Usage

See the full documentation on wikipedia for extensive examples and documentation.

A good general rule of thumb for fields to use when using this template in references is the following:

<ref name="shortname">
{{cite web 
|first= 
|last= 
|title=
|url= 
|website=
|date=
|access-date=
|url-status=live|dead
|archive-url=
|archive-date=
}}</ref>

Template Data

The following is NOT a complete list of parameters, they just provide a good all around version of the temlpate for the needs of the wiki. Visit the linked wikipedia documentation for a complete overview.

Template parameters

ParameterDescriptionTypeStatus
firstfirst

The authors first name.

Stringoptional
lastlast

The author's last name.

Stringoptional
titletitle

The webpage's or article's title.

Stringrequired
urlurl

The url link to the webpage.

URLrequired
websitewebsite

The name of the website. Don't link.

Stringoptional
datedate

The date the webpage was created.

Dateoptional
access-dateaccess-date

The date the webpage was accessed to write this wiki article.

Dateoptional
url-statusurl-status

Use to indicate if the citation should show the archive link by default. Use live/dead.

Suggested values
live dead
Stringsuggested
archive-urlarchive-url

A link to an archive of the webpage. (archive.org, archive.ph etc)

URLoptional
archive-datearchive-date

The date the webpage was archived

Dateoptional