ഘടകം:Cite news

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.

Usage[തിരുത്തുക]

This module may be placed directly on articles by replacing {{Cite news| with {{#invoke:Cite news|| (note the double pipe). This is likely to be unclear to other editors and should only be done to prevent pages exceeding the post-expand include size limit. It is also fine to use in templates that wrap {{Cite news}}.

For the module that actually implements {{Cite news}}, see Module:Citation/CS1.


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 news'
	    end,
	    args = {CitationClass='news'}
	}
	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
"https://ml.wikipedia.org/w/index.php?title=ഘടകം:Cite_news&oldid=3619157" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്