ទំព័រគំរូ:Cite web/doc៖ ភាពខុសគ្នារវាងកំណែនានា

ខ្លឹមសារដែលបានលុបចោល ខ្លឹមសារដែលបានសរសេរបន្ថែម
Reverted 2 edits by Cmayes82 (talk) identified as vandalism to last revision by Djsasso. (TW)
No edit summary
បន្ទាត់ទី១៖
{{Documentation subpage}}
{{high-risk| approximately 3000000 }}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{AWB standard installation}}
{{csdoc|lua}}
{{csdoc|cs1}}
 
{{csdoc|lead|web sources that are not characterized by another CS1 template}}
This [[Wikipedia:Template namespace|template]] is used to cite online sources in Wikipedia articles. {{tl|Cite news}} can also be used when citing a news source; for general information about citations in Wikipedia articles, see [[Wikipedia:Cite sources]]. A general discussion of the use of templates for adding citations to Wikipedia articles is available at [[Wikipedia:Citation templates]].
 
==Usage==
Line ៩ ⟶ ១២:
For references with author credit
:<code><nowiki>{{cite web |url= |title= |last= |first= |date= |website= |publisher= |access-date= |quote=}}</nowiki></code>
 
For references without author credit
:<code><nowiki>{{cite web |url= |title= |author=<!--Not stated--> |date= |website= |publisher= |access-date= |quote=}}</nowiki></code>
Line ២៩ ⟶ ៣១:
{{end}}
{{csdoc|usage full}}
:<code><nowiki>{{cite web |url= |url-access= |title= |last= |first= |author= |author-link= |last2= |first2= |author2= |author-link2= |date= |year= |orig-year= |editor-last= |editor-first= |editor= |editor-link= |editor2-last= |editor2-first= |editor2-link= |editors= |department= |website= |series= |publisher= |agency= |location= |page= |pages= |at= |language= |script-title= |trans-title= |type= |format= |arxiv= |asin= |bibcode= |doi= |doi-broken-date= |isbn= |issn= |jfm= |jstor= |lccn= |mr= |oclc= |ol= |osti= |pmc= |pmid= |rfc= |ssrn= |zbl= |id= |archive-url= |archive-date= |dead-url= |access-date= |via= |quote= |ref= |postscript= |subscription= |registration=}}</nowiki></code>
{{end}}
{{csdoc|usage vertical}}
Line ៣៥ ⟶ ៣៧:
{{cite web
|url=
|url-access=
|title=
|last=
Line ៤៤ ⟶ ៤៧:
|date=
|year=
|orig-year=
|editor-last=
|editor-first=
Line ៥៤ ⟶ ៥៨:
|series=
|publisher=
|agency=
|location=
|page=
Line ៨៧ ⟶ ៩២:
|dead-url=
|access-date=
|via=
|quote=
|ref=
Line ៩៥ ⟶ ១០១:
{{csdoc|usage vertical mid}}
<pre style="margin:0px; border:none; white-space:pre;">
&nbsp;
&nbsp;
&nbsp;
Line ១០៣ ⟶ ១១០:
last
last2
&nbsp;
&nbsp;
&nbsp;
Line ១១១ ⟶ ១១៩:
editor-last
editor2-last
&nbsp;
&nbsp;
&nbsp;
Line ១៥៩ ⟶ ១៦៨:
&nbsp;
required
&nbsp;
required
&nbsp;
Line ២២០ ⟶ ២៣០:
===Choosing between {{tlf|Cite web}} and {{tlf|Cite news}}===
{{anchor|Consistency}}
Before 2014, editors neededhad to decide whether to use {{tl|Cite web}} or {{tlftl|Cite news}} based on their features. In 2014, however, ''{{em|most of''}} the differences between the two templates were eliminated.
 
As of {{diff|Module:Citation/CS1|732205428|723907342|29 July 2016}}, {{tlf|Cite web}} and {{tlf|Cite news}} have the following differences:
* {{tlf|Cite news}} can be used for [[WP:OFFLINE|offline]] (paper) sources whereas {{tlf|Cite web}} generates a missing URL error when no URL is provided
* {{tlf|Cite news}} accepts {{para|issue}} and {{para|volume}} parameters while {{tlf|Cite web}} does not (See {{section link|1=Help talk:Citation Style 1/Archive 10|2=&#x7C;{{!}}volume=, &#x7C;{{!}}issue=, &#x7C;and {{!}}page(s)=}}; andsee citealso {{tlf|Cite magazine}}.)
But given the same set of valid parameters, their output is exactly the same:
<!-- ATTENTION!
Line ២៣២ ⟶ ២៤២:
-->
{|
| '''Cite web''': || {{cite web |url=http://blog.chron.com/techblog/2011/07/microsoft-envisions-a-universal-os-but-it-might-not-be-called-windows/ |title=Microsoft envisions a universal OS, but it might not be called Windows |last=Silverman |first=Dwight |date=July 15, 2011 |work=[[Houston Chronicle]] |publisher=[[Hearst Corporation]] |accessdate=May 26, 2015}}
|-
| '''Cite news''': || {{cite news |url=http://blog.chron.com/techblog/2011/07/microsoft-envisions-a-universal-os-but-it-might-not-be-called-windows/ |title=Microsoft envisions a universal OS, but it might not be called Windows |last=Silverman |first=Dwight |date=July 15, 2011 |work=[[Houston Chronicle]] |publisher=[[Hearst Corporation]] |accessdate=May 26, 2015}}
|}
 
Line ៣២០ ⟶ ៣៣០:
|url=http://www.nfl.com/rulebook/digestofrules
|title=Digest of Rules
|website=NFL.com
|publisher=National Football League
|access-date=</nowiki>{{date|{{date}}|mdy}}<nowiki>}}</nowiki>
|r={{cite web
|url=http://www.nfl.com/rulebook/digestofrules
|title=Digest of Rules
|website=NFL.com
|publisher=National Football League
|access-date={{date|{{date}}|mdy}}}}
}}
 
===Using format===
<div style="width:auto; overflow:scroll">
 
{{markup2|
|m=<nowiki>{{cite web
Line ៣៤៥ ⟶ ៣៥៥:
|access-date={{date}}}}
}}
</div>
 
===Foreign language and translated title===
 
{{markup2|
|m=<nowiki>{{cite web
Line ៣៧០ ⟶ ៣៨០:
 
===Using author-link===
 
{{markup2|
|m=<nowiki>{{cite web
Line ៣៩៣ ⟶ ៤០២:
|access-date={{date|{{date}}|mdy}}}}
}}
 
=== Multiple authors ===
{{markup2|
|m=<nowiki>{{cite web
Line ៤២១ ⟶ ៤៣២:
|access-date={{date}}}}
}}
 
=== No author ===
{{markup2|
|m=<nowiki>{{cite web
Line ៤៣៧ ⟶ ៤៥០:
|access-date={{date|{{date}}|iso}}}}
}}
 
=== No author, no publisher ===
{{markup2|
|m=<nowiki>{{cite web
Line ៤៨០ ⟶ ៤៩៥:
}}
 
===Using "archive-url" and "archive-date" (and optionally "dead-url") for webpages that have been archived {{anchor|archive-url}}===
{{anchor|archive-url}}
<div style="width:auto; overflow:scroll">By default dead-url=yes, the main link is to the archive:
===Using "archive-url" and "archive-date" (and optionally "dead-url") for webpages that have been archived===
 
{{markup2|
|m=<nowiki>{{cite web
Line ៥០១ ⟶ ៥១៥:
|archive-date=2005-09-07}}
}}
</div>
<div style="width:auto; overflow:scroll">With dead-url=no, the main link is to the original:
{{markup2|
|m=<nowiki>{{cite web
Line ៥១៩ ⟶ ៥៣៥:
|dead-url=no}}
}}
</div>
<div style="width:auto; overflow:scroll">With dead-url=unfit, do not show the original link:
{{markup2|
|m=<nowiki>{{Cite web
Line ៥២៥ ⟶ ៥៤៣:
|publisher=The Weather Underground
|access-date=</nowiki>{{date}}<nowiki>
| archive-url=https://www.webcitation.org/5yo0HaAk7 |archive-date=19 May 2011 |dead-url=nounfit}}</nowiki>
|r={{Cite web
|url=http://www.wunderground.com/global/stations/03772.html
Line ៥៣១ ⟶ ៥៤៩:
|publisher=The Weather Underground
|access-date={{date}}
| archive-url=https://www.webcitation.org/5yo0HaAk7 |archive-date=19 May 2011 |dead-url=nounfit}}
}}
</div>
 
===Using quote===
<div style="width:auto; overflow:scroll">
 
{{markup2|
|m=<nowiki>{{cite web
Line ៥៤១ ⟶ ៥៦០:
|title=Daylight saving time: rationale and original idea
|website=WebExhibits
|yeardate=2008
|access-date=</nowiki>{{date}}<nowiki>
|quote=...&amp;nbsp;Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins&amp;nbsp;...'}}</nowiki>
Line ៥៤៨ ⟶ ៥៦៧:
|title=Daylight saving time: rationale and original idea
|website=WebExhibits
|yeardate=2008
|access-date={{date}}
|quote=...&nbsp;Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins&nbsp;...'}}
}}
</div>
 
==Parameters==
===Syntax===
{{csdoc|syntax}}
 
{{csdoc|sep_period}}
 
Line ៥៧៨ ⟶ ៥៩៧:
 
====Publisher====
{{csdoc|publisher|work=no|web=yes}}
{{csdoc|agency}}
 
Line ៦១៣ ⟶ ៦៣២:
 
==TemplateData==
{{TemplateData header}}
{{TemplateDataHeader}}
<templatedata>
{
Line ៦៣០ ⟶ ៦៤៩:
"title": {
"label": "Title",
"description": "The title of the source page on the website; will display with quotation marks added. Usually found at the top of youyour web browser. Not the name of the website.",
"type": "string",
"required": true
Line ៦៥០ ⟶ ៦៦៩:
},
"website": {
"label": "Website title",
"description": "NameTitle (name) of the website (or its short URL if no plain-language title is discernible); may be wikilinked; will display in italics. Having both 'Publisherpublisher' and 'Websitewebsite' is redundant in mostmany cases.",
"type": "string",
"aliases": [
Line ៦៦១ ⟶ ៦៨០:
"publisher": {
"label": "Publisher",
"description": "Name of the publisher; may be wikilinked. Having both 'Publisherpublisher' and 'Websitewebsite' (a.k.a. 'work') is redundant in mostmany cases. ",
"type": "string",
"example": "\"CBS Interactive\", which owns \"Metacritic.com\""
},
"last": {
Line ៧៤៤ ⟶ ៧៦៣:
"year": {
"label": "Year of publication",
"description": "Year of the source being referenced; usedeprecated in favor of 'date' instead, ifexcept for the special case of ISO dates with monthCITEREF andin dayCS2 areor alsoHarvard knowncitations",
"type": "string"
},
Line ៧៦១ ⟶ ៧៨០:
"aliases": [
"editor1-last",
" editor",
" editors"
]
},
Line ៨០៨ ⟶ ៨២៧:
"pages": {
"label": "Pages",
"description": "Pages in the source that support the content (not an indication of the number of pages in the source); displays after 'pp.'",
"type": "string"
},
Line ៨២៤ ⟶ ៨៤៣:
"label": "Language",
"description": "The language in which the source is written, if not English; use the full language name; do not use icons or templates",
"type": "string",
"aliases": [
"lang"
]
},
"script-title": {
Line ១១០៧ ⟶ ១១២៩:
"label": "First name 6",
"description": "Given or first name, middle names, or initials of the sixth author; don't wikilink.",
"type": "line",
"aliases": [
"author6-link"
]
},
"authorlink6": {
"label": "Author link 6",
"description": "Title of existing Wikipedia article about the sixth author.",
"type": "wiki-page-name",
"aliases": [
"author6-link"
]
},
"last7": {
Line ១១៩៤ ⟶ ១២១៦:
"display-authors": {
"label": "Display authors",
"description": "Number of authors to display before 'et al.' is used;. By default, isall toauthors doare sodisplayed. afterExamples: 8|display-authors=2 ofwill 9display areonly the first two authors in a citation followed by et al. |display-authors=etal displays all authors in the list followed by et listedal.",
"type": "numberstring",
"default": "8",
"aliases": [
"displayauthors"
Line ១៤៤១ ⟶ ១៤៦២:
"credits"
]
},
"via": {
"label": "Published via",
"description": "Name of the entity hosting the original copy of the work, if different from the publisher. This entity is committed not to alter the work. GitHub, SourceForge, CodePlex, YouTube, Vimeo, Dailymotion and Netflix are examples of service dedicated to acting on behalf of the publisher, but Archive.org, Wikimedia Commons and grc.com have done this on certain occasions.",
"example": "\"GitHub\", which hosts \"Visual Studio Code\" on behalf of \"Microsoft\"",
"type": "string"
}
},
Line ១៥៨២ ⟶ ១៦០៩:
"publication-place",
"publication-date",
"via",
"nopp",
"arxiv",
Line ១៦៨៣ ⟶ ១៧១១:
{{Wikipedia referencing}}
{{UF-COinS}}
 
<includeonly>
{{#ifeq:{{SUBPAGENAME}}|sandbox||
[[Category:Citation Style 1 templates|W]]
}}
</includeonly>