Difference between revisions of "Template:Citation Style documentation/url"

From Timelines
Jump to: navigation, search
(template doc demo; ce)
m (punctuation)
Line 7: Line 7:
 
** '''template doc demo''': The archive parameters have error checking to ensure that all the required parameters are included, else {{tl|citation error}} is invoked. On errors, main, help and template pages are placed into [[:Category:Articles with incorrect citation syntax]]. Set {{para|template doc demo|true}} to disable categorization; mainly used for documentation where the error is demonstrated.
 
** '''template doc demo''': The archive parameters have error checking to ensure that all the required parameters are included, else {{tl|citation error}} is invoked. On errors, main, help and template pages are placed into [[:Category:Articles with incorrect citation syntax]]. Set {{para|template doc demo|true}} to disable categorization; mainly used for documentation where the error is demonstrated.
 
:URLs must begin with a supported [[URI scheme]]: <code>http://</code> and <code>https://</code>will be supported by all browsers; <code>irc://</code>, <code>ircs://</code>, <code>ftp://</code>, <code>news://</code>, <code>mailto:</code> and <code>gopher://</code> will require a plugin or an external application. IPv6 host-names are currently not supported.
 
:URLs must begin with a supported [[URI scheme]]: <code>http://</code> and <code>https://</code>will be supported by all browsers; <code>irc://</code>, <code>ircs://</code>, <code>ftp://</code>, <code>news://</code>, <code>mailto:</code> and <code>gopher://</code> will require a plugin or an external application. IPv6 host-names are currently not supported.
:URLs containing certain characters will display and link incorrectly unless those characters are encoded. For example, a space must be replaced by <code>%20</code>. To encode the URL,replace these characters:
+
:URLs containing certain characters will display and link incorrectly unless those characters are encoded. For example, a space must be replaced by <code>%20</code>. To encode the URL, replace these characters:
 
{| class="wikitable" style="margin-left: 5em"
 
{| class="wikitable" style="margin-left: 5em"
 
! sp !! " !! , !! ' !! ; !! < !! > !! ? !! [ !! ]
 
! sp !! " !! , !! ' !! ; !! < !! > !! ? !! [ !! ]

Revision as of 10:32, 8 March 2012

  • url: URL of an online location where the text of the publication can be found. Cannot be used if title is wikilinked. If applicable, the link may point to the specific page(s) referenced. Do not link to any commercial booksellers such as Amazon.com; see WP:BOOKLINKS.
    • format: Format of the work referred to by url; examples: PDF, DOC, XLS; HTML is implied and should not be specified; displayed in parentheses after title.
    • accessdate: Full date when URL was accessed; use the same format as other dates in citations in the same article; do not wikilink; requires url.
    • archiveurl: The URL of an archived copy of a web page, if or in case the url becomes unavailable. Typically used to refer to services like WebCite and the Internet Archive; requires archivedate.
    • archivedate: Date when the item was archived; do not wikilink; requires archiveurl.
    • deadurl: To change the order with the title retaining the original link and the archive linked at the end, set |deadurl=no.
    • template doc demo: The archive parameters have error checking to ensure that all the required parameters are included, else {{citation error}} is invoked. On errors, main, help and template pages are placed into Category:Articles with incorrect citation syntax. Set |template doc demo=true to disable categorization; mainly used for documentation where the error is demonstrated.
URLs must begin with a supported URI scheme: http:// and https://will be supported by all browsers; irc://, ircs://, ftp://, news://, mailto: and gopher:// will require a plugin or an external application. IPv6 host-names are currently not supported.
URLs containing certain characters will display and link incorrectly unless those characters are encoded. For example, a space must be replaced by %20. To encode the URL, replace these characters:
sp " , '  ; < >  ? [ ]
 %20  %22  %2c  %3a  %3b  %3c  %3e  %3f  %5b  %5d