<?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=Modul%3AFoundationclass%2Fconfig</id>
	<title>Modul:Foundationclass/config - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://camnet.oetterer.eu/index.php?action=history&amp;feed=atom&amp;title=Modul%3AFoundationclass%2Fconfig"/>
	<link rel="alternate" type="text/html" href="https://camnet.oetterer.eu/index.php?title=Modul:Foundationclass/config&amp;action=history"/>
	<updated>2026-05-02T00:00:23Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in CamNet</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://camnet.oetterer.eu/index.php?title=Modul:Foundationclass/config&amp;diff=7048&amp;oldid=prev</id>
		<title>imported&gt;Oetterer: Schützte „Modul:Foundationclass/config“: Automatic protection of selected project pages ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))</title>
		<link rel="alternate" type="text/html" href="https://camnet.oetterer.eu/index.php?title=Modul:Foundationclass/config&amp;diff=7048&amp;oldid=prev"/>
		<updated>2022-10-07T15:56:07Z</updated>

		<summary type="html">&lt;p&gt;Schützte „&lt;a href=&quot;/Modul:Foundationclass/config&quot; title=&quot;Modul:Foundationclass/config&quot;&gt;Modul:Foundationclass/config&lt;/a&gt;“: Automatic protection of selected project pages ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 7. Oktober 2022, 17:56 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;Oetterer</name></author>
	</entry>
	<entry>
		<id>https://camnet.oetterer.eu/index.php?title=Modul:Foundationclass/config&amp;diff=5690&amp;oldid=prev</id>
		<title>imported&gt;Oetterer: add new field &quot;freeTextPreload&quot;</title>
		<link rel="alternate" type="text/html" href="https://camnet.oetterer.eu/index.php?title=Modul:Foundationclass/config&amp;diff=5690&amp;oldid=prev"/>
		<updated>2016-02-15T10:13:04Z</updated>

		<summary type="html">&lt;p&gt;add new field &amp;quot;freeTextPreload&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 15. Februar 2016, 12:13 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot;&gt;Zeile 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	sectionList = {},	-- if you want to have hl2 sections of text after the datafields and before the freetext, name them here. Use strings for names of section headlines&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	sectionList = {},	-- if you want to have hl2 sections of text after the datafields and before the freetext, name them here. Use strings for names of section headlines&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	allowsFreeText = false,	-- will the form have a free text field?&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	allowsFreeText = false,	-- will the form have a free text field?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	freeTextPreload = nil,	-- when this is set your free text will have a preload=&amp;lt;freeTextPreload&gt; statement. of course only when allowsFreeText is set to true&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	buttons = {'save', 'preview', 'changes', 'cancel'},	-- which buttons should appera below the form&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	buttons = {'save', 'preview', 'changes', 'cancel'},	-- which buttons should appera below the form&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	fieldSize = 80,	-- what is the default size= for the form fields&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	fieldSize = 80,	-- what is the default size= for the form fields&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Oetterer</name></author>
	</entry>
	<entry>
		<id>https://camnet.oetterer.eu/index.php?title=Modul:Foundationclass/config&amp;diff=64&amp;oldid=prev</id>
		<title>mw&gt;Oetterer am 11. Januar 2016 um 15:16 Uhr</title>
		<link rel="alternate" type="text/html" href="https://camnet.oetterer.eu/index.php?title=Modul:Foundationclass/config&amp;diff=64&amp;oldid=prev"/>
		<updated>2016-01-11T15:16:00Z</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;local superglobal = mw.loadData( 'Module:Foundationclass/globalconfig' )&lt;br /&gt;
