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 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>