Modul:Location: Unterschied zwischen den Versionen

CamNet - das Wiki
(Die Seite wurde neu angelegt: „local p = {} local Class = require('Module:Location/class') local getArgs = require('Module:Arguments').getArgs function p.categorize(frame) return tostring(…“)
 
(kein Unterschied)

Aktuelle Version vom 12. Februar 2016, 16:47 Uhr

Documentation icon Module documentation

This module implements template {{Location}}.

Usage

{{#invoke:Location|main}}

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

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

Maintenanace notes

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

local p = {}
local Class = require('Module:Location/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.sfGenerateForm(frame)
	return tostring(Class:sfGenerateForm())
end

function p.sfGenerateFormEntry(frame)
	return tostring(Class:sfGenerateFormEntry())
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 me = Class:new(mw.title.getCurrentTitle().prefixedText)
	me:initFromArgs(args)
	me:storeData()
	me:addInfobox()
	me:addPageBody()
 	return me:render()
end

return p