Templat:Citation/doc: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
JohnThorne (bicara | kontrib) Tidak ada ringkasan suntingan |
|||
(3 revisi perantara oleh 2 pengguna tidak ditampilkan) | |||
Baris 14:
Semua nama parameter dalam huruf kecil.
== Kutipan sederhana ==
This template gives the most commonly used attributes. You can copy the horizontal form or vertical form below and then add in extra attributes from the full list. Spacing and ordering is irrelevant.
Baris 43:
** '''accessdate''': Date<ref group = "n" name = "dates" /> when the url was accessed.
=== Contoh ===
{| class="wikitable"
|-
Baris 68:
|}
== Full citation parameters ==
These can be used for all types of publication except patents. All are optional and indentation is used simply to group related items — these may be mutually exclusive where indicated. Some hyphenated names can also be placed without hyphens.
Baris 149:
|}
== Parameter ==
=== Sintaks ===
{{csdoc|syntax|lua=yes}}
{{csdoc|sep_comma|lua=yes}}
=== COinS ===
{{csdoc|coins|lua=yes}}
=== Deprecated ===
{{csdoc|deprecated|lua=yes}}
=== Pemerian ===
==== Pengarang (author) ====
{{csdoc|author|lua=yes|coauthors=yes|others=yes}}
==== Editor ====
{{csdoc|editor|lua=yes}}
==== Judul (title) ====
{{csdoc|title|lua=yes|title_format=italics}}
{{csdoc|chapter|lua=yes}}
Baris 174:
{{csdoc|language|lua=yes}}
==== Tanggal (date) ====
{{csdoc|date|lua=yes}}
==== Periodical ====
{{csdoc|journal|lua=yes}}
==== Publisher ====
{{csdoc|publisher|lua=yes}}
==== Edition, series, volume ====
{{
{{
{{
==== In-source locations ====
{{csdoc|pages|lua=yes}}
==== URL ====
{{anchor|url}}{{csdoc|url}}
==== Chapter URL ====
{{anchor|chapterurl}}{{csdoc|chapterurl|lua=yes}}
==== Anchor ====
{{csdoc|ref2|lua=yes}}
==== Identifiers ====
{{anchor|id1}}{{csdoc|id1|lua=yes}}
{{anchor|id2}}{{csdoc|id2|lua=yes}}
==== Quote ====
{{csdoc|quote|lua=yes|cs2=yes}}
==== Laysummary ====
{{csdoc|lay|lua=yes}}
==== Display options ====
{{csdoc|display|lua=yes|cs2=yes}}
==== Subscription or registration required ====
{{csdoc|registration|lua=yes}}
== Contoh ==
=== Buku ===
{| class="wikitable"
|-
Baris 254:
|}
=== Web ===
{| class="wikitable"
|-
Baris 292:
|}
=== Journals, koran, majalah, dan periodical lain ===
{| class="wikitable"
|-
Baris 419:
|}
=== Parts of books, including encyclopedia articles ===
{| class="wikitable"
|-
Baris 540:
|}
=== Republications, or edited quotations in a periodical article ===
{| class="wikitable"
|-
Baris 614:
|}
=== Press release ===
{| class="wikitable"
|-
Baris 635:
|}
== Citing patents ==
=== Parameters (all are optional) ===
{| class="wikitable"
|-
Baris 670:
|}
=== Examples ===
{| class="wikitable"
| United States patent with multiple inventors
Baris 701:
|}
== Anchored citations ==
This template can generate a citation that can be combined with [[WP:CITESHORT|shortened footnotes]] or [[Wikipedia:Parenthetical referencing|parenthetical referencing]]. It does this by creating an [[HTML element#Anchor|HTML anchor]] containing an ID. The special parameter {{para|ref|harv}} generates an ID suitable for [[Harvard referencing]] templates such as {{tl|harv}} as specified in the next section; this is the default for the {{tl|citation}} template. To disable anchor generation, specify {{para|ref|none}} (in contrast, other Cite templates such as {{tl|cite book}} and {{tl|cite news}} do not create an anchor by default). You can also specify the ID directly, using the {{para|ref|<var>ID</var>}} parameter. For example, suppose an article's ''References'' section contains the markup:
* <code><nowiki>{{Citation |author=Sigmund Freud |title=Civilization and Its Discontents |year=1930 |ref=CivDis}}</nowiki></code>
Baris 708:
Then, the markup "<code><nowiki>([[#CivDis|Freud 1930]])</nowiki></code>" generates a parenthetical reference "([[#CivDis|Freud 1930]])" containing a wikilink to the citation (try clicking on the wikilink).
=== Anchors for Harvard referencing templates ===
IDs compatible with Harvard referencing templates such as {{tl|harv}} are computed from the last names of the authors and the year of the cited source. For example, the markup "<code><nowiki>{{harv|Wright|Evans|1851|p=ix}}</nowiki></code>" generates the Harvard reference "{{harv|Wright|Evans|1851|p=ix}}", which wikilinks to the citation whose markup and appearance are shown below:
* <code><nowiki>{{Citation |last1=Wright |first1=Thomas |last2=Evans |first2=R. H. |title=Historical and Descriptive Account of the Caricatures of James Gillray |location=London |publisher=Henry G. Bohn |year=1851 |oclc=59510372}}</nowiki></code>
Baris 723:
Similarly, the year is used, as specified by {{para|year}}. If no year is given, this template attempts to derive the year from {{para|date}} (or, if no date is given, from {{para|publication-date}}) by applying the [[mw:Help:Extension:ParserFunctions##time|MediaWiki#time function]]. This heuristic works with many common date formats (American, International and [[ISO 8601#Calendar dates|ISO 8601 standard format]] YYYY-MM-DD as listed in [[WP:MOS]]), but may not work as expected with other formats, so when in doubt it may be safer to use {{para|year}}. Note that if only a year, say 2005, is known you must use {{para|year|2005}} rather than {{para|date|2005}}.
=== IDs must be unique ===
Names, years, and hand-specified IDs must be chosen so that the IDs are unique within a page; otherwise the HTML will not conform to the W3C standards, and any references to the citations will not work reliably. For example, suppose a page contains the following two citations with {{tl|harv}}-compatible IDs:
* {{Citation |last1=Montes |first1=G. |last2=Halterman |first2=J. S. |year=2008a |journal=Pediatrics |volume=121 |issue=4 |pages=e821–6 |title=Association of Childhood Autism Spectrum Disorders and Loss of Family Income |doi=10.1542/peds.2007-1594 |pmid=18381511 |url= http://pediatrics.aappublications.org/cgi/content/full/121/4/e821 }}
Baris 732:
It is good practice to verify that a page does not contain duplicate IDs by using the [[W3C Markup Validation Service]]; see ''[[#External links|External links]]''.
== Dates ==
{{Reflist|group="n"|refs=<ref name="dates" group="n">The format of dates in the references of an article should use consistent and unambiguous styles. Example formats used in Wikipedia citations include:
* ''2009''
Baris 745:
</ref>}}
== Tools ==
See [[Wikipedia:Citing sources#Citation templates and tools]] for a list of tools that can help create a reference in the "citation" format.
== Template Data ==
{{notice|This template data section needs to be edited. It includes deprecated parameters and does not include parameters that were added in the Lua updates. It also includes a mix of patent and non-patent parameters.}}
Baris 2.250:
"type": "string",
"required": false
},
"translator-first": {},
"translator-last": {},
"translator2-first": {},
"translator2-last": {}
},
"maps": {
"citoid": {
"edition": "edition",
"title": "title",
"url": "url",
"publisher": "publisher",
"publicationTitle": "journal",
"date": "date",
"accessDate": "accessdate",
"location": "location",
"ISSN": [
"issn"
],
"ISBN": [
"isbn"
],
"PMCID": "pmc",
"PMID": "pmid",
"oclc": "oclc",
"pages": "pages",
"volume": "volume",
"series": "series",
"issue": "issue",
"DOI": "doi",
"language": "language",
"contributor": [
[
"first",
"last"
],
[
"first2",
"last2"
],
[
"first3",
"last3"
],
[
"first4",
"last4"
],
[
"first5",
"last5"
],
[
"first6",
"last6"
],
[
"first7",
"last7"
],
[
"first8",
"last8"
],
[
"first9",
"last9"
]
],
"author": [
[
"first",
"last"
],
[
"first2",
"last2"
],
[
"first3",
"last3"
],
[
"first4",
"last4"
],
[
"first5",
"last5"
],
[
"first6",
"last6"
],
[
"first7",
"last7"
],
[
"first8",
"last8"
],
[
"first9",
"last9"
]
],
"translator": [
[
"translator-first",
"translator-last"
],
[
"translator2-first",
"translator2-last"
]
],
"inventor": [
[
"inventor-first",
"inventor-last"
],
[
"inventor2-first",
"inventor2-last"
],
[
"inventor3-first",
"inventor3-last"
]
],
"editor": [
[
"editor-first",
"editor-last"
],
[
"editor2-first",
"editor2-last"
]
]
}
},
"format": "inline"
}
</templatedata>
Baris 2.259 ⟶ 2.401:
{{Wikipedia referencing}}
<includeonly>
[[
</includeonly>
|