&lt;br /&gt;
local form = {&lt;br /&gt;
	enable = true, -- Do you want to create a form for this class? Note: When you don't want to have a form _page_, but need this to be a part of another form (as a holds-template form), set this to true!&lt;br /&gt;
	name = '',	-- The name of the form, i.e. the form will be placed an page [[Form:Formname]]. If you don't need an actual form page, leave this empty (e.g. if this is a prot of another form as holds-template or such).&lt;br /&gt;
	teaserText = '',	-- This is the text displayed on the form:name page (before you see the actual form))&lt;br /&gt;
	typeCreateLink = 'none',	-- This field lets you choose, what kind of object create link is provided to the user on the form page: is there none, a formlink, or a forminput field? possible values are: 'none' (default), 'forminput', 'formlink'&lt;br /&gt;
	createInfotext = '', -- This is the short text that appears right above the input field. Short being the important part. Please limit yourself to a short sentence.&lt;br /&gt;
	createInputPlaceholder = '',	-- Placeholder text that is shwon in the form create input field&lt;br /&gt;
	createInputQueryString = '',	-- You can use this option to pass information to the form; this information generally takes the form of ''templateName[fieldName]=value''. It should look like a typical URL query string; an example would be &amp;quot;query string=namespace=User&amp;amp;User[Is_employee]=yes&amp;quot;.&lt;br /&gt;
	createLinkPageName = '',	-- With this, you can have the name of the page created by the form to be set automatically. You can use any of the parameters ''&amp;lt;template-name[field-name]&amp;gt;'' or ''&amp;lt;unique number&amp;gt;''. The latter takes options start=x, unique, random, and a number (length of id string, default 6).&lt;br /&gt;
		-- IMPORTANT: If you want to use the one step process with a createLinkPageName, you have to add the output if your class's sfGenerateFormInfoTag() in comments to your form page!!!&lt;br /&gt;
			-- this is a workaround for a semantic forms bug. see https://phabricator.wikimedia.org/T123230 for more information&lt;br /&gt;
	createLinkQueryString = '',	-- You can use this option to pass information to the form; this information generally takes the form of ''templateName[fieldName]=value''. It should look like a typical URL query string; an example would be &amp;quot;query string=namespace=User&amp;amp;User[Is_employee]=yes&amp;quot;.&lt;br /&gt;
	createLinkType = 'plain', -- This field lets you choose, what kind of form link is used to link to the form page: is it a plain link or a button (with parameter submission via get or post), possible values are nil, 'plain', 'button', 'post button'&lt;br /&gt;
	labelCreate = '',	-- label for create entity&lt;br /&gt;
	labelEdit = '',	-- label for edit entity&lt;br /&gt;
	headerText = '',	-- this is the text displayed above the form&lt;br /&gt;
	notification = '',	-- this notification will be displayed above your form&lt;br /&gt;
	sectionList = {},	-- if you want to have hl2 sections of text after the datafields and before the freetext, name them here. Use strings for names of section headlines&lt;br /&gt;
	allowsFreeText = false,	-- will the form have a free text field?&lt;br /&gt;
	buttons = {'save', 'preview', 'changes', 'cancel'},	-- which buttons should appera below the form&lt;br /&gt;
	fieldSize = 80,	-- what is the default size= for the form fields&lt;br /&gt;
	textareaAttributes = {	-- the defaults for your textarea fields&lt;br /&gt;
		cols = 80,&lt;br /&gt;
		rows = 4,&lt;br /&gt;
		autogrow = true,&lt;br /&gt;
		editor = 'wikieditor',	-- other values would be false or 'none'...&lt;br /&gt;
	},&lt;br /&gt;
	fieldOrder = {&lt;br /&gt;
		-- the order in which the form fields appear. NOTE: a parameter not in this list, will not appear in the form!!&lt;br /&gt;
		-- YOU HAVE TO FILL THIS TABLE! Put in here all parameters, that are used in the form, even if you have your own sfGenerateForm() implemented using a different table.&lt;br /&gt;
		-- Reason: This is also be used in plausibility tests&lt;br /&gt;
		'',&lt;br /&gt;
	},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local global = {&lt;br /&gt;
	cargoTable = '',	-- if you use dataStore cargo, name the table here. if you do not name a table, no persistant cargo data will be stored for that class&lt;br /&gt;
	category = '',	-- the mediawiki category, the entity is placed into&lt;br /&gt;
	delimiter = ',',	-- see to it, that the delimiter is not a character, that will be encoded by mw.text.encode. CargoUtil.store encodes the data for security reasons&lt;br /&gt;
	description = '',	-- a short description of the entity. will be displayed on the template documentation page for example&lt;br /&gt;
	entityTitle = '',	-- generic title for the entity&lt;br /&gt;
	gardeningCategory = superglobal.gardeningCategory,	-- the category, objects with erroneous/inplausible data will be put into&lt;br /&gt;
	namespace = '',	-- if you put this entity on a special namespace, name it here. NOTE: You have to be precise. This is case sensitive. But omit the colon.&lt;br /&gt;
	smwIsSubobject = false, -- when using datastore smw: is this stored as subobject (and not as normal data)?&lt;br /&gt;
	smwUseStorage = true,	-- if you use dataStore smw, set this to true if you actually want persistant smw data to be stored for that class&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local parameter = {&lt;br /&gt;
	-- this is your list of parameters. you put all data here, that you would like to handle&lt;br /&gt;
	--	* parameters of your form (and thus your template)&lt;br /&gt;
	--		* when you fill td_type, your parameter will be shown on the template documentation page&lt;br /&gt;
	--		* when you add the parameter name to form.fieldOrder, it will be added to the form and processed in plausibility tests&lt;br /&gt;
	--	* add also data, that you only want to store (omit these from form.fieldOrder and leave the sf table, probably best, to leave td_type unset, too).&lt;br /&gt;
	--  * hint: if you need a row in your table as information, add pseudo parameter w/o entry in fieldOrder, w/o sf table, w/o td_type, and w/o cargo/property entries&lt;br /&gt;
	name = {&lt;br /&gt;
		cardinality = 'single|list',&lt;br /&gt;
		cargo_hidden = false, -- takes no value. If set, the field is not listed in either Special:ViewTable or Special:Drilldown, although it is still queriable.&lt;br /&gt;
		cargo_size = nil, -- for fields of type &amp;quot;Text&amp;quot;, sets the size of this field, i.e. the number of characters; default is 300&lt;br /&gt;
		cargo_type = '',&lt;br /&gt;
		description = '',&lt;br /&gt;
		label = '',&lt;br /&gt;
		property_name = '',	-- please use underscores (_) instead of spaces&lt;br /&gt;
		property_type = '', -- possible values are: Annotation URI, Boolean, Code, Date, Email, Number, Page (default), Quantity, Telephone Number, Temperature, Text, URL&lt;br /&gt;
		severity = 'mandatory|suggested',&lt;br /&gt;
		sf = {&lt;br /&gt;
			--	note: this list is incomplete. see [[Module:SFfield/config]] for a complete list of supported attributes&lt;br /&gt;
			--	note also: mandatory, list, property and values are derived form fields &amp;quot;above&amp;quot; this table&lt;br /&gt;
			--  IMPORTANT: If you want this to be a regular form parameter, you have to add this table. even, if you leave it empty.&lt;br /&gt;
			--  also: keep in mind that a parameter appears in the form only if you add its name to form.fieldOrder above&lt;br /&gt;
			cargo_field = '',&lt;br /&gt;
			cargo_table = '',&lt;br /&gt;
			class = '',&lt;br /&gt;
			default = '',&lt;br /&gt;
			default_filename = '',&lt;br /&gt;
			existing_values_only = true,&lt;br /&gt;
			hidden = true,&lt;br /&gt;
			image_preview = true,&lt;br /&gt;
			input_type = '',&lt;br /&gt;
			mapping_cargo_field = '',&lt;br /&gt;
			mapping_cargo_table = '',&lt;br /&gt;
			mapping_template = '',&lt;br /&gt;
			max_values = 0,&lt;br /&gt;
			maxlength = 0,&lt;br /&gt;
			placeholder = '',&lt;br /&gt;
			restricted = '',	-- e.g.: restricted = superglobal.restrictionRole,&lt;br /&gt;
			show_on_select = {}, -- takes either a string (in case of input type checkbox) or a table. table must be of format &amp;quot;selected value&amp;quot; : &amp;quot;field shown&amp;quot;&lt;br /&gt;
			size = 0,&lt;br /&gt;
			unique = true,&lt;br /&gt;
			unique_for_category = true,&lt;br /&gt;
			unique_for_namespace = true,&lt;br /&gt;
			uploadable = true,&lt;br /&gt;
			values_dependent_on = '',&lt;br /&gt;
			values_from_category = '',&lt;br /&gt;
			values_from_namespace = '',&lt;br /&gt;
		},&lt;br /&gt;
		td_default = '',&lt;br /&gt;
		td_type = '',&lt;br /&gt;
		values = {},&lt;br /&gt;
	},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
local template = {&lt;br /&gt;
	name = 'nameOfYourTemplate',	-- the name of your template. e.g.: your template can be found on the page [[Template:nameOfYourTemplate]]&lt;br /&gt;
	templateDocumentationSeeAlso = {'List', 'of', 'similar', 'or', 'related', 'templates'}	-- used in the see also-section of your template documentation&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	form = form,&lt;br /&gt;
	global = global,&lt;br /&gt;
	parameter = parameter,&lt;br /&gt;
	template = template,&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>mw&gt;Oetterer</name></author>
	</entry>
</feed>