Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Cite/doc: Difference between revisions

Template page
m h2 not working?
better documentation with new parameters.
Line 1: Line 1:
{{tl|Cite}} is intended to provide an easy way to format citations. Citations should still be wrapped with the <nowiki><ref> and </ref></nowiki> tags.
== Useage ==
== Useage ==
<nowiki>{{cite
|source-name    =
|year          =
|month          =
|day            =
|title          =
|retrieved-date =
|source        =
}}</nowiki>
== Example ==
<nowiki>{{cite
|source-name    = Destiny
|year          = 2006
|month          = October
|day            = 31
|title          = This is an example of a title
|retrieved-date = 2024, November 27
|source        = https://destiny.gg/
}}</nowiki>
produces
{{cite
|source-name    = Destiny
|year          = 2006
|month          = October
|day            = 31
|title          = This is an example of a title
|retrieved-date = 2024, November 27
|source        = https://destiny.gg/
}}


An easy way to cite material for articles that doesn't currently work well :)<br>(it will be fixed at a later date)


:<code><nowiki>{{cite|1|2|3|4|5}}</nowiki></code>
----
The template also supports incomplete citations, though ideally any user adding a citation should add the full citation. 
<nowiki>{{cite
|source-name    = Destiny
|year          = 2006
|month          = October
|day            =
|title          = This is an example of a title
|retrieved-date = 2024, November 27
|source        = https://destiny.gg/
}}</nowiki>
produces


:<code><nowiki>{{cite|title|date created|source|date retrieved|url}}</nowiki></code>
{{cite
|source-name    = Destiny
|year          = 2006
|month          = October
|title          = This is an example of a title
|retrieved-date = 2024, November 27
 
}}


== Parameters ==
== Parameters ==
{| class="wikitable"
 
{{!}}-
<templatedata>
! Parameter || Description || Type|| Status
{
{{!}}-
"params": {
{{!}} 1 || Title of the content being cited. || content || required
"source-name": {
{{!}}-
"description": "The name of the source's origination.",
{{!}} 2 {{!!}} Date that the content being cited was published || content || optional
"suggested": true,
{{!}}-
"type": "content"
{{!}} 3 || Non-linked characters. || content || optional
},
|-
"year": {
| 4 || Date the content was retrieved. || 21:21, 31 May 2024 (UTC)
"description": "The year the material you are citing was posted.",
|-
"type": "number",
| 5 || {{wiki|URL}} of the content being cited. || optional
"suggested": true
|}
},
"month": {
"description": "The month the material you are citing was posted. Use the full name of the month (i.e. \"January\", \"October\", etc.) rather than the abbreviation (i.e. JAN, Sept. etc.) or number of the month (i.e. \"1\", \"06\", etc.)",
"type": "content",
"suggested": true
},
"day": {
"description": "The day the material you are citing was posted.",
"type": "number",
"suggested": true
},
"title": {
"description": "The title of the work/post/video/etc. you are citing. The template will automatically italicize the whole title, so do not attempt to italicize it on your own, and do not put the title in quotes (unless the title has quotes within it)."
},
"retrieved-date": {
"description": "The date you retrieved the material, use the YEAR, MONTH DAY format, for example: \"2024, October 22\"",
"type": "content",
"suggested": true
},
"source": {
"description": "The URL source the material is from. You can optionally mask the link with a shorter name.",
"type": "url",
"suggested": true
}
},
"format": "block"
}
</templatedata>

Revision as of 03:29, 28 November 2024

{{Cite}} is intended to provide an easy way to format citations. Citations should still be wrapped with the <ref> and </ref> tags.

Useage

{{cite
|source-name    = 
|year           = 
|month          = 
|day            = 
|title          = 
|retrieved-date = 
|source         = 
}}

Example

{{cite
|source-name    = Destiny
|year           = 2006
|month          = October
|day            = 31
|title          = This is an example of a title
|retrieved-date = 2024, November 27
|source         = https://destiny.gg/
}}

produces

Destiny (October 31, 2006). "This is an example of a title". Retrieved 2024, November 27.



The template also supports incomplete citations, though ideally any user adding a citation should add the full citation. 

{{cite
|source-name    = Destiny
|year           = 2006
|month          = October
|day            =
|title          = This is an example of a title
|retrieved-date = 2024, November 27
|source         = https://destiny.gg/
}}

produces

Destiny (October2006). "This is an example of a title". Retrieved 2024, November 27.

Parameters

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
source-namesource-name

The name of the source's origination.

Contentsuggested
yearyear

The year the material you are citing was posted.

Numbersuggested
monthmonth

The month the material you are citing was posted. Use the full name of the month (i.e. "January", "October", etc.) rather than the abbreviation (i.e. JAN, Sept. etc.) or number of the month (i.e. "1", "06", etc.)

Contentsuggested
dayday

The day the material you are citing was posted.

Numbersuggested
titletitle

The title of the work/post/video/etc. you are citing. The template will automatically italicize the whole title, so do not attempt to italicize it on your own, and do not put the title in quotes (unless the title has quotes within it).

Unknownoptional
retrieved-dateretrieved-date

The date you retrieved the material, use the YEAR, MONTH DAY format, for example: "2024, October 22"

Contentsuggested
sourcesource

The URL source the material is from. You can optionally mask the link with a shorter name.

URLsuggested