Difference between revisions of "Help:Wiki"
Jump to navigation
Jump to search
Line 111: | Line 111: | ||
:More info on [https://www.mediawiki.org/wiki/Manual:Interface/Sidebar the MediaWiki manual] | :More info on [https://www.mediawiki.org/wiki/Manual:Interface/Sidebar the MediaWiki manual] | ||
− | + | =Delete page history= | |
20180817 BEWARE, yet untested | 20180817 BEWARE, yet untested | ||
# Prodecure found here [http://www.hungryfools.com/2007/04/how-to-clean-up-change-history-of.html] that just invokes in the maintenance subdirectory <code># php deleteOldRevisions.php --delete</code> | # Prodecure found here [http://www.hungryfools.com/2007/04/how-to-clean-up-change-history-of.html] that just invokes in the maintenance subdirectory <code># php deleteOldRevisions.php --delete</code> | ||
Line 117: | Line 117: | ||
# [https://en.wikibooks.org/wiki/MediaWiki_Administrator%27s_Handbook/Page_Deletion#Restoring_some_or_all_deleted_revisions This page] advises to go to Special:Nuke, which does not exist on my wiki. | # [https://en.wikibooks.org/wiki/MediaWiki_Administrator%27s_Handbook/Page_Deletion#Restoring_some_or_all_deleted_revisions This page] advises to go to Special:Nuke, which does not exist on my wiki. | ||
− | == | + | =Installations and upgrades= |
− | + | ||
+ | ==Upgrade== | ||
+ | * Download and extract mediawiki and your extenstions tar-files | ||
+ | * Run <code>php ./maintenantce/upgrade.php</code> | ||
+ | * Link your web-root to the new release | ||
+ | * Rename the old directory to xxx_old to make sure nothing is fetched from any cache (I have to do this despite removing browser history and nginx restarts) | ||
+ | |||
+ | ==CirrusSearch== | ||
+ | Search extension that supports more complex search phrases. | ||
+ | |||
+ | For installation on mediawiki 1.34: | ||
+ | * Install java8 and [https://www.elastic.co/guide/en/elasticsearch/reference/6.5/getting-started-install.html#successfully-running-node elasticsearch 6.5.4] | ||
+ | ** <code>apt-get install openjdk-8-jre-headless</code> | ||
+ | ** <code>cd /opt;tar xzvf <location of elasticsaerch tar-file></code> | ||
+ | ** <code>/opt/elasticsearch-6.5.4/bin/elasticsearch</code> (yet to be deamonized) | ||
+ | * Install the Elastica and CirrusSearch mediawiki extensions [https://www.mediawiki.org/wiki/Extension:CirrusSearch] | ||
+ | * Follow instructions in ./extentions/CirrusSearch/README | ||
+ | ** Add this to LocalSettings.php | ||
+ | wfLoadExtension( 'Elastica' ); | ||
+ | wfLoadExtension( 'CirrusSearch' ); | ||
+ | $wgDisableSearchUpdate = true; | ||
+ | :*<code>php7.4 /.extensions/CirrusSearch/maintenance/updateSearchIndexConfig.php</code> | ||
+ | :*Remove $wgDisableSearchUpdate = true from LocalSettings.php | ||
+ | :*<code>php7.4 ./extensions/CirrusSearch/maintenance/forceSearchIndex.php --skipLinks --indexOnSkip</code> | ||
+ | :*<code>php7.4 ./extensions/CirrusSearch/maintenance/forceSearchIndex.php --skipParse</code> | ||
+ | :*Edit LocalSettings.php to have <code>$wgSearchType = 'CirrusSearch';</code> |
Revision as of 13:12, 25 September 2020
Generic
Wiki formatting setting not to forget: Check Mediawiki advanced editing [1] for more.
- <syntaxhighlight lang='bash'>
- </syntaxhighlight>
- Block of code formatted for the specified language
- <nowiki>
- </nowiki>
- Do not apply wiki formatting on this block
- ; Definition list term (<dt>)
- : Definition list definition or just indent(<dd>)
- :: Indent more
- * Bullit list
- Bullit list
- # Numbered list
- Numbered list
- [[category:name]]
- Add this page to category 'name'
- [[wikipage|alt text]]
- Link to page on local wiki. When provided 'alt text' is displayed instead of the page name.
- [[wikipage#Anchor|alt text]]
- Link to anchor on local wiki page. Headings, span and div's are automatic anchors.
- <span id=Anchor1></span>
- <div id=Anchor1></div>
- =Heading=
- Create anchor (works for each heading level)
- [URL text]
- Link to URL. When text is not provided the link's consecutive number is displayed.
- ''italics''
- '''bold'''
- '''''bold italics'''''
- <code>
Fixed width text
</code>
Tables
{| | table start, required |
|+ | table caption, optional; only between table start and table row |
|- | table row, optional on first row—wiki engine assumes the first row |
! | table header cell, optional. Consecutive table header cells may be added on same line separated by double marks (!! ) or start on new lines, each with its own single mark (! ).
|
| | table data cell, optional.> Consecutive table data cells may be added on same line separated by double marks (|| ) or start on new lines, each with its own single mark (| ).
|
|} | table end, required |
Template:
{| class="wikitable" style="width:60%"
|+ Caption
! Header
! Header
|-
| Content
| Content
|}
Header | Header |
---|---|
Content | Content |
Formula's
For formula rendering by the Math extension check these examples
Embedded file (images)
[[file:RadioSpectrum.jpeg|400x1107px]]. See the MediaWiki documentation.
Add following to LocalSettings.php
$wgFooterIcons['poweredby']['ipv6ready'] = [
"src" => "https://ipv6-test.com/button-ipv6-small.png",
"url" => "https://ipv6-test.com/validate.php?url=$wgServer",
"alt" => "ipv6 ready",
"height" => "31",
"width" => "88",
];
src can be a local file too. More information on the Mediawiki site.
Toolbar editing
- Edit the sidebar (not the Tools section there).
- Like editing a wikipage, goto //yourwikiurl/index.php?title=MediaWiki:Sidebar
- Syntax is a bit different, e.g. no [[]] for links
- More info on the MediaWiki manual
Delete page history
20180817 BEWARE, yet untested
- Prodecure found here [2] that just invokes in the maintenance subdirectory
# php deleteOldRevisions.php --delete
- A more complex suggestion
- This page advises to go to Special:Nuke, which does not exist on my wiki.
Installations and upgrades
Upgrade
- Download and extract mediawiki and your extenstions tar-files
- Run
php ./maintenantce/upgrade.php
- Link your web-root to the new release
- Rename the old directory to xxx_old to make sure nothing is fetched from any cache (I have to do this despite removing browser history and nginx restarts)
CirrusSearch
Search extension that supports more complex search phrases.
For installation on mediawiki 1.34:
- Install java8 and elasticsearch 6.5.4
apt-get install openjdk-8-jre-headless
cd /opt;tar xzvf <location of elasticsaerch tar-file>
/opt/elasticsearch-6.5.4/bin/elasticsearch
(yet to be deamonized)
- Install the Elastica and CirrusSearch mediawiki extensions [3]
- Follow instructions in ./extentions/CirrusSearch/README
- Add this to LocalSettings.php
wfLoadExtension( 'Elastica' ); wfLoadExtension( 'CirrusSearch' ); $wgDisableSearchUpdate = true;
php7.4 /.extensions/CirrusSearch/maintenance/updateSearchIndexConfig.php
- Remove $wgDisableSearchUpdate = true from LocalSettings.php
php7.4 ./extensions/CirrusSearch/maintenance/forceSearchIndex.php --skipLinks --indexOnSkip
php7.4 ./extensions/CirrusSearch/maintenance/forceSearchIndex.php --skipParse
- Edit LocalSettings.php to have
$wgSearchType = 'CirrusSearch';