MediaWiki-Uploader Dokumentation

Aus Xinux Wiki
Version vom 13. September 2022, 13:28 Uhr von Linkai.zhang (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<span id="mediawiki-uploader"></span> = MediaWiki uploader = Requires a bot with sufficient rights to edit and create pages. The bot credentials have to be wr…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

MediaWiki uploader

Requires a bot with sufficient rights to edit and create pages. The bot credentials have to be written into the upload script.

Requirements

  • Python 3
  • Pandoc

Usage

Create a Markdown file with the contents for the desired wiki page. Only mandatory metadata is the title of the page to be created or edited. Additional metadata can be used to influence the bot behaviour, like not creating new pages or not editing existing pages. Headers, lists, text or any other type of block should be separated by a newline. To upload execute:

’‘’Bash python xinux-wiki file’’’