Template:Citation Style documentation/url

From MediaWiki
Revision as of 23:33, 29 March 2013 by Gadget850 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • <span id="csdoc_url" />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:PAGELINKS.{{#if: | If url is not defined but pmc is, then url is set to the pmc link.
    • <span id="csdoc_Embargo" />Embargo: Date that pmc goes live; if this is in the future, then then url is not set to the pmc link until that date.}}
    • <span id="csdoc_accessdate" />accessdate: Full date when original URL was accessed; use the same format as other access and archive dates in the citations;Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|The template only supports up to 9 references (edit it!).}}}}}}}}}}}}}}}}}} do not wikilink. Not required for web pages or linked documents that do not change; mainly of use for web pages that change frequently or have no publication date. Can be hidden or styled by registered editors.
    • <span id="csdoc_archiveurl" />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 (see Wikipedia:Using WebCite) and the Internet Archive (see Wikipedia:Using the Wayback Machine); requires archivedate.
      • <span id="csdoc_archivedate" />archivedate: Date when the original URL was archived; use the same format as other access and archive dates in the citations;Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|Unknown extension tag "ref"{{#if:|:}}{{#if:|The template only supports up to 9 references (edit it!).}}}}}}}}}}}}}}}}}} do not wikilink. Displays preceded by "archived from the original on".
      • <span id="csdoc_deadurl" />deadurl: When the URL is still live, but preemptively archived, then set |{{#if:deadurl|deadurl=}}no. This changes the display order with the title retaining the original link and the archive linked at the end.
    • <span id="csdoc_template doc demo" />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 |{{#if:template doc demo|template doc demo=}}true to disable categorization; mainly used for documentation where the error is demonstrated.
  • <span id="csdoc_format" />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. Does not change external link icon. Note: External link icons do not include alt text, thus they do not add format information for the visually impaired.
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 and should normally be avoided. IPv6 host-names are currently not supported.
If URLs in citation template parameters contain certain characters they will display and link incorrectly. Those characters need to be percent-encoded. For example, a space must be replaced by %20. To encode the URL, replace these characters:
sp " ' < > [ ] | }
 %20  %22  %27  %3c  %3e  %5b  %5d  %7c  %7d
Single apostrophes do not need to be encoded; but unencoded multiples will be parsed as italic or bold markup. Single curly closing braces also do not need to be encoded; but an unencoded pair will be parsed as the double closing braces for the template transclusion.
1 }}
     | references-column-width 
     | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
   | {{#if: 
     | references-column-width }} }}" style="{{#if: 
   | {{#iferror: {{#ifexpr: 1 > 1 }}
     | Template:Column-width
     | -moz-column-count: {{#if:1|{{{1}}}}}; -webkit-column-count: {{#if:1|{{{1}}}}}; column-count: {{#if:1|{{{1}}}}}; }}
   | {{#if: 
     | Template:Column-width }} }} list-style-type: {{#switch: 
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = {{{group}}}
   | #default = decimal}};">
Unknown extension tag "references"
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox