User:CelebrityCrush/Changelog: Difference between revisions
mNo edit summary |
m updates |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
These are my notes on all the technical stuff done to set up this wiki. | |||
=== September 26 to October 4, 2025 === | |||
* installation of MediaWiki | |||
* edits to <code>LocalSettings.php</code> | |||
** tweaked sitename and namespace | |||
** update for short URL | |||
** enable image uploads | |||
** enable some of the bundled extensions | |||
*** Cite, CodeEditor, ParterFunctions, Scribunto, TemplateData, TemplateStyles, VisualEditor, WikiEditor | |||
** disable editing by anonymous users | |||
** prevent new user registrations except by sysops | |||
* install Citizen skin, make default (nevermind for now) | |||
* figuring out templates, realize modules/lua stuff not possible currently | |||
* edits to main page and css | |||
== limiting editing access == | |||
This is to make it a private wiki. To restrict editing and restrict account creation, you need to edit LocalSettings.php in the root path of your MediaWiki installation. | |||
<pre># Disable editing by anonymous users | |||
$wgGroupPermissions['*']['edit'] = false; | |||
# Prevent new user registrations except by sysops | |||
$wgGroupPermissions['*']['createaccount'] = false;</pre> | |||
[https://www.mediawiki.org/wiki/Manual:Preventing_access source] | |||
== Extensions == | == Extensions == | ||
| Line 12: | Line 40: | ||
[https://www.mediawiki.org/wiki/Manual:Extensions source] | [https://www.mediawiki.org/wiki/Manual:Extensions source] | ||
== Change the name of the wiki == | |||
[https://www.mediawiki.org/wiki/Change_the_name_of_the_wiki source] | |||
== Enable short URL == | |||
Used the 'no root access' method. | |||
Go to [https://shorturls.redwerks.org/ MediaWiki ShortURL Builder tool] and follow the on-screen instructions. | |||
[https://www.mediawiki.org/wiki/Manual:Short_URL source] | |||
== Hide the Title and Table of Contents on the main page == | == Hide the Title and Table of Contents on the main page == | ||
=== Table of Contents === | === Table of Contents === | ||
Place <code>__NOTOC__</code> anywhere you want on the page to hide its TOC. | Place <code><nowiki>__NOTOC__</nowiki></code> anywhere you want on the page to hide its TOC. | ||
[https://www.mediawiki.org/wiki/Manual:Table_of_contents source] | |||
=== Title === | === Title === | ||
| Line 61: | Line 103: | ||
== Using Templates == | == Using Templates == | ||
I still don't fully get this. | |||
I still don't fully get this. I copied some templates from Wikia Templates. I eventually got an Infobox to work. | |||
=== Center header text in an infobox === | |||
Don't remember where i found this. but add the follow to the css | |||
<pre> .pi-header, .pi-title, .infobox-header { | |||
text-align: center; | |||
}</pre> | |||
^^ that's been changed. this relates to portable info box extension by Fandom. | |||
*[https://community.fandom.com/wiki/Help:Infoboxes/Tags#Smart_group help page for infobox tags] | |||
== Customizing how the Main Page looks == | |||
This was pretty beyond me. I borrowed (copied) from [https://criticalrole.miraheze.org/wiki/Main_Page Encyclopedia Exandria] | |||
Add main page style css to [[MediaWiki:Common.css]] and then edit main page. | |||
== navigation boxes == | |||
* i tried to use fancy templates to create navboxes but i couldn't figure out how to customize the width of the groupstyle. i imported some templates and updated the common.css but i'll probably start from strach with that tbh | |||
*instead i manually created a navbox | |||
* [https://community.fandom.com/wiki/User_blog:Ultimate_Dark_Carnage/Carnage%27s_Guide_to_Templates:_Navboxes#articleComments template for manual navboxes] | |||
== templates sep 30 == | |||
* added some templates from templates wiki and warriors wikki. | |||
* enabled templesdata and templates style | |||
* got reflist from templates wiki (export) | |||
* got T:cite, T:cic, T:r, T:r/books T:C from warriors wiki (export) | |||
Latest revision as of 01:23, 4 October 2025
These are my notes on all the technical stuff done to set up this wiki.
September 26 to October 4, 2025
- installation of MediaWiki
- edits to
LocalSettings.php- tweaked sitename and namespace
- update for short URL
- enable image uploads
- enable some of the bundled extensions
- Cite, CodeEditor, ParterFunctions, Scribunto, TemplateData, TemplateStyles, VisualEditor, WikiEditor
- disable editing by anonymous users
- prevent new user registrations except by sysops
- install Citizen skin, make default (nevermind for now)
- figuring out templates, realize modules/lua stuff not possible currently
- edits to main page and css
limiting editing access
This is to make it a private wiki. To restrict editing and restrict account creation, you need to edit LocalSettings.php in the root path of your MediaWiki installation.
# Disable editing by anonymous users $wgGroupPermissions['*']['edit'] = false; # Prevent new user registrations except by sysops $wgGroupPermissions['*']['createaccount'] = false;
Extensions
Several extensions are bundled with MediaWiki as standard.
Check which extensions are active via the Special:Version page.
Installing extensions
Download and move the extracted extension folder to your extensions/ directory.
At the end of the LocalSettings.php file, add:
wfLoadExtension( 'ExtensionName' );
Change the name of the wiki
Enable short URL
Used the 'no root access' method.
Go to MediaWiki ShortURL Builder tool and follow the on-screen instructions.
Hide the Title and Table of Contents on the main page
Table of Contents
Place __NOTOC__ anywhere you want on the page to hide its TOC.
Title
Supposedly you can hide the page title using DISPLAYTITLE or making CSS modifications, but neither of those worked for me. Instead I used the NoTitle extension.
Download and move the extracted NoTitle folder to your extensions/ directory.
Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'NoTitle' ); $wgRestrictDisplayTitle = false;
Allow/Disallow uploads
in MediaWiki version 1.5 and later, the attribute to be set resides in LocalSettings.php and $wgEnableUploads is set as follows:
$wgEnableUploads = true; # Enable uploads
To disable upload functionality, set the attribute to false:
$wgEnableUploads = false; # Disable uploads
Change the Logo
The logo that appears in the top left of each page is determined by the $wgLogos configuration line in the LocalSettings.php file.
The logo is expected to be 135 × 135 pixels.
Upload an image to your wiki using the normal file uploading interface. Let's say it ends up as /images/4/47/mylogo.png. This allows the logo to be replaced easily, so you may want to protect the page if you use this method.
Then, modify the $wgLogos array in LocalSettings.php. It should look something like:
$wgLogos = [
'1x' => "{$wgUploadPath}/images/4/47/mylogo.png",
'icon' => "{$wgScriptPath}/images/4/47/mylogo.png",
];
Replace the paths above as appropriate, depending on where you actually uploaded the images.
Using Templates
I still don't fully get this. I copied some templates from Wikia Templates. I eventually got an Infobox to work.
Center header text in an infobox
Don't remember where i found this. but add the follow to the css
.pi-header, .pi-title, .infobox-header {
text-align: center;
}
^^ that's been changed. this relates to portable info box extension by Fandom.
Customizing how the Main Page looks
This was pretty beyond me. I borrowed (copied) from Encyclopedia Exandria
Add main page style css to MediaWiki:Common.css and then edit main page.
navigation boxes
- i tried to use fancy templates to create navboxes but i couldn't figure out how to customize the width of the groupstyle. i imported some templates and updated the common.css but i'll probably start from strach with that tbh
- instead i manually created a navbox
- template for manual navboxes
templates sep 30
- added some templates from templates wiki and warriors wikki.
- enabled templesdata and templates style
- got reflist from templates wiki (export)
- got T:cite, T:cic, T:r, T:r/books T:C from warriors wiki (export)