MediaWiki: Difference between revisions

From David's Wiki
Line 16: Line 16:
Math is written in standard latex syntax inside of <nowiki><math></math></nowiki>.
Math is written in standard latex syntax inside of <nowiki><math></math></nowiki>.
* Beware: Do not use <code>||</code>, use <code>\Vert</code> instead.
* Beware: Do not use <code>||</code>, use <code>\Vert</code> instead.
===Images===
See [https://www.mediawiki.org/wiki/Help:Images https://www.mediawiki.org/wiki/Help:Images]


==Advanced==
==Advanced==

Revision as of 14:19, 8 April 2020


Syntax

Below are how to typeset and format things in Mediawiki properly

Code

Inline code can by represented with <code></code>
Code blocks should be like:

<syntaxhighlight lang="cpp">
// ... my code here
</syntaxhighlight>

Math

Math is written in standard latex syntax inside of <math></math>.

  • Beware: Do not use ||, use \Vert instead.

Images

See https://www.mediawiki.org/wiki/Help:Images

Advanced

Importing Templates From Wikipedia

Link

  1. Go to Wikipedia's Special:Export
  2. Type in the templates you want. E.g.
  3. Template:Key press
    Template:Key press/doc
  4. Check include templates and download the file
  5. Go to your wiki's Special:Import
  6. Import the file.

Restricting Access

The best way to restrict access is to create a separate wiki.
However, there do exist extensions to manage access at the page-level.
See https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions
One such extension is Semantic ACL which requires Semantic Mediawiki.