MediaWiki: Difference between revisions
No edit summary |
|||
Line 39: | Line 39: | ||
See [https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions]<br> | See [https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions]<br> | ||
One such extension is [https://www.mediawiki.org/wiki/Extension:Semantic_ACL Semantic ACL] which requires [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki Semantic Mediawiki]. | One such extension is [https://www.mediawiki.org/wiki/Extension:Semantic_ACL Semantic ACL] which requires [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki Semantic Mediawiki]. | ||
==TODO== | |||
* Find a way to insert text files into mediawiki (either via upload or as text). | |||
** These should be downloadable with a link. | |||
** Bonus if <code>.js</code> files and WebGL shaders can be made runnable. |
Revision as of 18:25, 10 May 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
- 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
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.
TODO
- Find a way to insert text files into mediawiki (either via upload or as text).
- These should be downloadable with a link.
- Bonus if
.js
files and WebGL shaders can be made runnable.