MediaWiki: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
==Syntax== | |||
Below are how to typeset and format things in Mediawiki properly | |||
===Code=== | |||
Inline code can by represented with <nowiki><code></code></nowiki><br> | |||
Code blocks should be like: | |||
<pre> | |||
<syntaxhighlight lang="cpp"> | |||
// ... my code here | |||
</syntaxhighlight> | |||
</pre> | |||
==Advanced== | |||
===Importing Templates From Wikipedia=== | ===Importing Templates From Wikipedia=== | ||
[https://www.mediawiki.org/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial Link]<br> | [https://www.mediawiki.org/wiki/Manual:Importing_Wikipedia_infoboxes_tutorial Link]<br> |
Revision as of 20:11, 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>
Advanced
Importing Templates From Wikipedia
- Go to Wikipedia's Special:Export
- Type in the templates you want. E.g.
- Check include templates and download the file
- Go to your wiki's Special:Import
- Import the file.
Template:Key press Template:Key press/doc