Template:Cite web/doc: Difference between revisions
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 | |||
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= | |first= | ||
|last= | |last= | ||
|title= | |title= | ||
|url= | |url= | ||
|website= | |website= | ||
|date= | |date= | ||
|access-date= | |access-date= | ||
|url-status=live|dead | |url-status=live|dead | ||
|archive-url= | |archive-url= | ||
|archive-date= | |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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
first | first | The authors first name. | String | optional |
last | last | The author's last name. | String | optional |
title | title | The webpage's or article's title. | String | required |
url | url | The url link to the webpage. | URL | required |
website | website | The name of the website. Don't link. | String | optional |
date | date | The date the webpage was created. | Date | optional |
access-date | access-date | The date the webpage was accessed to write this wiki article. | Date | optional |
url-status | url-status | Use to indicate if the citation should show the archive link by default. Use live/dead.
| String | suggested |
archive-url | archive-url | A link to an archive of the webpage. (archive.org, archive.ph etc) | URL | optional |
archive-date | archive-date | The date the webpage was archived | Date | optional |