Yiɣi chaŋ yɛligu maŋamaŋa puuni

Module:Cite speech

Diyila Dagbani Wikipedia

This module may be placed directly on articles by replacing {{Cite speech| with {{#invoke:Cite speech|| (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 speech}}.

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Cite speech

This module is like {{Cite speech}} with two exceptions. It is only for use on pages with lots of citations (e.g. several hundred) where that is causing technical problems, and you must pass an empty first parameter. For all other usage information, see [[Template:Cite speech]].

Template parameters

ParameterDescriptionTypeStatus
Required blank parameter1

no description

Unknownoptional

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 speech'
	    end,
	    args = {CitationClass='speech'}
	}
	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