MediaWiki: Difference between revisions
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
==Installation== | ==Installation== | ||
===Upgrade auf 1.16=== | ===Upgrade auf 1.16=== | ||
| Line 15: | Line 6: | ||
# new database mediawiki, user root, password <empty> | # new database mediawiki, user root, password <empty> | ||
# DB takeover not known anymore | # DB takeover not known anymore | ||
===Upgrade to 1.25 in E.ON Laptop New=== | |||
# see [[EONISLaptopHPNew#UweHeuer|here]] | |||
===Copy to Ubuntu Home PC=== | ===Copy to Ubuntu Home PC=== | ||
# Copy from Laptop to New Home PC via CopyUwesWikiTo192.168.178.202.bat | # Copy from Laptop to New Home PC via CopyUwesWikiTo192.168.178.202.bat | ||
===Upgrade from 1.25 to 1.33 on Raspberry=== | |||
* see [[RaspberryPi3B#Upgrade_from_1.25_to_1.33|here]] | |||
==Bearbeitung und Tips== | ==Bearbeitung und Tips== | ||
===Zentrale Einstellungen=== | ===Zentrale Einstellungen=== | ||
<MediaWikiDir>\LocalSettings.php | <MediaWikiDir>\LocalSettings.php. LocalSettings.php is not in the Mediawiki root directory, but created from /maintenance/DefaultSettings.php during guided installation. In case of an upgrade it is copied from the old installation. | ||
====Upload files==== | ====Upload files==== | ||
| Line 35: | Line 32: | ||
in LocalSettings.php | in LocalSettings.php | ||
$wgDBminWordLen = 3 | $wgDBminWordLen = 3 | ||
ergänzen und in MySQL configuration file | ergänzen und in MySQL configuration file (e.g. [[EONISLaptopHPNew#MySQL|E.ON Laptop New]]) | ||
[mysqld] | [mysqld] | ||
ft_min_word_len=3 | ft_min_word_len=3 | ||
| Line 77: | Line 74: | ||
===Personal Configuration=== | ===Personal Configuration=== | ||
==== | ====Skins==== | ||
* click my preferences | * click my preferences | ||
* select tab skins | * select tab skins | ||
* preview or select skin | * preview or select skin | ||
====Version==== | |||
* Left Menu -> Special Pages -> Data and tools section -> Version | |||
===Standard Funktionen=== | ===Standard Funktionen=== | ||
Latest revision as of 13:02, 28 August 2019
Installation[edit]
Upgrade auf 1.16[edit]
- backup database
- install to C:\Uwes\xampp\htdocs\mediawiki-1.16.0
- new database mediawiki, user root, password <empty>
- DB takeover not known anymore
Upgrade to 1.25 in E.ON Laptop New[edit]
- see here
Copy to Ubuntu Home PC[edit]
- Copy from Laptop to New Home PC via CopyUwesWikiTo192.168.178.202.bat
Upgrade from 1.25 to 1.33 on Raspberry[edit]
- see here
Bearbeitung und Tips[edit]
Zentrale Einstellungen[edit]
<MediaWikiDir>\LocalSettings.php. LocalSettings.php is not in the Mediawiki root directory, but created from /maintenance/DefaultSettings.php during guided installation. In case of an upgrade it is copied from the old installation.
Upload files[edit]
Upload ermöglichen[edit]
- $wgEnableUploads in LocalSettings.php auf true setzen
- $wgFileExtensions[] in LocalSettings.php ergänzen
Upload[edit]
- s. Toolbox (both named filenames need an extension like .png)
Suche für Zeichenketten ab Länge 3 ermöglichen[edit]
in LocalSettings.php
$wgDBminWordLen = 3
ergänzen und in MySQL configuration file (e.g. E.ON Laptop New)
[mysqld] ft_min_word_len=3
und
use <WikiDB>; REPAIR TABLE searchindex;
Suche mit Wildcards ermöglichen[edit]
s. http://www.mwusers.com/forums/showthread.php?t=3055&highlight=wildcard
- new file /includes/SearchMySQL4SubString.php
- adjust LocalSettings.php
Links extern öffnen[edit]
add $wgExternalLinkTarget = '_blank'; to C:\Uwes\xampp\htdocs\mediawiki-1.16.0\LocalSettings.php
Logo ändern[edit]
alter $wgLogo in LocalSettings.php, Datei muss in /skins/common/images/ liegen.
[edit]
- Sidebar->Sidebar anpassen
HTML ermöglichen[edit]
setting $wgRawHtml = true; in LocalSettings.php.
Überschriften nummerieren[edit]
auf der Seite preferences unter misc ankreuzen
breadcrumbs[edit]
- download Extension:BreadCrumbs from http://www.mediawiki.org
- unzip to extension directory
- add include to LocalSettings.php
adjust general styles[edit]
- edit <MEDIAWIKI_DIR>/skins/common/common.css
adjust skins[edit]
- edit <MEDIAWIKI_DIR>/skins/<SKINNAME>/main.css
Personal Configuration[edit]
Skins[edit]
- click my preferences
- select tab skins
- preview or select skin
Version[edit]
- Left Menu -> Special Pages -> Data and tools section -> Version
Standard Funktionen[edit]
Suchen[edit]
- Go sucht nach Seitennamen
- Search durchsucht den Text
- Anpassung um mit Wildcard * suchen siehe hier
- Anpassung, um nach Länge 3 zu suchen siehe hier
Formatierungen[edit]
''...'' italics
'''...''' bold
'''''...''''' bolded italics
<sub>tiefgestellt</sub>
<sup>hochgestellt</sup>
Zeilenumbrüche[edit]
Leerzeile oder <br />.
Headings/Sections[edit]
==...== top level
Aufzählungen/Listings[edit]
- * bullet lists
- # numbered lists
- #* mixtured lists
Links[edit]
- [[<Pagename>|<Text>]] InterWikiLink
- [[<Pagename>#<Heading>|<Text>]] InterWikiLink to section/heading. Pagename can be ommitted for interpage links.
- [[#<Anchorname]] Interpage link
- manually setting link targets/anchors <span id="AnchorName">text</span>
- http://www.siteground.com/tutorials/mediawiki/mediawiki_links.htm External Link
- [http://www.siteground.com/tutorials/mediawiki/mediawiki_links.htm Text] External Link with Text
- [[File:<Filename>.jpg|<Text>]]
Tabellen[edit]
{| [border="1"] [class="wikitable"]
|Orange
|Apple
|- [valign="top"]
|Bread
|Pie
|-
|Butter
|Ice cream
|}
s. http://de.wikipedia.org/wiki/Hilfe:Tabellen-Referenz
Images hinzufügen[edit]
Workaround[edit]
- export to C:\Uwes\xampp\htdocs\mediawiki-1.9.3\MyImages\
- link to [http://localhost/mediawiki-1.9.3/MyImages/<HTMLFilename> "<Text>"]
Standard[edit]
uploading the desired image in your MediaWiki folder. Then you need to indicate it in your post as an image using : [[image:tst.png]] (where tst.png is the name of the image).
You can also add thumbnailed images using: [[image:tst.png|thumb|caption]]
The images can be aligned so that you can add text next to it. Here is an example how to create a left alligned image:
[[image:tst.png|left|thumb|50px|]]
Quoting[edit]
<nowiki>...</nowiki>
Seite umbenennen[edit]
Its called 'move a page'. While moving there will be automatically a redirect page generated, which redirects the old name to the new name.
Test[edit]
External Links[edit]
http://www.siteground.com/tutorials/mediawiki/mediawiki_links.htm [http://www.siteground.com/tutorials/mediawiki/mediawiki_links.htm Text]
Sections[edit]
HTML[edit]
akdfja
Backup[edit]
- Data is stored in the database.
- Images are stored <INSTALLATION_DIR>/images/*
- Configuration items are defined in the source iles like LocalSettings.php.