(Translated by https://www.hiragana.jp/)
Module:Cite web - Wikipedia Jump to content

Module:Cite web

Permanently protected module
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by GKFX (talk | contribs) at 19:24, 30 April 2021 (Create alternative to {{cite web}} designed to resolve WP:PEIS issues, *only* for use on pages with such issues.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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