Pergi ke kandungan

Modul:Cite web

Daripada Wikipedia, ensiklopedia bebas.
Semakan 5127283 pada 17:09, 17 Jun 2021 oleh SNN95 (bincang | sumb.) (Mencipta laman baru dengan kandungan 'local p = {} local CS1 = require('Module:Citation/CS1') p[''] = function(frame) local newFrame = { getParent = function(self) return frame...')
(beza) ← Semakan terdahulu | Semakan semasa (beza) | Semakan berikutnya→ (beza)
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