<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cm2.liecourt.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AModule_setting</id>
	<title>Template:Module setting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cm2.liecourt.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AModule_setting"/>
	<link rel="alternate" type="text/html" href="https://cm2.liecourt.com/index.php?title=Template:Module_setting&amp;action=history"/>
	<updated>2026-04-11T14:04:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.14</generator>
	<entry>
		<id>https://cm2.liecourt.com/index.php?title=Template:Module_setting&amp;diff=136&amp;oldid=prev</id>
		<title>Maintenance script: Fill database</title>
		<link rel="alternate" type="text/html" href="https://cm2.liecourt.com/index.php?title=Template:Module_setting&amp;diff=136&amp;oldid=prev"/>
		<updated>2020-05-13T19:24:49Z</updated>

		<summary type="html">&lt;p&gt;Fill database&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{Managed&lt;br /&gt;
|Version=1.1&lt;br /&gt;
|Version notes=1.1 - Added &amp;quot;Locked&amp;quot; parameter, for settings that shouldn't be customized (T3938)&lt;br /&gt;
1.0 - First managed version&lt;br /&gt;
|Short description=This template sets a subobject with properties for a module setting. It also display the module setting on a page with a form to modify the setting. Note that [[Template:Get module setting]] can be used to easily query module setting values.&lt;br /&gt;
|Feature=Wiki:Feature/1556028659&lt;br /&gt;
|Status=Live&lt;br /&gt;
|Uses managed items=}}&lt;br /&gt;
&lt;br /&gt;
This is the '''Module setting''' template. It should be called in the following format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Module setting&lt;br /&gt;
|Name= &amp;lt; text &amp;gt; should be a unique code with module prefix, e.g. &amp;quot;wsofr-step-templates&amp;quot;, where &amp;quot;wsofr&amp;quot; is the prefix used for the &amp;quot;WS/Offers&amp;quot; module. Each setting across all modules should have a unique name, that's why the unique module-prefix should be used.&lt;br /&gt;
|Value= &amp;lt; text &amp;gt; value of the setting&lt;br /&gt;
|Default= &amp;lt; Optional: text &amp;gt; default value that will be used in case the &amp;quot;Value&amp;quot; parameter is empty. If &amp;quot;Value&amp;quot; and &amp;quot;Default&amp;quot; are both empty, no subobject is set.&lt;br /&gt;
|Comment= &amp;lt; text &amp;gt; use this to explain how the setting should be used or what it can be used for&lt;br /&gt;
|Sep= &amp;lt; Optional separator, default &amp;quot;,&amp;quot; &amp;gt; if your setting values should be able to contain commas, then use this parameter to set a different separator&lt;br /&gt;
|Locked= &amp;lt; Optional: &amp;quot;Yes&amp;quot; &amp;gt; use this for settings that shouldn't be customized, but instead have a set value for the module. The edit button will not be shown and they shouldn't use a parameter for the value.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#vardefine:@value |{{#if:{{{Value|}}} |{{{Value|}}} |{{{Default|}}} }} }}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#vardefine:@sep |{{#if:{{{Sep|}}} |{{{Sep|}}} |,}} }}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#vardefine:@id |{{#expr:{{#var:@id|0}}+1}} }}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#vardefine:@wsedit template |{{ucfirst:{{#if:{{#var:@module prefix}} |{{#var:@module prefix}} |Ws{{#var:@module code}} }} module settings }} }}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
// Subobject with properties (only if either Value or Default parameter has a value)&lt;br /&gt;
--&amp;gt;{{#if:{{#var:@value}}|{{#subobject: Type of subobject=Module setting&lt;br /&gt;
|Name={{{Name|}}}&lt;br /&gt;
|Display title of={{{Name|}}}&lt;br /&gt;
|Module setting value={{#var:@value}} |+sep={{#var:@sep}}&lt;br /&gt;
|Subobject of={{FULLPAGENAME}}&lt;br /&gt;
}} }}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
// Infocard&lt;br /&gt;
--&amp;gt;&amp;lt;div class=&amp;quot;infocard&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;div class=&amp;quot;infocard__heading&amp;quot;&amp;gt;{{{Name|}}}&amp;lt;/div&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;hr/&amp;gt;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
// Infocard - viewtab&lt;br /&gt;
--&amp;gt;&amp;lt;div class=&amp;quot;tab-content&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;tab-pane fade {{int:bs-in}} active&amp;quot; id=&amp;quot;view-tab-{{#var:@id}}&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#var:@value}} {{#ifeq:{{{Locked|}}} |Yes |{{Fa|lock}} |{{#widget:Button link |class=btn infocard__editbutton |href=#form-tab-{{#var:@id}} |datatoggle=tab |buttontext={{int:ws-edit}} }} }}&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
// Infocard - formtab&lt;br /&gt;
--&amp;gt;{{#ifeq:{{{Locked|}}} |Yes ||&amp;lt;div class=&amp;quot;tab-pane fade&amp;quot; id=&amp;quot;form-tab-{{#var:@id}}&amp;quot; &amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;wsform action=&amp;quot;addToWiki&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;wsedit target=&amp;quot;{{PAGEID}}&amp;quot; template=&amp;quot;{{#var:@wsedit template}}&amp;quot; formfield=&amp;quot;{{{Name|}}}&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;wsfield type=&amp;quot;text&amp;quot; class=&amp;quot;form-control&amp;quot; name=&amp;quot;{{{Name|}}}&amp;quot; value=&amp;quot;{{#var:@value}}&amp;quot; /&amp;gt;&lt;br /&gt;
{{#widget:Button link |class=btn btn-warning |href=#view-tab-{{#var:@id}} |datatoggle=tab |buttontext={{int:ws-cancel}} }} &amp;lt;wsfield type=&amp;quot;submit&amp;quot; value=&amp;quot;{{int:ws-save}}&amp;quot; class=&amp;quot;btn btn-primary&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/wsform&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;/div&amp;gt;}}&amp;lt;!-- end of #ifeq Locked==Yes &lt;br /&gt;
--&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;!-- end of .tab-content&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;''{{{Comment|}}}''&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;!-- end of .infocard&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
		
	</entry>
</feed>