mediawiki

Updating a media wiki article using Python?

独自空忆成欢 提交于 2020-01-02 08:09:51
问题 Hi I have a cron job which collects some statistics about a service. I need the cron job to update a media wiki page (append to the page) programmatically. I am using python for the cron so what are my best options, are there any examples of mediawiki/python libraries or does Media wiki expose any HTTP/REST apis which I can use (may be through an extension). Thanks 回答1: If PyWikipediaBot is too heavy, try the Python module mwclient. You can login, view a page’s current content, make your

Different sidebar for mediawiki pages

感情迁移 提交于 2020-01-02 07:26:08
问题 I have edited my sidebar as follows , *Navigation ** Projects|Projects ** Resources|Resources ** IRC Support|IRC Support ** Media Wiki Archive|Media Wiki Archeive **Vote on What We Do|Vote on What We Do * SEARCH * TOOLBOX * LANGUAGES i would like to have 3 different sidebar for 3 different pages ,my first page is http://www.hh.com/wiki/Main_Page for this page i would like to have the sidebar as *Navigation **Hello|Hello * SEARCH * TOOLBOX * LANGUAGES for another i would like to have http:/

Creating custom edit buttons for MediaWiki

谁都会走 提交于 2020-01-01 17:30:07
问题 Hi im trying to build a mediawiki extension which requires AJAX calls during editing a page. All I need is to add a new edit button on the edit page which displays a javascript popup editor which in turn makes the appropriate calls. I need to know if it is feasible in Mediawiki, to inject javascrpt code into edit buttons. Any kind of information or leads are welcome! 回答1: Ok clearly the question is very specific, tht no one cared to answer. so if some one else wants to know how to add custom

Centos7中mediawiki的搭建

喜夏-厌秋 提交于 2020-01-01 13:06:12
准备环境LAMP 准备源码包libmcrypt-2.5.8.tar.gz, httpd-2.2.17.tar.gz, mediawiki-1.30.0.tar.gz ,mysql-5.5.22.tar.gz 安装Apache tar zxf httpd-2.2.17.tar.gz cd httpd-2.2.17 ./configure --prefix=/data/server/httpd --enable-so --enable-rewrite --enable-charset-lite --enable-cgi make && make install 关闭防火墙,做路径优化, systemctl stop firewalld ln -s /data/server/httpd/bin/* /usr/local/bin/ 启动apache,ip网页验证 apachectl start 安装mysql yum安装依赖环境 yum -y install ncurses-devel yum -y install cmake 创建运行用户 groupadd mysql useradd -s /sbin/nologin -M -g mysql mysql 编译安装mysql tar zxf mysql-5.5.22.tar.gz cd mysql-5.522 cmake -DCMAKE

Which wiki to use after MediaWiki? [closed]

本秂侑毒 提交于 2020-01-01 05:46:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . We're thinking of moving from our existing installation of MediaWiki to something more feature-rich. I'm trying to find all the pains people have with MediaWiki today (mainly it's poor handling of external documents and less-than-perfect editing capabilities - compared to Word). We are using a wiki for design,

Change all website links to affiliate links automatically

扶醉桌前 提交于 2019-12-30 07:07:32
问题 I would like to be able to automatically change links into affiliate links automatically on my MediaWiki installation. This would help to reduce the amount of time managing links in case the code needs to be changed in the future. This is the setup of my GOG.com affiliate scheme: I need to append this key to the end of every GOG.com link: ?pp=708a77db476d737e54b8bf4663fc79b346d696d2 gog.com/en/gamecard/baldurs_gate_the_original_saga/?pp=708a77db476d737e54b8bf4663fc79b346d696d2 Is it possible

Centos7中mediawiki的搭建

夙愿已清 提交于 2019-12-28 21:09:12
准备环境LAMP 准备源码包libmcrypt-2.5.8.tar.gz, httpd-2.2.17.tar.gz, mediawiki-1.30.0.tar.gz ,mysql-5.5.22.tar.gz 安装HTTPd 解压: tar zxf httpd-2.2.17.tar.gz 切换到这个目录 cd httpd-2.2.17 配置 ./configure --prefix=/data/server/httpd --enable-so --enable-rewrite --enable-charset-lite --enable-cgi 编译 编译安装 make && make install 关闭防火墙 systemctl stop firewalld 做链接 ln -s /data/server/httpd/bin/* /usr/local/bin/ 编辑文件 vim /data/server/httpd/conf/httpd.conf 在末行模式输入:set nu set nu 显示行号 取消掉注释 开启阿帕奇 apachectl start 网页验证成功 安装mysql yum安装依赖环境 yum -y install ncurses-devel yum -y install cmake 创建运行用户 groupadd mysql useradd -s /sbin

Where is monobook.js stored in MediaWiki?

戏子无情 提交于 2019-12-28 06:53:24
问题 I am trying to add extra buttons for my wiki editor page and I came across to this page: http://en.wikipedia.org/wiki/User:MarkS/Extra_edit_buttons#Simple_Install In the simple install section, I need to add extra code in monobook.js. However, I cannot find monobook.js in my wiki folder. Can anyone give me some direction? 回答1: The "simple install" you linked to is for Wikipedia users who want to enable the gadget from their personal script file. The correct topic would be #Installing XEB on

Mediawiki mass-upload breaks the page

筅森魡賤 提交于 2019-12-25 18:34:41
问题 Related question: Mass-upload many text files to MediaWiki I used shell script and ImportTextFile.php as Ilmari Karonen told me. But the result is a broken page like ��{�{�m�i�r�a�c�l�e� � �|� �m�a�z�i�n�g�a� �m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e� �c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a� �m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e� �c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a� �m�i�r�a�c�l�e� �=� �1� � �|� �a�p�p�l�e� �c�o�m�p�u�t�e�r� �=� �j�o�b�s� � �|� �m�a�z�i�n�g�a�

MediaWiki cannot get path

冷暖自知 提交于 2019-12-25 03:36:32
问题 My MediaWiki cannot get the path of my live web server. Here is the code: $script = $_SERVER['SCRIPT_NAME']; $path = pathinfo( $script, PATHINFO_DIRNAME ) . '/'; $path = str_replace( '//', '/', $path ); $ext = pathinfo( $script, PATHINFO_EXTENSION ); echo "Please <a href=\"" . htmlspecialchars( $path ) . "mw-config/index." . htmlspecialchars( $ext ) . "\">enter</a>"; The localhostwebserver displays the echo as: Please <a href=wiki.website.com/mw-config/index.php\">enter</a> , but the live