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

From Timelines
Jump to: navigation, search
(Setting '''deadurl''' has no effect if '''archiveurl''' is not set.)
(fix child and parent dependencies)
Line 1: Line 1:
 
* '''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]].
 
* '''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 in the article; do not wikilink.
** '''accessdate''': Full date when URL was accessed; use the same format as other dates in in the article; do not wikilink; requires '''url'''.
 
 
** '''archiveurl''': The URL of an [[Web archiving|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'''.
 
** '''archiveurl''': The URL of an [[Web archiving|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; use the same format as other dates in in the article; do not wikilink; requires '''archiveurl'''.
+
*** '''archivedate''': Date when the item was archived; use the same format as other dates in in the article; 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 {{para|deadurl|no}}. Setting '''deadurl''' has no effect if '''archiveurl''' is not set.
+
*** '''deadurl''': To change the order with the title retaining the original link and the archive linked at the end, set {{para|deadurl|no}}.
 
** '''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.
 +
* '''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'''.
 
: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:

Revision as of 20:06, 18 April 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.
    • accessdate: Full date when URL was accessed; use the same format as other dates in in the article; do not wikilink.
    • 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; use the same format as other dates in in the article; 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.
  • 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.
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