<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Modul%3AFoundationclass%2FclassDoc%2Fdoc</id>
	<title>Modul:Foundationclass/classDoc/doc - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://www.verzauberte-welten.de/index.php?action=history&amp;feed=atom&amp;title=Modul%3AFoundationclass%2FclassDoc%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Modul:Foundationclass/classDoc/doc&amp;action=history"/>
	<updated>2026-04-05T23:36:59Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Verzauberte Welten e.V.</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.verzauberte-welten.de/index.php?title=Modul:Foundationclass/classDoc/doc&amp;diff=4418&amp;oldid=prev</id>
		<title>imported&gt;Oetterer am 15. Januar 2016 um 19:45 Uhr</title>
		<link rel="alternate" type="text/html" href="https://www.verzauberte-welten.de/index.php?title=Modul:Foundationclass/classDoc/doc&amp;diff=4418&amp;oldid=prev"/>
		<updated>2016-01-15T19:45:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
{{module rating|beta}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This module implements template some methods for [[Module:{{BASEPAGENAME}}]]'s documentation.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
 # note: contents means the text which should be pasted into an articles textbox to produce a page&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|base}}              -- returns the contents of a class module's base page&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|baseDoc}}           -- returns the contents of a class module's base page's doc page (aka the documentation of a base page)&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|categorize}}        -- returns the categories, suited for the calling page&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|category}}          -- returns the contents of a category page&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|class}}             -- returns the contents/template text for a class module&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|classDoc}}          -- returns the contents of a class module's doc page (aka documentation of a class page)&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|configDoc}}         -- returns the contents of a class module's config page's doc page&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|form}}              -- returns the contents of a form page&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|gardeningCategory}} -- returns the contents of a gardening category page&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|template}}          -- returns the contents of a template page&lt;br /&gt;
 {{tli|{{BASEPAGENAME}}/classDoc|templateDoc}}       -- returns the contents of a template page's doc page&lt;br /&gt;
&lt;br /&gt;
These methods can also be called by other modules. When doing so, you can actually define the module name and the class name. They will substitute the placeholders in the documentation text:&lt;br /&gt;
{{code|lang=lua|code=&lt;br /&gt;
local classDoc = require('Modul:Foundationclass/classDoc')&lt;br /&gt;
classDoc.base(moduleName)&lt;br /&gt;
classDoc.baseDoc(moduleName)&lt;br /&gt;
classDoc.category(moduleName)&lt;br /&gt;
classDoc.class(moduleName, className)&lt;br /&gt;
classDoc.classDoc(moduleName, className)&lt;br /&gt;
classDoc.configDoc(moduleName)&lt;br /&gt;
classDoc.form(moduleName)&lt;br /&gt;
classDoc.gardeningCategory(moduleName)&lt;br /&gt;
classDoc.template(moduleName)&lt;br /&gt;
classDoc.templateDoc(moduleName)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
However, what you want to be doing instead of calling these methods is, generating the content yourself. That you do like this:&lt;br /&gt;
{{code|lang=lua|code=&lt;br /&gt;
-- instead of calling classDoc.class(moduleName, className), you use&lt;br /&gt;
local content = mw.message.new('classengine-template-module-class-page'):rawParams(_private[self].pagename, coreData.className):plain()&lt;br /&gt;
&lt;br /&gt;
-- instead of calling classDoc.classDoc(moduleName, className), you use&lt;br /&gt;
local content = mw.message.new('classengine-template-module-class-documentation-page'):rawParams(_private[self].pagename, coreData.className, moduleCategory, classCategory):plain()&lt;br /&gt;
-- in case of non module pages, you might need to take care of the escaped template, wiki, and parser function calls. this you do with:&lt;br /&gt;
local frame = mw.getCurrentFrame()&lt;br /&gt;
content = frame:preprocess(content)&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{#invoke:Foundationclass/classDoc|categorize}}&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- Categories go here if you wish an additional category to that set in {{module rating}} above automatically. --&amp;gt;&lt;br /&gt;
[[Category:Lua metamodules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Oetterer</name></author>
	</entry>
</feed>