پودمان:Cite book

از ویکی‌پدیا، دانشنامهٔ آزاد
توضیحات پودمان[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

Usage[ویرایش]

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

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

TemplateData[ویرایش]

این، توضیحاتِ الگوداده است که توسط TemplateWizard، ویرایشگر دیداری و دیگر ابزارها استفاده می‌شود. گزارش خطای ماهیانه برای این الگو را ببینید.

الگوداده Cite book

This module is like {{Cite book}} 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 book]].

پارامترهای الگو

پارامترتوضیحاتنوعوضعیت
Required blank parameter1

بدون توصیف

ناشناختهاختیاری

local p = {}
local CS1 = require('Module:Citation/CS1/en')

p[''] = function(frame)
	local newFrame = {
	    getParent = function(self)
	    	return frame
	    end,
	    getTitle = function(self)
	    	return 'Template:Cite book'
	    end,
	    args = {CitationClass='book'}
	}
	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