<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://camnet.oetterer.eu/index.php?action=history&amp;feed=atom&amp;title=Vorlage%3ABoilerplate_module</id>
	<title>Vorlage:Boilerplate module - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://camnet.oetterer.eu/index.php?action=history&amp;feed=atom&amp;title=Vorlage%3ABoilerplate_module"/>
	<link rel="alternate" type="text/html" href="https://camnet.oetterer.eu/index.php?title=Vorlage:Boilerplate_module&amp;action=history"/>
	<updated>2026-06-16T11:27:34Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in CamNet</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://camnet.oetterer.eu/index.php?title=Vorlage:Boilerplate_module&amp;diff=918&amp;oldid=prev</id>
		<title>mw&gt;Oetterer: Die Seite wurde neu angelegt: „local class = require('Module:Middleclass').class local className = class('Name') local classDebug = require('Module:Debug/class')  -- ************************…“</title>
		<link rel="alternate" type="text/html" href="https://camnet.oetterer.eu/index.php?title=Vorlage:Boilerplate_module&amp;diff=918&amp;oldid=prev"/>
		<updated>2016-01-09T08:14:07Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „local class = require(&amp;#039;Module:Middleclass&amp;#039;).class local className = class(&amp;#039;Name&amp;#039;) local classDebug = require(&amp;#039;Module:Debug/class&amp;#039;)  -- ************************…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local class = require('Module:Middleclass').class&lt;br /&gt;
local className = class('Name')&lt;br /&gt;
local classDebug = require('Module:Debug/class')&lt;br /&gt;
&lt;br /&gt;
-- ****************************************************************&lt;br /&gt;
-- *                          properties                          *&lt;br /&gt;
-- ****************************************************************&lt;br /&gt;
 &lt;br /&gt;
-- **************** initialization of table for private properties&lt;br /&gt;
local _private = setmetatable({}, {__mode = &amp;quot;k&amp;quot;})   -- weak table storing all private attributes&lt;br /&gt;
 &lt;br /&gt;
-- **************** declaration of private static properties&lt;br /&gt;
-- local _PROPERTY = require( 'Module:' )&lt;br /&gt;
&lt;br /&gt;
-- ***************************************************************&lt;br /&gt;
-- *                           methods                           *&lt;br /&gt;
-- ***************************************************************&lt;br /&gt;
 &lt;br /&gt;
-- **************** declaration of static methods&lt;br /&gt;
local _privateMethodAhead	-- declaration ahead, so this private method can be used in the constructor and in other private methods&lt;br /&gt;
function className:initialize(var)	-- constructor&lt;br /&gt;
	local dbg = classDebug:new('className_id_' .. var)&lt;br /&gt;
	-- initialize all private properties&lt;br /&gt;
	_private[self] = {&lt;br /&gt;
		dbg = dbg,&lt;br /&gt;
		var = true,&lt;br /&gt;
	}&lt;br /&gt;
	_private[self].dbg:log(1, 'Initializing object &amp;quot;' .. var ..'&amp;quot;')&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function className.static:staticMethod(var)&lt;br /&gt;
	_private[self].dbg:log(1, 'entering className.static:staticMethod() to do something')&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- **************** declaration of private methods&lt;br /&gt;
local _privateMethod = function (self)&lt;br /&gt;
	_private[self].dbg:log(1, 'entering _privateMethod() to do something')&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- **************** declaration of public methods&lt;br /&gt;
function className:__tostring()&lt;br /&gt;
	_private[self].dbg:log(1, 'entering className:__tostring() to do something')&lt;br /&gt;
	return tostring(self:getOutput())&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function className:method()&lt;br /&gt;
	_private[self].dbg:log(1, 'entering className:method() to do something')&lt;br /&gt;
	return true&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return className&amp;lt;noinclude&amp;gt;[[Category:Preload text templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>mw&gt;Oetterer</name></author>
	</entry>
</feed>