模組:Cite web
外觀

![]() | 該模組僅用於模板展開後長度接近模板限制的條目,以防止條目超過模板限制。若無此需求,請使用{{Cite web}}。 |
![]() | 此模組使用Lua語言: |
{{#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 web|
替換為{{#invoke:Cite web||
(注意有兩個|
)即可。其他編輯可能不清楚此模組的用途,因此只應在模板展開後長度接近模板限制時使用此模組。在包含{{Cite web}}的模板中使用本模組也沒有問題。
對於事實上生成{{Cite web}}的模組,請參見Module:Citation/CS1。
模板資料
[編輯]該模組與{{Cite web}}類似。若頁面有大量參考文獻(如幾百條),且接近[[Wikipedia:模板限制|模板限制]]時,可用此模組代替{{Cite web}}。第一個參數必須留空。關於其它參數用法,參見[[Template:Cite web]]。
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
需要留空的參數 | 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 web'
end,
args = {CitationClass='web'}
}
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