Modul:Info

CamNet - das Wiki
Documentation icon Module documentation

This module implements template {{Info}}.

Usage

{{#invoke:Info|main}}

It also provides some additional "gateways" to some of Module:Info/class's static methods:

{{#invoke:Info|categorize}}
{{#invoke:Info|categoryPage}}
{{#invoke:Info|explainDataStore}}
{{#invoke:Info|gardeningCategoryPage}}
{{#invoke:Info|sfGenerateForm}}
{{#invoke:Info|sfGenerateFormEntry}}
{{#invoke:Info|sfGenerateFormLink}}
{{#invoke:Info|templateDocumentation}}

Maintenanace notes

This page was created by Module:Classgenerator and belongs to Class:Info.

local p = {}
local Class = require('Module:Info/class')
local getArgs = require('Module:Arguments').getArgs

function p.categorize(frame)
	return tostring(Class:categorize())
end

function p.categoryPage(frame)
	return tostring(Class:categoryPage())
end

function p.explainDataStore(frame)
	return tostring(Class:explainDataStore())
end

function p.gardeningCategoryPage(frame)
	return tostring(Class:gardeningCategoryPage())
end

function p.sfGenerateFormLink(frame)
	return tostring(Class:sfGenerateFormLink())
end

function p.templateDocumentation(frame)
	return tostring(Class:templateDocumentation())
end

function p.main(frame)
	local args = getArgs(frame)
	local payload = args.payload or args[1] or mw.title.getCurrentTitle().prefixedText
	local me = Class:new(payload)
	me:initFromArgs(args)
	me:storeData()
--	me:addInfobox()
--	me:addPageBody()
 	return me:render()
end

return p