Manual:Manual for developers

From Urantiapedia

Installing a test server

  1. Install XAMPP. It should be installed outside of Program Files, for example, in c:\xampp.
  2. Start the XAMPP Control Manager that is at the root of the XAMPP installation.
  3. Click first on the Apache Start button, then on the MySQL button.
  4. To check that http://localhost/dashboard/works
  5. Install the WikiMedia module with Bitnami.
  6. When installing, enter the MySQL password (by default it is pwdpwd) and create a user for the wiki.
  7. The web will open at the end, something like: http://192.168.1.10/wiki/index.php/Main_Page or http://localhost/wiki/index.php/Main_Page according to localhost configured.
  8. Login to check that the user created in 7 works.

Templates

To import templates into Urantiapedia:

  1. Make sure that the Scribunto extension is available at the root of the Mediawiki /extensions/Scribunto installation and that the following two lines are appended to LocalSettings.php (also the root): wfLoadExtension( 'Scribunto' ); and $wgScribuntoDefaultEngine = 'luastandalone';.
  2. Lua may not work if the Lua binary does not have execute permissions. Go to the extensions/Scribunto/includes/engines/LuaStandalone/binaries/*OS*/ folder and change the permissions to execution ( 7 5 5 ).
  3. Export a template, for example, from Wikipedia, entering the export page: https://en.wikipedia.org/wiki/Special:Export
  4. Manually add one or more template names, for example, Template:Anchor
  5. Check all the boxes and export. An XML file is generated.
  6. Go to /Special:Import from Urantiapedia and import the XML. As an interwiki prefix, use en or es according to the Wikipedia that we have used to export the template.

More information in:

https://www.mediawiki.org/wiki/Extension:Scribunto#Installation

Remove title to main page

  1. You have to edit Common.css, which is actually a Wiki page. Go to the MediaWiki page:Commons.css. Editing that page is equivalent to editing a CSS that will be applied behind any skin in use.
  2. Add this line:
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading {display: none; }

More information in:

https://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_hide_the_main_page_title?

Install the MobileFrontend extension

This extension allows to display the Wiki in a more friendly way on mobile devices:

  1. Download the extension from: https://www.mediawiki.org/wiki/Extension:MobileFrontend/es
  2. Copy the compressed .gz file of the extension to the extensions folder.
  3. Unzip the file.
  4. Modify LocalSettings.php by adding this line: wfLoadExtension('MobileFrontend');
  5. Navigate to the Special:Version page to check that the extension has been loaded.

Change permissions of a user

It is done from the Special:UserRights page. It is accessible from Special pages in the main menu and then in the User Rights section.

To change a user the permissions must be added or removed from a User Group. There are several groups created with different permissions.

Make backup copies

From the entire website

cPanel, the web management software, has a tool called AutoBackup, which creates periodic backups every week and even every day. Access the tool in cPanel, select the backup that you want to download, then select that you want to download as a tar.gz and click Get. The process takes a while and in the end you are notified that the resulting file can be downloaded.

Then store the copy on a secure cloud disk.

Only from Database

  1. Open the XAMPP Control Panel and click the Shell button to open a command line
  2. By default the folder will be the XAMPP installation folder
  3. Launch the following command: mysqldump --port = <port> --user = <user> --password = <password> <db_name> > dump.sql where <port> is the MySql/MariaDB port which is usually 3306, <user> and <password> the username and password of the database administrator. If it is not known, look at the LocalSettings.php file in the mediawiki\htdocs folder. <db_name> is the name of the database with the wiki.
  4. The backup is generated as a dump.sql file in the XAMPP installation folder. Put date in the name and save the file.

Links of interest

Urantiapedia user manual:

MediaWiki software: