模板:Cite news/doc/lua
< Template:Cite news | doc
模板簡介
描寫維基條目時經常需要參考各種新聞類資源,因此更多地使用這個模板可以將所參考的來源記錄下來,以便瀏覽者以及之後的編寫者找到這些來源資料。
本模板是用來列明維基條目中的新聞來源(參見列明來源的關於於維基條目列明的一般注意事項,並參見{{cite web}}學習如何列名非新聞來源)。
模板用法
所有參數都必須使用小寫字母。
使用時可以複製下面的空白模板。參數之間以「|」符號分隔。請刪除未使用的參數以保持編輯框的整齊。
完整格式(複製下列文字並刪除不需要的參數) | ||
---|---|---|
| ||
常用參數 | ||
|
- 豎式排列的全部參數
{{cite news lua | first = | last = | authorlink = | author = | coauthors = | title = | url = | format = | work = | publisher = | location = | id = | pages = | page = | date = | accessdate = | language = | quote = | archiveurl = | archivedate = }}
- title:新聞標題。唯一必需參數,下列其餘參數可選。此參數不應以引號,斜體或其他方式標記格式。
- author: 作者。
- last 和 first:標識作者的姓名,顯示為
last, first
(主要用於外國名字在前,姓氏在後的情況)。 - authorlink :作者在維基百科中的條目,而不是外部的網址。
- coauthors: 合作作者。
- last 和 first:標識作者的姓名,顯示為
- url: 如果新聞引用項在網際網路上有連結,可以在此輸入其外部鏈接地址,而不應連結至新聞發布者的主頁。開頭必須帶有通訊協議 例如http://或https://。
- format: 新聞格式,如PDF。默認為HTML格式。
- 如該連接不再提供免費瀏覽,請註明「收費」。
- 如該連接到非原發布者提供的全文連結,請註明「再版」。
- format: 新聞格式,如PDF。默認為HTML格式。
- work: 刊登該新聞的出版物名稱,如新聞周刊或人民日報等,也可以是某個專欄或者副刊的名稱。請不要使用斜體。
- publisher: 發表該新聞的公司、機構或組織,例如新華社或綠色和平組織等。
- location: 新聞來源地,例如香港(南華早報)。
- id: 以
{{ISSN|0028-0836}}
之類表明的編號。如果使用此參數,一定要標明編號的類別,而不應只提供一個編號。 - date: 出版日,建議使用ISO 8601 YYYY-MM-DD 標準,如「2008-01-01」
- page 或 pages: 新聞所在的頁數,兩者只能使用一個。
| page = 30
顯示為「p. 3」,| pages = 30-40
顯示為「pp. 30-40」。 - accessdate: 查閱日期。
- language: 新聞來源的語言。
- quote: 被引用的相關原文。
- archiveurl: 存檔的URL地址。
- archivedate: 存檔日期
舉例說明
- 使用last和first以標明作者,並使用ISSN作為 id 。
- {{cite news lua
| first=琼斯
| last=道
| title=新闻标题
| url=http://www.example.org/
| work=世界百科全书
| publisher=新闻集团
| pages= 37–39
| date=2005-11-21
| id={{ISSN|0028-0836}}
| accessdate=2005-12-11
}}
- 使用author替代last和first。
- {{cite news lua
| author=道琼斯
| title=新闻
| url=http://www.example.org/News.pdf
| format=PDF
| publisher=新闻集团
| pages= 37–39
| date=2005-11-21
| accessdate=2005-12-11
}}
- 使用authorlink以連結到作者的條目。
- {{cite news lua
| first=琼斯
| last=道
| authorlink=道琼斯
| title=新闻
| url=http://www.example.org/background
| format=再版
| publisher=新闻集团
| date=2005-11-21
| accessdate=2005-12-11
}}
- 使用format參數。
- {{cite news lua
| title=新闻
| url=http://www.example.org/Archive/News
| format=收费
| publisher=新闻集团
| date=2005-11-21
| accessdate=2005-12-11
}}
- 使用page參數說明頁碼。
- {{cite news lua
| first=琼斯
| last=道
| title=FooBar
| page=1
}}→ 道, 瓊斯. FooBar. : 1.
- 一個非常簡單的引用。
- {{cite news lua
| title=FooBar
| page=1
}}→ FooBar. : 1.
- 使用archiveurl和archivedate參數引用被存檔網站存檔的網頁。
- {{cite news lua
| author=Staff writer
| title=新闻
| url=http://www.example.org/News.pdf
| format=PDF
| publisher=新闻集团
| pages= 37–39
| date=2005-11-21
| accessdate=2005-12-11
| archiveurl=http://web.archive.org/web/20070628082911/http://www.example.org/News.pdf
| archivedate=2007-06-28
}}
- 忽略archivedate參數會造成的錯誤。
- {{cite news lua
| author=Staff writer
| title=新闻
| url=http://www.example.org/News.pdf
| format=PDF
| publisher=新闻集团
| pages= 37–39
| date=2005-11-21
| accessdate=2005-12-11
| archiveurl=http://web.archive.org/web/20070628082911/http://www.example.org/News.pdf
}}
→ Staff writer. 新闻 (PDF). 新聞集團. 2005-11-21: 37–39 [2005-12-11]. (原始內容 (PDF)存檔於使用|archiveurl=
需要含有|archivedate=
(幫助)).
參見
- Wikipedia:列明來源:格式指引
- Wikipedia:模板消息/條目來源:相關模板
- Template:Cite web:引用來源為網頁時
- Template:Cite book:引用來源為書籍時
本模板含有複雜而精密的擴展語法。 編輯本模板前,建議您先熟悉解析器函數與本模板的設計思路、運作原理等。若您的編輯引發了意外的問題,請儘快撤銷編輯,因為本模板可能被大量頁面使用。 您所作的編輯可先在模板沙盒或您的個人頁面中進行測試。 |