<?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=Projekt%3ACustomization</id>
	<title>Projekt:Customization - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://camnet.oetterer.eu/index.php?action=history&amp;feed=atom&amp;title=Projekt%3ACustomization"/>
	<link rel="alternate" type="text/html" href="https://camnet.oetterer.eu/index.php?title=Projekt:Customization&amp;action=history"/>
	<updated>2026-05-02T05:17:56Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in CamNet</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://camnet.oetterer.eu/index.php?title=Projekt:Customization&amp;diff=30&amp;oldid=prev</id>
		<title>mw&gt;Oetterer am 16. Dezember 2015 um 12:09 Uhr</title>
		<link rel="alternate" type="text/html" href="https://camnet.oetterer.eu/index.php?title=Projekt:Customization&amp;diff=30&amp;oldid=prev"/>
		<updated>2015-12-16T12:09:54Z</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;This starter pack has a wide variety of new ui text. Especially the new german texts use &amp;quot;Sie&amp;quot; instead of &amp;quot;Du&amp;quot; as a new &amp;quot;feature&amp;quot;. Here are the files, you probalby wish to customize before you take this wiki productive:&lt;br /&gt;
&lt;br /&gt;
== Access control ==&lt;br /&gt;
At startup, the wiki is only accessable for your admin user. You have to assign roles or permissions to at least one security group.&lt;br /&gt;
&lt;br /&gt;
Remember in your &amp;lt;code&amp;gt;./_config/Localsettings_acls.php&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot; line=1 start=87&amp;gt;&lt;br /&gt;
## Access control&lt;br /&gt;
# public or not&lt;br /&gt;
# by default, content can only be viewed after a successful login&lt;br /&gt;
# with this setting, however, your wiki is free to READ for all:&lt;br /&gt;
#$wgGroupPermissions['*'] =&amp;amp; $imtDefaultRoleReader;&lt;br /&gt;
# if you configured the use of img_auth above, you also have to uncomment this:&lt;br /&gt;
#$wgImgAuthPublicTest = false;&lt;br /&gt;
&lt;br /&gt;
# access roles: you can assign default roles or use an array with custom rights&lt;br /&gt;
# default roles are: $imtDefaultRoleContributor, $imtDefaultRoleCurator, $imtDefaultRoleDevelope, $imtDefaultRoleAdministrator, or $imtDefaultRoleMaintenancebot&lt;br /&gt;
# note:&lt;br /&gt;
# * 'user' (the group of authenticated user) already has the role contributor&lt;br /&gt;
# * 'imt-mediawiki-maintenance' (ldap bot accounts) already has the role maintenancebot&lt;br /&gt;
# also remember: an ldap group used here must have the ldap group attribute 'Wiki Gruppe'&lt;br /&gt;
#$wgGroupPermissions['sample group'] =&amp;amp; $imtDefaultRoleAdministrator;&lt;br /&gt;
&lt;br /&gt;
# you can restrict login to a list of groups (each of which has its users added to wiki group 'user' automatically)&lt;br /&gt;
#$imtGrantAccessRoles = array( 'sample_group' );&lt;br /&gt;
&lt;br /&gt;
# you can also deny access for a list of groups&lt;br /&gt;
# remember: an ldap group used here also must have the ldap group attribute 'Wiki Gruppe'&lt;br /&gt;
#$imtDenyAccessRoles = array( 'blacklist_group' )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Public access ===&lt;br /&gt;
The first segment lets you give your wiki public access. Just uncomment lines 91 and - if you use img_auth.php - line 93. Everyone can read your wiki now.&lt;br /&gt;
&lt;br /&gt;
Line 95ff lets you assign permissions to security groups in more detail.&lt;br /&gt;
&lt;br /&gt;
=== Roles ===&lt;br /&gt;
Of the predefined roles, each role has the permissions from the role above. They are in order:&lt;br /&gt;
&lt;br /&gt;
;$imtDefaultRoleReader&lt;br /&gt;
:This role has only the right to read pages.&lt;br /&gt;
&lt;br /&gt;
;$imtDefaultRoleContributor&lt;br /&gt;
:This role can create and edit pages and images as well as set some user preferences.&lt;br /&gt;
&lt;br /&gt;
;$imtDefaultRoleCurator&lt;br /&gt;
:This role has some basic page curation permissions, for example: (un)delete or move pages, reupload images. It also can write in Namespace help.&lt;br /&gt;
&lt;br /&gt;
;$imtDefaultRoleDeveloper&lt;br /&gt;
:This role has also the permissions to write in the namespaces Mediawiki, Form, Tempalte and Module.&lt;br /&gt;
&lt;br /&gt;
;$imtDefaultRoleAdministrator&lt;br /&gt;
:This is the administrative role that has all encompassing permissions. Make sure you assign this role to at least one of your groups.&lt;br /&gt;
&lt;br /&gt;
=== Security groups ===&lt;br /&gt;
You can either use a mediawiki local security group (can have any name) or - if you use the ldap plugin - an ldap group name. Note that at the upb, ldap groups need to have the attribute &amp;quot;LDAP Gruppe&amp;quot; for this to work.&lt;br /&gt;
&lt;br /&gt;
You should assign roles to groups by reference so that changes to roles later will be reflected in the groups permissions.&lt;br /&gt;
&lt;br /&gt;
=== Manual permission assignment ===&lt;br /&gt;
You can also assign permissions manually. It will look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  $wgGroupPermissions['mygroup']['read'] = true;&lt;br /&gt;
  $wgGroupPermissions['mygroup']['edit'] = true;&lt;br /&gt;
  $wgGroupPermissions['mygroup']['move'] = true;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can find a list of all configuration settings here: http://www.mediawiki.org/wiki/Manual:Configuration_settings. If you want to add them, please put them in &amp;lt;code&amp;gt;./_config/LocalSettings_host.php&amp;lt;/code&amp;gt; before the comment shown in line 104.&lt;br /&gt;
