Template:Cite web/doc: Difference between revisions
imported>Mdaniels5757 (update High-use params) |
imported>A876 (using "format=": explained when "|format=PDF" parameter is redundant because of autodetection. throughout, removed redundant "|format=PDF" for examples that are autodetected via URLS with .pdf.) |
||
Line 247: | Line 247: | ||
--> |
--> |
||
{| |
{| |
||
| '''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 | |
| '''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 |access-date=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 | |
| '''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 |access-date=May 26, 2015}} |
||
|} |
|} |
||
Line 346: | Line 346: | ||
}} |
}} |
||
===Using format=== |
===Using "format="=== |
||
When this template detects a link whose URL includes an [[filename extension|extension]] of ".pdf" or ".PDF", typical of [[PDF]] files, it automatically displays a PDF icon after the link (regardless of whether the link goes to a PDF file or to an HTML landing page, typical of paysites). It also internally acts as if {{para|format|PDF}} had been specified, which displays " (PDF)" after the icon. (In this case, an explicit {{para|format|PDF}} parameter would be redundant, so it ''is not'' recommended to add it. Users may remove it. Citation bot, when invoked, will remove it. ([[User talk:Citation bot/Archive 13#Remove format=pdf and variants when URLs end in .pdf|ref]])) |
|||
<div style="width:auto; overflow:scroll"> |
<div style="width:auto; overflow:scroll"> |
||
{{markup2| |
{{markup2| |
||
Line 353: | Line 354: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|publisher=International Narcotics Control Board |
|publisher=International Narcotics Control Board |
||
⚫ | |||
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki> |
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki> |
||
|r={{cite web |
|r={{cite web |
||
Line 359: | Line 359: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|publisher=International Narcotics Control Board |
|publisher=International Narcotics Control Board |
||
|access-date={{date}}}} |
|||
}} |
|||
</div> |
|||
If the link is to a PDF file that ''is not'' automatically recognizable by its extension, this template does not display the PDF icon. You may add the parameter {{para|format|PDF}}, which displays " (PDF)" after the link. |
|||
<div style="width:auto; overflow:scroll"> |
|||
{{markup2| |
|||
|m=<nowiki>{{cite web |
|||
|url=http://www.sample.com/somePDFdocument.000 |
|||
|title=Some PDF Document |
|||
|publisher=Sample Int'l |
|||
|format=PDF |
|format=PDF |
||
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki> |
|||
|r={{cite web |
|||
|url=http://www.sample.com/somePDFdocument.000 |
|||
|title=Some PDF Document |
|||
|publisher=Sample Int'l |
|||
⚫ | |||
|access-date={{date}}}} |
|||
}} |
|||
</div> |
|||
For links to files in other formats, no icon is displayed. For example, for an [[.odt]] file, you may add the parameter {{para|format|ODT}}, which displays " (ODT)" after the link. (Is there a standard for which formats are allowed and how to represent them?) |
|||
<div style="width:auto; overflow:scroll"> |
|||
{{markup2| |
|||
|m=<nowiki>{{cite web |
|||
|url=http://www.sample.com/someODTdocument.odt |
|||
|title=Some ODT Document |
|||
|publisher=Sample Int'l |
|||
⚫ | |||
|access-date=</nowiki>{{date}}<nowiki>}}</nowiki> |
|||
|r={{cite web |
|||
|url=http://www.sample.com/someODTdocument.odt |
|||
|title=Some ODT Document |
|||
|publisher=Sample Int'l |
|||
⚫ | |||
|access-date={{date}}}} |
|access-date={{date}}}} |
||
}} |
}} |
||
Line 490: | Line 525: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|date=2005-04-30 |
|date=2005-04-30 |
||
⚫ | |||
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki> |
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki> |
||
|language=Greek}}</nowiki> |
|language=Greek}}</nowiki> |
||
Line 497: | Line 531: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|date=2005-04-30 |
|date=2005-04-30 |
||
⚫ | |||
|access-date={{date|{{date}}|iso}} |
|access-date={{date|{{date}}|iso}} |
||
|language=Greek}} |
|language=Greek}} |
||
Line 509: | Line 542: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|date=2005-04-30 |
|date=2005-04-30 |
||
|format=PDF |
|||
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki> |
|access-date=</nowiki>{{date|{{date}}|iso}}<nowiki> |
||
|archive-url=https://web.archive.org/web/20050907150136/http://www.incb.org/pdf/e/list/green.pdf |
|archive-url=https://web.archive.org/web/20050907150136/http://www.incb.org/pdf/e/list/green.pdf |
||
Line 517: | Line 549: | ||
|title=List of psychotropic substances under international control |
|title=List of psychotropic substances under international control |
||
|date=2005-04-30 |
|date=2005-04-30 |
||
|format=PDF |
|||
|access-date={{date|{{date}}|iso}} |
|access-date={{date|{{date}}|iso}} |
||
|archive-url=https://web.archive.org/web/20050907150136/http://www.incb.org/pdf/e/list/green.pdf |
|archive-url=https://web.archive.org/web/20050907150136/http://www.incb.org/pdf/e/list/green.pdf |
Revision as of 07:40, 20 February 2020
Template:Documentation subpage Template:High-use Template:AWB standard installation Template:Lua Template:Infobox
This Citation Style 1 template is used to create citations for web sources that are not characterized by another CS1 template.
Usage
Copy a blank version to use. All parameter names must be in lowercase. Use the "|" (pipe) character between each parameter. Delete unused parameters to avoid clutter in the edit window. Some samples may include the current date. If the date is not current, then Template:Purge the page.
For references with author credit
For references without author credit
|