模板:Cite book/doc/lua
本模板是用于在维基百科内引用资料来源,特别为引用书籍而设计。
使用方式[编辑]
若以英文填写,所有字段名务必为小写。
若要使用请拷贝空白的模板代码,并用“|”(直线)字元分开各个字段。请删除任何没有使用到的字段,以免在编辑视窗中出现空白。
在填写 ISBN、OCLC 和 DOI 时不需要使用任何模板或魔术字。可使用 編號方式
代替。例如,输入 isbn=數字
,而不要输入 id=ISBN
,当有特殊书籍必须使用两个ISBN或其他数位编号时请使用|ISBN=xxx |id={{ISBN|XXX}}
,在id的ISBN可省略版模,但有时会错误,如错误请改用上述方式。
完整版本(拷贝并贴上以下的文字,并删除你不需要的字段变数) | ||
---|---|---|
| ||
最常用版本(您可以使用这个版本,无须删除太多不需要的字段) | ||
| ||
中文书籍 范例一 |
{{cite book lua |author=張愛玲 |title= 《[[半生緣]]》 |publisher= 皇冠出版 |date= 1999-09 |isbn= 7-80120-667-3 }} |
张爱玲. 《半生緣》. 皇冠出版. 1999-09. ISBN 7-80120-667-3. |
中文书籍 范例二 |
{{cite book lua |author = 張愛玲 |authorlink = 張愛玲 |title = 《[[半生緣]]》 |publisher = 皇冠出版 |series = 張愛玲系列 |year = 1999 |isbn = 7-80120-667-3 }} |
张爱玲. 《半生緣》. 张爱玲系列. 皇冠出版. 1999. ISBN 7-80120-667-3. |
英文书籍 范例一 |
{{Cite book lua|first=塞尔日|last=兰|authorlink=塞尔日·兰|year=2010|origyear=1998|title={{VarSerif|Fundamentals of Differential Geometry}}|trans_title=微分几何基础|publisher=[[施普林格出版社]]、[[世界图书出版公司]]|location=北京|isbn=7-5100-0540-X|url=http://ishare.iask.sina.com.cn/f/7431175.html}} |
兰, 塞尔日. Fundamentals of Differential Geometry [微分几何基础]. 北京: 施普林格出版社、世界图书出版公司. 2010 [1998]. ISBN 7-5100-0540-X. |
英文书籍 范例二 |
{{cite book lua |last = Mumford |first = David |authorlink = 大卫·蒙福德 |title = ''The Red Book of Varieties and Schemes'' |publisher = Springer-Verlag |series = Lecture notes in mathematics 1358 |year = 1999 |doi = 10.1007/b62130 |isbn = 354063293X}} |
Mumford, David. The Red Book of Varieties and Schemes. Lecture notes in mathematics 1358. Springer-Verlag. 1999. ISBN 354063293X. doi:10.1007/b62130. |
直式列表 | 相应字段 | 简述 |
---|---|---|
{{cite book lua |last = |first = |authorlink = |coauthors = |editor = |others = |title = |origdate = |origyear = |origmonth = |url = |format = |accessdate = |accessyear = |accessmonth = |edition = |series = |date = |year = |month = |publisher = |location = |language = |isbn = |unified = |oclc = |doi = |id = |pages = |chapter = |chapterurl = |quote = }} |
last last last 必填** 網址 網址 出版社 章節 |
(不含維基內部連結) (不含維基內部連結) †選填(可自行加入維基連結) 與 origdate 欄位分開使用 與 origdate 欄位分開使用 †選填(可自行加入維基連結) 與 accessdate 欄位分開使用 與 accessdate 欄位分開使用 †選填(可自行加入維基連結) 與 date 欄位分開使用 與 date 欄位分開使用 (不含維基連結)‡ |
∗ | 以上的字段部分具有亲子连动关系,其中一个字段必须和另一个字段搭配使用才能正常显示,请参见以下说明。 |
∗∗ | 维基连结务必仅限连结至已存在的条目,若 url 字段已经填写则不可加入内部链接。 |
† | 这是选填字段,也可以改用字段下方的独立字段。 |
‡ | 若 chapterurl 已经填写,则无法在 chapter 中加入内部链接。 |
字段变数[编辑]
维基连结[编辑]
大部分的字段都可以加入维基内部链接(例如:title = [[條目|書名]]),但建议仅加入维基百科现有条目的内部链接。所有维基连结中不应包含任何会干扰模板运作的符号,请使用正常的括号 ()
,而不要使用 <>[]{}
。
说明字段[编辑]
字段变数[编辑]
以下的字段说明中,部分字段有亲子连动关系,亲子字段必须搭配使用才会正常显示:
- 亲字段
- 子字段 — 必须和亲字段同时使用(若亲字段没有填写则可忽略)
- 或:子字段2 — 可以取代亲字段使用(若已使用亲字段则可忽略)
说明[编辑]
- author:作者姓名,适合使用在作者的姓名(或翻译後姓名)为中文的时候,例如:张爱玲、乔治·华盛顿。可填写下方的 authorlink 字段加入内部链接。
- last:作者姓氏,由于与名字中间有空格,建议使用在以原文(通常是英文)表现作者姓氏时。例如:Johnson。请不要直接加入维基连结,改用 authorlink 字段。
- first:作者名字,由于与姓氏中间有空格,建议使用在以原文(通常是英文)表现作者名字时。例如:Jack。也可加入中间姓名(middle name)。请不要直接加入维基连结,改用 authorlink 字段。
- last 和 first 仅适合用在用英文(或其他类似语言)书写的作者姓名,中文或翻译姓名请改用 author 字段。
- authorlink:维基百科中关于作者的条目名称。请仅输入已存在的条目。请不要独立使用这个字段,务必仅在 author 或 first 和 last 有填写时使用。
- coauthors:其他合作作者的完整姓名,使用顿号(、)分开。(例如:王大明、李小华;或:Joe Bloggs、John F. Kennedy、H. R. Dent)
- first:作者名字,由于与姓氏中间有空格,建议使用在以原文(通常是英文)表现作者名字时。例如:Jack。也可加入中间姓名(middle name)。请不要直接加入维基连结,改用 authorlink 字段。
- editor:书籍的编辑 / 编者姓名。由于本字段没有预设的文字,因此使用者必须自行加入“(编辑)”等附注文字。
- others:其他书籍的贡献者,例如:由王大明翻译;或:插图由李小华绘制。
- title:书籍的标题。这是唯一必填的字段。可以连结至维基百科内已存在的条目。英文书籍可加入斜体符号(
''book title''
),中文请勿加入斜体。 - url:若为线上书籍,请填写网址。若已在 title 字段加入内部链接则无法使用。
- edition:当书籍有特定的版本时使用,例如:1997年6月第二刷。
- series:当书籍是一系列出版品中的其中一部分时使用。
- origdate:原始版本的出版日期。格式为:XXXX年XX月XX日,可自由加上内部链接,例如:2007年2月20日。
- 或:origyear:原始版本的出版年份,不须加上“年”这个字,只需填写数字即可。和 origmonth:原始版本的出版月份,不须加上“月”这个字,只需填写数字即可。两个字段都不可加上内部链接,若是有特定的日期,请改用 origdate。
- date:引用版本的出版日期。格式为:XXXX年XX月XX日,可自由加上内部链接,例如:2007年2月20日。
- 或:year:引用版本的出版年份,不须加上“年”这个字,只需填写数字即可。和 month:引用版本的出版月份,不须加上“月”这个字,只需填写数字即可。两个字段都不可加上内部链接,若是有特定的日期,请改用 date。
- publisher:出版社。请避免加入“出版社”、“公司”、“有限公司”等字样。
- location:出版地点。
- language:书籍的语言。
- isbn:国际标准书号(ISBN),例如:1-111-22222-9。
- unified:统一书号,例如:7201·85。
- oclc:线上电脑图书馆中心(Online Computer Library Center)编号,例如:3185581。
- doi:数位物件识别号(digital object identifier,DOI),例如:10.1016/j.coi.2004.08.001。
- id:若以上的字段不敷使用或不适合,可加入书籍其他的相关认证编号。您必须指定您加入的编号系统名称,使用相关模板如 {{ISSN}}。
- pages:第5–7頁:引用页数的起讫。这是指引用内容所在的页数,而非整本书的总页数。
- chapter:书籍的特定章节。
- chapterurl:线上书籍的特定章节网址。若有的话必须和 url 字段的内容是在同一个网站上。
- quote:书籍中特定句子的引言。
范例[编辑]
- 仅有书名:
* {{cite book lua | title=神祕之書 }}
- 神祕之書.
- 年份和书名
* {{cite book lua | title=神祕之書 | year=1901 }}
- 神祕之書. 1901.
- 基本样式(英文书籍):
* {{cite book lua |first=Joe |last=Bloggs |authorlink=Joe Bloggs |year=1974 |title=Book of Bloggs }}
- Bloggs, Joe. Book of Bloggs. 1974.
- 基本样式(中文书籍):
* {{cite book lua |author=張愛玲 |authorlink=張愛玲 |year=1948 |title=半生緣 }}
- 张爱玲. 半生緣. 1948.
- 基本样式,包含网址
* {{cite book lua |last=Bloggs |first=Joe |authorlink=Joe Bloggs |year=1974 |title=Book of Bloggs |edition=1st Edition |url=http://en.wikipedia.org/ |accessdate=2006-02-17 }}
- Bloggs, Joe. Book of Bloggs 1st Edition. 1974 [2006-02-17].
- 三位作者、书名、维基内部链接、书籍版本
* {{cite book lua |last=Bloggs |first=Joe |authorlink=Joe Bloggs |coauthors=John Smith、Jim Smythe |title=[[A Thousand Acres|1000 Acres]] |edition=第二版 }}
- Bloggs, Joe; John Smith、Jim Smythe. 1000 Acres 第二版.
- 不含日的日期、书名和出版社的维基内部链接、编号、页数、出版地点
* {{cite book lua | last=Cordell | first=Bruce R. | coauthors=Jeff Grubb、David Noonan | date=2001-09 | title=[[Manual of the Planes]] | publisher=[[Wizards of the Coast]] | location=Timbuktu | isbn=0-7869-1850-0 | pages=第134-137頁 }}
- Cordell, Bruce R.; Jeff Grubb、David Noonan. Manual of the Planes. Timbuktu: Wizards of the Coast. 2001-09: 第134–137页. ISBN 0-7869-1850-0.
- 初版(原版)的日期、其他语言、插画家
* {{cite book lua | last=Bloggs | first=Joe | origyear=1463 | year=1974 | title=Book of Bloggs | edition=初版 | others=由 Smith 繪製插畫 | language=de | url=http://en.wikipedia.org/ | accessdate=2006-02-17 }}
- Bloggs, Joe. Book of Bloggs. 由 Smith 绘制插画 初版. 1974 [1463] [2006-02-17] (德语).
- 使用DOI
*{{cite book lua |last=Mumford |first=David |authorlink=David Mumford |year=1999 |title=The Red Book of Varieties and Schemes: Includes the Michigan Lectures (1974) on Curves and Their Jacobians |edition=第二版 |publisher=Springer-Verlag |doi=10.1007/b62130 |isbn=354063293X }}
- Mumford, David. The Red Book of Varieties and Schemes: Includes the Michigan Lectures (1974) on Curves and Their Jacobians 第二版. Springer-Verlag. 1999. ISBN 354063293X. doi:10.1007/b62130.
测试[编辑]
参见 Template:cite book lua/regression tests。
模板生成小工具[编辑]
输入ISBN号,自动填入完整的{{cite book lua}}信息:[1]
引用格式指南[编辑]
一些英文中合作作者的引用格式指南,仅供参考:
参见[编辑]
- WP:CITE: 格式指南
- Wikipedia:列明来源:格式指引
- Wikipedia:模板消息/条目来源:相关模板
- Template:Cite web:引用来源为网页时
- Template:Cite news:引用来源为新闻时
- Template:Cite journal en:引用来源为英文期刊时
- Template:Cite journal zh:引用来源为中文期刊时
- Category:引用模板:其他的引用模板