跳转到内容

Template:Citation Style documentation/url

维基百科,自由的百科全书

这是本页的一个历史版本,由Great Brightstar留言 | 贡献2012年11月10日 (六) 06:44 建立内容为“* '''url''': URL of an online location where the text of the publication can be found. Cannot be used if '''title''' is wikilinked. If applicable, t...”的新頁面)编辑。这可能和当前版本存在着巨大的差异。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)
  • 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.
    • accessdate: Full date when URL was accessed; use the same format as other access and archive dates in the citations;[1] do not wikilink. Can be hidden by registered editors.
    • 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 access and archive dates in the citations;[1] do not wikilink. Displays preceded by "archived from the original on".
      • deadurl: When the URL is still live, but preemptively archived, then set |deadurl=no. This changes the display order with the title retaining the original link and the archive linked at the end.
    • 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. Does not change external link icon.

URL必须以支持的URI方案开头。所有浏览器均支持http://https://;而ftp://gopher://irc://ircs://mailto:news:可能需要插件或外部应用支持,通常应避免使用。当前不支持IPv6主机名。

若引文模板参数中的URL包含特定字符,将无法正确显示和链接。这些字符需进行百分号编码。例如空格必须替换为%20。编码替换规则如下:

字符 空格 " ' < > [ ] { | }
编码 %20 %22 %27 %3C %3E %5B %5D %7B %7C %7D

单引号无需编码,但未编码的多个引号会被解析为斜体/粗体标记。单个右花括号无需编码,但未编码的成对花括号会被解析为模板嵌入的结束符。

  1. ^ 1.0 1.1 Access and archive dates in references should all have the same format – either the format used for publication dates, or YYYY-MM-DD. See MOS:DATEUNIFY.