Instructions for use
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
{{unordered list | {{unordered list | ||
− | | As soon as an organization is added, it has to be created an entry in LocalSettins.php | + | | As soon as an organization is added, it has to be created an entry in LocalSettins.php |
<syntaxhighlight> $wgGroupPermissions['memberof_{organization name}']['edit'] = false; </syntaxhighlight> | <syntaxhighlight> $wgGroupPermissions['memberof_{organization name}']['edit'] = false; </syntaxhighlight> | ||
− | + | where {organization name} should be replaced with the organization name with spaces replaced by underscores | |
}} | }} |
Revision as of 20:18, 16 February 2020
- Before importing templates or modules through either and so on, please import on another test wiki database on the same server, with the same LocalSettings.php, because the import might fail (for instance importing Module:TNT from wikipedia instead than from mediawiki) due to Lua script parsing.
- added parser functions: #userAffiliatedTo and #userRealName, the first returns the organization to which the logged in user is affiliated and the second the user real name.
- As soon as an organization is added, it has to be created an entry in LocalSettins.php
where {organization name} should be replaced with the organization name with spaces replaced by underscores
$wgGroupPermissions['memberof_{organization name}']['edit'] = false;