User:Delimiter/Mediawiki Tips

From ConShell
Jump to navigation Jump to search

Things I must remember how to do in Mediawiki.

Upload and use images

See examples here and here

Including a page inside another

This can be done with a template by placing the {{Templatename}} tag on the page source.

A non-template can also be included using {{:Pagename}}

See Transclusion

Tables

A nicely formatted table can be found on the LinuxBSDPackageManagementTips

Generate sitemap

The script is in the wiki/maintenance folder. Here is how I run it

mdf@durango:/var/www/servers/conshell.net/wiki/maintenance$ php generateSitemap.php \
 --fspath=/var/www/servers/conshell.net/sitemap/ \
 --server=http://conshell.net --compress=no
0 ()
        sitemap-wikidb-mw_-NS_0-0.xml
1 (Talk)
        sitemap-wikidb-mw_-NS_1-0.xml
2 (User)
        sitemap-wikidb-mw_-NS_2-0.xml
3 (User talk)
        sitemap-wikidb-mw_-NS_3-0.xml
4 (ConchShell)
        sitemap-wikidb-mw_-NS_4-0.xml
6 (Image)
        sitemap-wikidb-mw_-NS_6-0.xml
8 (MediaWiki)
        sitemap-wikidb-mw_-NS_8-0.xml
10 (Template)
        sitemap-wikidb-mw_-NS_10-0.xml
12 (Help)
        sitemap-wikidb-mw_-NS_12-0.xml
14 (Category)
        sitemap-wikidb-mw_-NS_14-0.xml

Then, provide http://conshell.net/sitemap/sitemap-index-wikidb-mw_.xml URL.