MediaWiki

From Dave's wiki
Jump to navigation Jump to search

I'm forgetful. Here are some reminders for myself on how to do things in MediaWiki. See also https://www.mediawiki.org/wiki/Help:Formatting.

Formating

 ''italic''
 
 '''bold'''
item 1
definition 1
item 2
definition 2-1
definition 2-2

Creating a redirect

#REDIRECT [[pagename]]

Tables

http://www.mediawiki.org/wiki/Help:Tables

Column 1 Column 2
Row 1 Row 1
Row 2 Row 2

Sidebar

http://www.mediawiki.org/wiki/Manual:Interface/Sidebar

Page for editing the side bar -> http://davetang.org/wiki2/index.php?title=MediaWiki:Sidebar

Installed extensions

http://davetang.org/wiki2/index.php?title=Special:Version

Links

Creating a link to another page

[[Main Page|different text]]

External link

[http://mediawiki.org MediaWiki]

See http://www.mediawiki.org/wiki/Help:Links for more details

References

You need to install https://www.mediawiki.org/wiki/Extension:Cite before using references. Then description first, then URL.

DNA packaging.[1]

To use the same reference multiple times, include a name parameter: http://www.mediawiki.org/wiki/Extension:Cite#Multiple_uses_of_the_same_footnote.

# define name and reference
<ref name="website">https://davetang.org</ref>
# use reference elsewhere by using "name"
<ref name="website" />