Jump to content

ICT:FinalConfig-Clutter and protection: Difference between revisions

From Costa Sano MediaWiki
No edit summary
No edit summary
Line 23: Line 23:


There are no other users in the system than the onces described above.
There are no other users in the system than the onces described above.
== Configuring the correct skin ==
LocalSystems.php snippet
<pre>
# =================================================
# SKIN & INTERFACE
# =================================================
# --- RESTORE VECTOR 2022 ---
wfLoadSkin( 'Vector' );
$wgDefaultSkin = "vector-2022";
# --- ENABLE NATIVE DARK MODE (For Vector 2022) ---
# This unlocks the "Appearance" menu for users without manual CSS hacks.
$wgVectorNightMode = [
    'beta' => true,
    'logged_in' => true,
    'logged_out' => true,
];
# --- OPTIONAL: Force 'Dark' as the default for all users ---
$wgDefaultUserOptions['vector-theme'] = 'night';
</pre>
= Protection =
Protection settings are realised in the following way. What is documented by MediaWiki as of using the following approach:
forbid everything
and the allow specific function and actions (with Lockdown)
Gives no result at all, because this is against the spirit of what Lockdown is supposed to do.

Revision as of 15:17, 13 February 2026

Final Configuration concerning general clutter reduction and page protection

Document revison: 2026-02-13 by Mngr

The project is using a lot of namespaces, both system default ones and proprietary ones. Although the general default philosophy of MediaWiki is to be as open as possible, we go for a as closed as possible scenario. This needs a lot a configuration and during 3 days of struggling with this configuration it was observed that it is not fully possible with too much extra lines of code to deal with this ending up in a stable and predictable system. The historical heritage project as intended to be used by senior people mostly older than 70 and have historical reflexes more than IT reflexes. A very first requirment is the use of DARK MODE and for now this is only present in an easy way in the vector-2022 skin. However this skin is rather complex so we learned the lesson the hard way not to use too much private css. An experiment to use the more simpler Minerva skin for all or a number of namespaces was not successfull due to the lack of Dark mode. This finally means that we ended up in extra configuration for vector-2022 in constant dark mode with clutter reduction and protection realised in LocalSystems.php and some elementary css files.

The idea is the following:

  1. Anonymous users should see the final public documents from the reserach effort, without any MediaWiki clutter.
  2. Sysop of course should be capable of dealing with the system as a normal sysop
  3. The users = senior historians, should only have access to
    1. Dashboard: namespace for introducing data
    2. Research: namespace for creating and editing and reviewing publication pages coming out of the research These, once validated and accepted by the users = Costa Sano clubmembers, should then be copied to the Main namespace for public access.

This means: the user workflow is

  1. Introducing and documenting media data via the Dashboard namespace
  2. Followed by the creating of pages to be made available to the general public in our environment, and optionally moved to Wikipedia.

There are no other users in the system than the onces described above.

Configuring the correct skin

LocalSystems.php snippet

# =================================================
# SKIN & INTERFACE
# =================================================
# --- RESTORE VECTOR 2022 ---
wfLoadSkin( 'Vector' );
$wgDefaultSkin = "vector-2022";

# --- ENABLE NATIVE DARK MODE (For Vector 2022) ---
# This unlocks the "Appearance" menu for users without manual CSS hacks.
$wgVectorNightMode = [
    'beta' => true,
    'logged_in' => true,
    'logged_out' => true,
];

# --- OPTIONAL: Force 'Dark' as the default for all users ---
$wgDefaultUserOptions['vector-theme'] = 'night';

Protection

Protection settings are realised in the following way. What is documented by MediaWiki as of using the following approach: forbid everything and the allow specific function and actions (with Lockdown)

Gives no result at all, because this is against the spirit of what Lockdown is supposed to do.