&lt;br /&gt;
=== Login restrictions and blacklisting ===&lt;br /&gt;
If you are using the LDAP plugin, you can resptrict the login to a list of groups rather than all users with an account. Just uncomment line 105 and include all group names in the array.&lt;br /&gt;
&lt;br /&gt;
Note: No matter what, a user needs at least read permissions. If you do not restrict the login to certain groups but set your wiki non-public, a user with an account will not be able to login except if he is assigned a role or at least read-permission or in an ldap group with a role or read permission assigned.&lt;br /&gt;
&lt;br /&gt;
You can blacklist in a similar way, just uncomment line 109 and list all groups you wish to blacklist. Users in a blacklisted group will be denied login. What that means depends on your type of wiki. For isntance they will still be able to read in a public wiki but probably not be able to warite anything. In a private wiki, they will not be able to view anything at all.&lt;br /&gt;
&lt;br /&gt;
== MediaWiki configuration settings ==&lt;br /&gt;
You can find a list of all configuration settings here: http://www.mediawiki.org/wiki/Manual:Configuration_settings. If you want to add them, please put them in &amp;lt;code&amp;gt;./_config/LocalSettings.php&amp;lt;/code&amp;gt; at the very end in the section&lt;br /&gt;
{{code|php|code=&lt;br /&gt;
######################################################################################################&lt;br /&gt;
#                                                                                                    #&lt;br /&gt;
#                                    C O S T U M I Z A T I O N                                       #&lt;br /&gt;
#                                                                                                    #&lt;br /&gt;
######################################################################################################&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Boilerplates for new pages ==&lt;br /&gt;
Only if you added the Boilerplate package on import contain these pages the text, that will be preloaded when creating new pages in the corresponding namespace:&lt;br /&gt;
* [[Template:Boilerplate]] for the default page namespace&lt;br /&gt;
* [[Template:Boilerplate_category]] for category namespace&lt;br /&gt;
* [[Template:Boilerplate_file]] contains a warning, not to create a page in filespace &amp;quot;file&amp;quot;. Is NOT displayed when uploading a file&lt;br /&gt;
* [[Template:Boilerplate_meta]] for namespace meta&lt;br /&gt;
* [[Template:Boilerplate_help]] for namespace help&lt;br /&gt;
* [[Template:Boilerplate_property]] for namespace property&lt;br /&gt;
* [[Template:Boilerplate_user]] for namespace user&lt;br /&gt;
* [[Template:Boilerplate_talk]] for talk pages&lt;br /&gt;
* [[Template:Boilerplate_template]] for namespace template&lt;br /&gt;
&lt;br /&gt;
Preloading ignores texts between {{tag|includeonly}}.&lt;br /&gt;
&lt;br /&gt;
If you want to have preloading text for an additional namespace, you have to do this:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit {{code snippet|./_config/LocalSettings_extensions.php}}, search for the section {{code snippet|lang=php|#Preloader}} and add the following line to the list of preloader boilerplates:&lt;br /&gt;
{{code|php|code=&lt;br /&gt;
  $wgPreloaderSource[ &amp;lt;NAMESPACE_CONSTANT&amp;gt; ]         = 'Template:Boilerplate &amp;lt;namespace name&amp;gt;';&lt;br /&gt;
}}&lt;br /&gt;
Where &amp;lt;code&amp;gt;&amp;lt;NAMESPACE_CONSTANT&amp;gt;&amp;lt;/code&amp;gt; is the mediawiki constant depicting the namespace you want the boilerplate for. If the target namespace isn't one you created on your own, please refer to https://www.mediawiki.org/wiki/Extension_default_namespaces for a complete list of predefined namespaces.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a page called &amp;lt;code&amp;gt;Template:Boilerplate &amp;lt;namespace name&amp;gt;&amp;lt;/code&amp;gt; in your wiki and fill it with the preloader text.&amp;lt;br /&amp;gt;&lt;br /&gt;
Please note, that text in {{tag|includeonly}} tags will ignored when preloading, so use it to categorize and document your boilerplates. The default category for boilerplates is {{cl|Preload text templates}}.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System messages ==&lt;br /&gt;
* [[MediaWiki:Sidebar]] is your left hand main navigation bar&lt;br /&gt;
&lt;br /&gt;
=== Default language ===&lt;br /&gt;
Depending on what language package you imported for default language these are either german or english&lt;br /&gt;
* [[MediaWiki:Badaccess-groups]], where you can disable the display of necessary groups for a certain action&lt;br /&gt;
* [[MediaWiki:Cascadeprotected]], a help page for (cacascade)-protected pages. Should display links for help pages and a working target for the &amp;quot;Submit an edit request&amp;quot;-button. See also [[#Templates_.28all_languages.29|the template {{((}}Protected page text{{))}}]] for more customization on this message.&lt;br /&gt;
* [[MediaWiki:Editpage-head-copy-warn]], a message displayed above the textarea when editing an existing page. Link here to help pages and helper templates&lt;br /&gt;
* [[MediaWiki:Newarticletext]], the note displayed above the textarea when creating a new article. Here you could add links to existing forms as alternative to manual creation (of course, only when using forms)&lt;br /&gt;
* [[MediaWiki:Noarticletext]], the text displayed when surfing to a non existant page. Add some links to your lokal help pages. When using semantic forms, this is also a good place to reference existing forms.&lt;br /&gt;
* [[MediaWiki:Noarticletext-nopermission]], same as before. Is displayed at a non existing page where the user doesn't have the rights to create the page&lt;br /&gt;
* [[MediaWiki:Nocreatetext]] is displayed for anonymous user, if you disallowed creating new aricles for them. Please link to help pages for rights policies&lt;br /&gt;
* [[MediaWiki:Protectedpagetext]], a help page for protected pages. Should display links for help pages and a working target for the &amp;quot;Submit an edit request&amp;quot;-button. See also [[#Templates_.28all_languages.29|the template {{((}}Protected page text{{))}}]] for more customization on this message.&lt;br /&gt;
* [[MediaWiki:Semiprotectedpagewarning]]&lt;br /&gt;
* [[MediaWiki:Tagline]] is the line displayed right below the page title. Please costumize but '''{{colors|darkred||do not}}''' leave empty. This would both up some vector stylings.&lt;br /&gt;
* [[MediaWiki:Uploadtext]] is displayed every time some is uploading a file. It is a rather long text concerning naming conventions and adding file descriptions. Just fit them to your policies.&lt;br /&gt;
&lt;br /&gt;
=== English ===&lt;br /&gt;
Please refer to [[#Default_language|Section &amp;quot;Default language&amp;quot;]] for the description. When you use english as your wikis default language, you can ignore these pages.&lt;br /&gt;
* [[MediaWiki:Badaccess-groups/en]]&lt;br /&gt;
* [[MediaWiki:Cascadeprotected/en]]&lt;br /&gt;
* [[MediaWiki:Editpage-head-copy-warn/en]]&lt;br /&gt;
* [[MediaWiki:Newarticletext/en]]&lt;br /&gt;
* [[MediaWiki:Noarticletext/en]]&lt;br /&gt;
* [[MediaWiki:Noarticletext-nopermission/en]]&lt;br /&gt;
* [[MediaWiki:Nocreatetext/en]]&lt;br /&gt;
* [[MediaWiki:Protectedpagetext/en]]&lt;br /&gt;
* [[MediaWiki:Semiprotectedpagewarning/en]]&lt;br /&gt;
* [[MediaWiki:Tagline/en]]&lt;br /&gt;
* [[MediaWiki:Uploadtext/en]]&lt;br /&gt;
&lt;br /&gt;
=== German ===&lt;br /&gt;
Please refer to [[#Default_language|Section &amp;quot;Default language&amp;quot;]] for the description. When you use german as your wikis default language, you can ignore these pages.&lt;br /&gt;
* [[MediaWiki:Badaccess-groups/de]]&lt;br /&gt;
* [[MediaWiki:Cascadeprotected/de]]&lt;br /&gt;
* [[MediaWiki:Editpage-head-copy-warn/de]]&lt;br /&gt;
* [[MediaWiki:Newarticletext/de]]&lt;br /&gt;
* [[MediaWiki:Noarticletext/de]]&lt;br /&gt;
* [[MediaWiki:Noarticletext-nopermission/de]]&lt;br /&gt;
* [[MediaWiki:Nocreatetext/de]]&lt;br /&gt;
* [[MediaWiki:Protectedpagetext/de]]&lt;br /&gt;
* [[MediaWiki:Semiprotectedpagewarning/de]]&lt;br /&gt;
* [[MediaWiki:Tagline/de]]&lt;br /&gt;
* [[MediaWiki:Uploadtext/de]]&lt;br /&gt;
&lt;br /&gt;
=== Templates (all languages) ===&lt;br /&gt;
The &amp;quot;Protected page text&amp;quot;-templates display text for protexted pages. They contain suggestions for the user, how to proceed. You should link your help pages and maybe add some indivudual guidelines.&lt;br /&gt;
* [[Template:Protected page text]]&lt;br /&gt;
* [[Template:Protected page text/semi]]&lt;br /&gt;
* [[Template:Protected_page_text/full]]&lt;br /&gt;
* [[Template:Protected_page_text/template]]&lt;br /&gt;
&lt;br /&gt;
== Some predefined Editsummaries ==&lt;br /&gt;
With the Gadget defaultsummaries you can give users an assortment of default edit summaries, increasing the chances they add summaries. You can edit the list here: [[MediaWiki:Gadget-defaultsummaries.js]].&lt;br /&gt;
&lt;br /&gt;
== Extending SMW ==&lt;br /&gt;
* You can add some more Semantic Special Properties for pages. [https://github.com/SemanticMediaWiki/SemanticExtraSpecialProperties/blob/master/CONFIGURATION.md Here is how!]&lt;br /&gt;
* Add some nice [https://www.semantic-mediawiki.org/wiki/Semantic_Result_Formats Semantic Result formats!]&lt;br /&gt;
&lt;br /&gt;
== Start your own subproject ==&lt;br /&gt;
This platform comes with a wide variety of templates and modules. It gives you a good working base to start your own project. If you want to build your own sub-project, it is recommended, that you use the already prepared file structure. Just switch to&lt;br /&gt;
&lt;br /&gt;
  ./_opt/init&lt;br /&gt;
&lt;br /&gt;
You'll find this structure:&lt;br /&gt;
{{code|io|&lt;br /&gt;
drwxr-xr-x 6 www-data www-data  4096 Dec  8 13:43 base_content           // here you find all base packages. imported automatically by script init&lt;br /&gt;
drwxr-xr-x 2 www-data www-data  4096 Nov 16 09:49 base_images            // here you find all base images. imported automatically by script init&lt;br /&gt;
-rw-r--r-- 1 www-data www-data 53212 Nov 16 09:49 db_init-binary.sql     // this generates your db structure, if you use collation binary (done by script init)&lt;br /&gt;
-rw-r--r-- 1 www-data www-data 54337 Nov 16 09:49 db_init-utf8.sql       // this generates your db structure, if you use collation binary (done by script init)&lt;br /&gt;
drwxr-xr-x 2 www-data www-data  4096 Dec  8 13:43 local_content          // place your project's .*list files here. update_content will use this list files to dump&lt;br /&gt;
                                                                         // your content. script init will ask whether to import xml-files located here&lt;br /&gt;
drwxr-xr-x 2 www-data www-data  4096 Dec 16 12:53 local_db_init          // if you have sql files to be run by script init, place them here&lt;br /&gt;
drwxr-xr-x 2 www-data www-data  4096 Nov 16 09:49 local_images           // place your project's image files here. script init will ask whether to import these or not&lt;br /&gt;
-rw-r--r-- 1 www-data www-data     0 Dec  4 15:57 use_script_'update_content'_to_update_your_content&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
A short howto:&lt;br /&gt;
# create your new project on a dev system&lt;br /&gt;
# branch. either from master or swm_core&lt;br /&gt;
# if you have special sql requirements, place these files in &amp;lt;code&amp;gt;local_db_init&amp;lt;/code&amp;gt; to be included by script init&lt;br /&gt;
# put your list-files in the directory &amp;lt;code&amp;gt;local_content&amp;lt;/code&amp;gt;&lt;br /&gt;
## remember: you can easily place a category name in the list file, &amp;lt;code&amp;gt;update_content&amp;lt;/code&amp;gt; will dump all files in that category&lt;br /&gt;
## if you want only the category, preface its name with a double colon &amp;quot;:&amp;quot;&lt;br /&gt;
# run &amp;lt;code&amp;gt;update_content&amp;lt;/code&amp;gt; to generate your dump files. run &amp;lt;code&amp;gt;url&amp;lt;/code&amp;gt; first, to see if your scripts have the correct source system&lt;br /&gt;
# place your projects images in the &amp;lt;code&amp;gt;local_images&amp;lt;/code&amp;gt; directory&lt;br /&gt;
# commit your changes in the new branch.&lt;br /&gt;
# your project is ready to be deployes (and filled with content)&lt;br /&gt;
&lt;br /&gt;
If there is a change in branches master or smw_core, merge them with your project and redeploy. If you make changes to your project's template/module pages, just repeat steps 4 to 7 and redeploy. Include changes in target systems by running script &amp;lt;code&amp;gt;import_dumps&amp;lt;/code&amp;gt; in the directory &amp;lt;code&amp;gt;base_content&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;local_content&amp;lt;/code&amp;gt; respectively. You can import new images with the corresponding mediawiki maintenance script.&lt;br /&gt;
&lt;br /&gt;
{{ambox|text=Hint: Most scripts have a user help. Just use parameter &amp;lt;code&amp;gt;--help&amp;lt;/code&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>mw&gt;Oetterer</name></author>
	</entry>
</feed>