<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://open-csp.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AClass_definition_properties</id>
	<title>Template:Class definition properties - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://open-csp.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AClass_definition_properties"/>
	<link rel="alternate" type="text/html" href="https://open-csp.org/index.php?title=Template:Class_definition_properties&amp;action=history"/>
	<updated>2026-04-30T06:40:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://open-csp.org/index.php?title=Template:Class_definition_properties&amp;diff=3534&amp;oldid=prev</id>
		<title>Maintenance script: Imported by PageSync</title>
		<link rel="alternate" type="text/html" href="https://open-csp.org/index.php?title=Template:Class_definition_properties&amp;diff=3534&amp;oldid=prev"/>
		<updated>2025-07-15T08:37:18Z</updated>

		<summary type="html">&lt;p&gt;Imported by PageSync&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;&lt;br /&gt;
&lt;br /&gt;
This is the &amp;#039;&amp;#039;&amp;#039;Class definition properties&amp;#039;&amp;#039;&amp;#039; template. It should be called in the following format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Class definition properties&lt;br /&gt;
|Defines class= (text) value that is used for Class property in content pages of this type&lt;br /&gt;
|Pagetitle format= (value options: title, next_available) the wscreate in &amp;quot;Template:Create page form&amp;quot; will be based on this option, default &amp;quot;next_available&amp;quot;&lt;br /&gt;
|Allowed namespaces= (optional: comma-separted namespaces) namespaces in which pages of this class are allowed to be created, e.g. &amp;quot;(Main), Project, Article&amp;quot;&lt;br /&gt;
|Short description= (optional: text)&lt;br /&gt;
|Has version history= (optional: true) if true, then {{Show version history}} will be added to generated sidebar template code&lt;br /&gt;
&lt;br /&gt;
layout settings (used to order chameleon components)&lt;br /&gt;
|Areas= (components) for example &amp;#039;sidebar main&amp;#039;. Base csp components are: sidebar, sub-header, main&lt;br /&gt;
|Columns= (size attribute of components) for example: 15em 2fr&lt;br /&gt;
|Rows=&lt;br /&gt;
&lt;br /&gt;
storage templates&lt;br /&gt;
|Base properties template= (optional: page) default &amp;quot;Template:Base properties&amp;quot;&lt;br /&gt;
|Page properties template (optional: page) default &amp;quot;Template:Csp class properties&amp;quot;&lt;br /&gt;
&lt;br /&gt;
component templates&lt;br /&gt;
|Footer template= (optional: page) no default&lt;br /&gt;
|Sidebar template= (optional: page) default &amp;quot;Template:Csp default sidebar&amp;quot;&lt;br /&gt;
|Sub header template= (optional: page) default &amp;quot;Template:Csp default subheader&amp;quot;&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pagetitle formats:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;title&amp;#039;&amp;#039;&amp;#039; will result in a pagetitle with format &amp;lt;code&amp;gt;Class/title-entered-by-user&amp;lt;/code&amp;gt; such as &amp;lt;code&amp;gt;Organization/wikibase-solutions&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;next_available&amp;#039;&amp;#039;&amp;#039; will result in a pagetitle with format &amp;lt;code&amp;gt;Class/incremental_number&amp;lt;/code&amp;gt; such as &amp;lt;code&amp;gt;Organization/1&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;Organization/2&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;Organization/3&amp;lt;/code&amp;gt; etc.&lt;br /&gt;
&lt;br /&gt;
Different Chameleon components can be ordered for different page classes&lt;br /&gt;
&lt;br /&gt;
* Base csp components are: sidebar, sub-header, main&lt;br /&gt;
* They are defined in the Chameleon skin XML and the default values are set in [https://bitbucket.org/wikibasesolutions/cspmodules/src/master/modules/css/layout.css layout.css]&lt;br /&gt;
* You can define different layouts on the Areas parameter, see [https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas grid-template-areas] for syntax &lt;br /&gt;
* You can define sizes for the columns and rows for this layout, see [https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns grid-template-columns] and [https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns grid-template-rows] for syntax &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
The example below creates to rows on all pages with the Article class&lt;br /&gt;
  &lt;br /&gt;
The first row holds the Sidebar and the Sub-header components the Sidebar is set to be 15em wide and the Sub-header is set to 1 fraction, the hieght of this row is set to Auto&lt;br /&gt;
  &lt;br /&gt;
The second row holds the Main content component it spans over two columns the height of this row is set to 1 fraction&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Class definition properties&lt;br /&gt;
|Defines class=Article&lt;br /&gt;
&lt;br /&gt;
|Areas=&amp;#039;sidebar sub-header&amp;#039; &amp;#039;main main&amp;#039;&lt;br /&gt;
|Columns=15em 2fr&lt;br /&gt;
|Rows=auto 1fr&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;{{#af_foreach:{{#invoke:ClassDefinitionData|afExport}}||$data|{{#set:Defines class={{{Defines class|}}} &lt;br /&gt;
|Short description={{{Short description|}}} &lt;br /&gt;
|Pagetitle format={{{Pagetitle format|}}}&lt;br /&gt;
|Allowed namespaces={{{Allowed namespaces|}}} |+sep=,&lt;br /&gt;
&lt;br /&gt;
|Layout areas={{{Layout areas|}}}&lt;br /&gt;
|Layout columns={{{Layout columns|}}}&lt;br /&gt;
|Layout rows={{{Layout rows|}}}&lt;br /&gt;
&lt;br /&gt;
|Base properties template={{#af_get:{{{$data|}}}|var|basePropsTemplate}}&lt;br /&gt;
|Page properties template={{#af_get:{{{$data|}}}|var|classPropsTemplate}}&lt;br /&gt;
&lt;br /&gt;
|Footer template={{#af_get:{{{$data|}}}|var|footerTemplate}}&lt;br /&gt;
|Sidebar template={{#af_get:{{{$data|}}}|var|sidebarTemplate}}&lt;br /&gt;
|Sub header template={{#af_get:{{{$data|}}}|var|subheaderTemplate}}&lt;br /&gt;
}}&amp;lt;!-- end of #set --&amp;gt;&lt;br /&gt;
}}&amp;lt;!-- end of #af_foreach &lt;br /&gt;
--&amp;gt;{{DISPLAYTITLE:{{{Defines class|}}} }}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>