MediaWiki-Uploader Dokumentation: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(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…“)
 
Zeile 1: Zeile 1:
 
<span id="mediawiki-uploader"></span>
 
<span id="mediawiki-uploader"></span>
= MediaWiki uploader =
+
= MediaWiki-Uploader =
  
 
Requires a bot with sufficient rights to edit and create pages. The bot credentials have to be written into the upload script.
 
Requires a bot with sufficient rights to edit and create pages. The bot credentials have to be written into the upload script.
Zeile 7: Zeile 7:
 
== Requirements ==
 
== Requirements ==
  
* Python 3
+
* Python 3 (Tested with standard library of Python 3.10)
* Pandoc
+
* Pandoc (Markdown to MediaWiki conversion)
  
 
<!----->
 
<!----->

Version vom 13. September 2022, 13:30 Uhr

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 (Tested with standard library of Python 3.10)
  • Pandoc (Markdown to MediaWiki conversion)

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’’’