Difference between revisions of "MediaWiki"
Jump to navigation
Jump to search
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== 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== | |||
<pre> | |||
.keywords // uses for hidden keywords | |||
.bluebackground | |||
.yellowbackground | |||
.subhead // use instead of ''' | |||
</pre> | |||
== Using API == | |||
API Docs | |||
[https://www.mediawiki.org/wiki/API:REST_API/Reference#JavaScript] | |||
== Install GoogleDocs Extension == | == Install GoogleDocs Extension == | ||
<pre> | <pre> | ||
Line 88: | Line 105: | ||
</pre> | </pre> | ||
== Move to | |||
== 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 | |||
<div class="keywords"> | |||
common css </div> |
Latest revision as of 16:17, 16 January 2023
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 .yellowbackground .subhead // use instead of '''
Using API
API Docs [1]
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
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
common css