ទំព័រគំរូ:Cite web/doc៖ ភាពខុសគ្នារវាងកំណែនានា
ខ្លឹមសារដែលបានលុបចោល ខ្លឹមសារដែលបានសរសេរបន្ថែម
No edit summary |
|||
បន្ទាត់ទី១៖
{{Documentation subpage}}
{{high-risk| approximately 3000000 }}
{{AWB standard installation}}
{{csdoc|lua}}
{{csdoc|cs1}}
{{csdoc|lead|web sources that are not characterized by another CS1 template}}
==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;">
Line ១០៣ ⟶ ១១០:
last
last2
Line ១១១ ⟶ ១១៩:
editor-last
editor2-last
Line ១៥៩ ⟶ ១៦៨:
required
required
Line ២២០ ⟶ ២៣០:
===Choosing between {{tlf|Cite web}} and {{tlf|Cite news}}===
{{anchor|Consistency}}
Before 2014, editors
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=
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=
|-
| '''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=
|}
Line ៣២០ ⟶ ៣៣០:
|url=http://www.nfl.com/rulebook/digestofrules
|title=Digest of Rules
|website=NFL.com
|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
|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}}===▼
<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=
|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=
}}
</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
|
|access-date=</nowiki>{{date}}<nowiki>
|quote=...&nbsp;Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins&nbsp;...'}}</nowiki>
Line ៥៤៨ ⟶ ៥៦៧:
|title=Daylight saving time: rationale and original idea
|website=WebExhibits
|
|access-date={{date}}
|quote=... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ...'}}
}}
</div>
==Parameters==
===Syntax===
{{csdoc|syntax}}
{{csdoc|sep_period}}
Line ៥៧៨ ⟶ ៥៩៧:
====Publisher====
{{csdoc|publisher|work=no|web=yes}}
{{csdoc|agency}}
Line ៦១៣ ⟶ ៦៣២:
==TemplateData==
{{TemplateData header}}
<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
"type": "string",
"required": true
Line ៦៥០ ⟶ ៦៦៩:
},
"website": {
"label": "Website title",
"description": "
"type": "string",
"aliases": [
Line ៦៦១ ⟶ ៦៨០:
"publisher": {
"label": "Publisher",
"description": "Name of the publisher; may be wikilinked. Having both '
"type": "string",
"example": "\"CBS Interactive\", which owns \"Metacritic.com\""
},
"last": {
Line ៧៤៤ ⟶ ៧៦៣:
"year": {
"label": "Year of publication",
"description": "Year of the source being referenced;
"type": "string"
},
Line ៧៦១ ⟶ ៧៨០:
"aliases": [
"editor1-last",
"
"
]
},
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
"type": "
"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>
|