MediaWiki: Difference between revisions

From David's Wiki
No edit summary
Line 3: Line 3:
==Syntax==
==Syntax==
Below are how to typeset and format things in Mediawiki properly
Below are how to typeset and format things in Mediawiki properly
===Code===
===Code===
Inline code can by represented with <nowiki><code></code></nowiki><br>
Inline code can by represented with <nowiki><code></code></nowiki><br>
Line 12: Line 13:
</pre>
</pre>


===Math===
Math is written in standard latex syntax inside of <nowiki><code></code></nowiki>.
* Beware: Do not use <code>||</code>, use <code>\Vert</code> instead.


==Advanced==
==Advanced==

Revision as of 20:12, 10 January 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 <code></code>.

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

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.