Pumunta sa nilalaman

Module:Cite web

Mula sa Wikipedia, ang malayang ensiklopedya
Pagbabago noong 00:01, 31 Oktubre 2024 ni Bluemask (usapan | ambag)
(iba) ←Lumang pagbabago | Kasalukuyang pagbabago (iba) | Mas bagong pagbabago→ (iba)
Dokumentasyon sa module [gumawa] [purga]
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