MediaWiki

From rbachwiki
Revision as of 18:37, 31 August 2022 by Bacchas (talk | contribs)
Jump to navigation Jump to search

Edit the Common.css file

this file will affect the entire website

  • in the media wiki search box type:
MediaWiki:Common.css
  • then edit the page

Mediawiki class names

.keywords // uses for hidden keywords
.bluebackground

Install GoogleDocs Extension

Download and place the file(s) in a directory called GoogleDocs4MW in your extensions/ folder.
Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'GoogleDocs4MW' );
Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed

Download Extension

Usage

Supported parameters are:

Name	Default
width	500
height	300
style	width:100%
As an example using all of the parameters:

<googlespreadsheet width="600" height="200" style="width:50%">Google Docs' key goes here</googlespreadsheet>

Link to Another Page

[[BackWiki:CSS]]

// use alternate text

[[BackWiki:Css|My CSS Page ]]

Linking to Other Websites

http://google.com

 // use alt text

[http://www.google.com Text To Display]

HTML TAGS

// html tags must be wrapped in html tag
<html> <a href="http://www.google.com"> Text</a></html>

Basic Text Formatting

// italic
''sorround text with 2 single quotes''
// bold
'''Surround with 3 single quotes'''
// bold and itallic
''''' 5 single quotes '''''
// horizontal rule
----
// <!-- Comment will not display -->

Creating Lists

// lists
* list one
*list item 2
** list item one second level
*** list item one third level

// numbered list
# one level
## 2nd level
### 3 level

// defination list
; list heading like dt
: list item like dd

// line break inside list
<br />

// indenting list items
this is non idnedted text
: indented one level
:: indented 2 level



Move to new server

  • export database
  • create empty database in new server
  • import database
  • copy the directory over
apt install php-intl
  • edit the LocalSettings.php file in the root dir
$wgScriptPath = ""; // if you install it in a folder root as opposed to /wiki sub folder
  • update database and url info in LocalSettings.php