模組:Cite news

本页使用了标题或全文手工转换
维基百科,自由的百科全书
文档图示 模块文档[查看] [编辑] [历史] [清除缓存]
引文格式1 modules
{{#invoke:Cite arXiv}}arXiv預印本
{{#invoke:Cite AV media}}影音媒體
{{#invoke:Cite AV media notes}}影音媒體內頁說明
{{#invoke:Cite bioRxiv}}bioRxiv預印本
{{#invoke:Cite book}}書籍
{{#invoke:Cite CiteSeerX}}CiteSeerX論文
{{#invoke:Cite conference}}會議論文
{{#invoke:Cite encyclopedia}}引用百科全書的資料
{{#invoke:Cite episode}}廣播和電視節目
{{#invoke:Cite interview}}訪談
{{#invoke:Cite journal}}學術期刊
{{#invoke:Cite magazine}}雜誌和期刊
{{#invoke:Cite mailing list}}公共郵件列表
{{#invoke:Cite map}}地圖
{{#invoke:Cite medRxiv}}medRxiv预印本
{{#invoke:Cite news}}新聞報導
{{#invoke:Cite newsgroup}}線上新聞群組
{{#invoke:Cite podcast}}播客
{{#invoke:Cite press release}}新聞稿
{{#invoke:Cite report}}報告
{{#invoke:Cite serial}}廣播和電視節目系列
{{#invoke:Cite sign}}標誌、匾額、銘牌或徽章
{{#invoke:Cite speech}}演講
{{#invoke:Cite SSRN}}SSRN論文
{{#invoke:Cite tech report}}技術報告
{{#invoke:Cite thesis}}學位論文
{{#invoke:Cite web}}上述模板未包含的其他網路資料

用法

若要此模块置于条目中,直接将条目中的{{Cite news|替换为{{#invoke:Cite news||(注意有两个|)即可。其他编辑可能不清楚此模块的用途,因此只应在模板展开后长度接近模板限制时使用此模块。在包含{{Cite news}}的模板中使用本模块也没有问题。

对于事实上生成{{Cite news}}的模块,请参见Module:Citation/CS1

模板数据

以下是该模板的模板数据,适用于可视化编辑器等工具。

Cite news模板数据

该模块与{{Cite news}}类似。若页面有大量参考文献(如几百条),且接近[[Wikipedia:模板限制|模板限制]]时,可用此模块代替{{Cite news}}。第一个参数必须留空。关于其它参数用法,参见[[Template:Cite news]]。

模板参数

参数描述类型状态
需要留空的参数1

无描述

未知可选

local p = {}
local CS1 = require('Module:Citation/CS1')

p[''] = function(frame)
	local newFrame = {
	    getParent = function(self)
	    	return frame
	    end,
	    getTitle = function(self)
	    	return 'Template:Cite news'
	    end,
	    args = {CitationClass='news'}
	}
	setmetatable(newFrame, {
		__index = function(t, k)
			if type(frame[k]) == 'function' then
				return function(...)
					return frame[k](frame, select(2, ...))
				end
			else
				return frame[k]
			end
		end
	})
	return CS1.citation(newFrame)
end

return p