Jump to content

Module:Cite web

ពីវិគីភីឌា
កំណែ​នៅ ម៉ោង០៣:២៥ ថ្ងៃព្រហស្បតិ៍ ទី០៦ ខែមេសា ឆ្នាំ២០២៣ ដោយ 2601:18e:c081:2ff0:588c:1472:7bec:d403 (ការពិភាក្សា)
(ប្រៀបធៀប) ← កំណែ​ចាស់ជាង | កំណែថ្មីបំផុត (ប្រៀបធៀប) | កំណែថ្មីជាង → (ប្រៀបធៀប)

Documentation for this module may be created at Module:Cite web/doc

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