MediaWiki: Difference between revisions

From David's Wiki
Line 22: Line 22:


==Restricting Access==
==Restricting Access==
The best way to restrict access is to create a separate wiki.<br>
See [https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions]
However, there do exist extensions to manage access at the page-level.<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].


==TODO==
==TODO==

Revision as of 00:01, 26 January 2021


Wikitext

Wikitext is the markup language for Mediawiki pages.

Import/Export

Importing Individual Pages From Wikipedia

Mediawikiwiki: Manual:Importing_Wikipedia_infoboxes_tutorial

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

Restricting Access

See https://www.mediawiki.org/wiki/Category:Page_specific_user_rights_extensions

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.

Writing Extensions

PHP Hooks

See Mediawikiwiki:Manual:Hooks

ParserAfterTidy

  • This is only called for new sections of pages, not necessarily the entire page.

JS Hooks

See mw.hook documentation