mediawiki

Where can I get templates for MediaWiki?

六月ゝ 毕业季﹏ 提交于 2019-12-03 01:41:51
I have noticed that a lot of mediawiki-based websites use such templates as Robelbox, Ambox etc. Where can I get them and how should they be installed? It's a PITA and unfortunately (unlike extensions or media files) there is no repository of canned templates. Templates load other templates which load others in turn, etc. Go to Wikipedia and copy the name of the template you're after, go to Special:Export and paste the name of the template in the big text box, e.g. Template:Infobox. Check "Include templates" and check "Include only the current revision, not the full history", (or the file will

Are there any tools to convert markdown to Wiki text in other formats

梦想与她 提交于 2019-12-03 01:39:32
问题 The requirement is that I need to paste a long document in markdown format to a mediawiki site, which has no markdown extension installed. All I can find about markdown, tools or modules/libraries, are in charge of converting markdown to HTML. My question is: is there a convenient way to do the work from markdown to MediaWiki wikitext? 回答1: Try Pandoc, a universal document converter: $ pandoc --help pandoc [OPTIONS] [FILES] Input formats: docbook, haddock, html, json, latex, markdown,

Java Wikitext Parser

前提是你 提交于 2019-12-03 00:39:53
Any ideas for a nice parser with an easy to use api that is configurable? I'm looking to feed it data such as http://wikitravel.org/wiki/en/api.php?format=xml&action=parse&prop=wikitext&page=San%20Francisco , choose sections of data I want, and output custom html for each unique type of element? Java would be preferred, but if there's a php/js solution that is compatible with most (99%+) wikitext, that would be okay as well. Sweble is probably the best Java parser of wikitext. It claims to be 100% compliant with wikitext, but I seriously doubt that. It parses wikitext into an abstract syntax

Mediawiki

匿名 (未验证) 提交于 2019-12-02 23:53:01
虚拟机安装 1使用yum安装LAMP环境,关闭防火墙和selinux,便于顺利测试: systemctl status firewalld systemctl stop firewalld systemctl disable firewalld 2配置MariaDB yum源安装Http和MariaDB: vim /etc/yum.repos.d/Mariadb.repo(空文件里输入) [mariadb] name = MariaDB baseurl = https://mirrors.ustc.edu.cn/mariadb/yum/10.2/centos7-amd64 gpgkey=https://mirrors.ustc.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck=1 3yum clean all yum makecache all 4安装httpd和mariadb数据库: yum install httpd mariadb-server mariadb 5vim /etc/httpd/conf/httpd.conf DocumentRoot "/var/www" <Directory "/var/www"> <Directory "/var/www"> 6启动httpd服务和mariadb服务 systemctl

TEXTAREAs scroll by themselves (on IE8) every time you type one character

安稳与你 提交于 2019-12-02 22:58:35
IE8 has a known bug (per connect.microsoft.com ) where typing or pasting text into a TEXTAREA element will cause the textarea to scroll by itself. This is hugely annoying and shows up in many community sites, including Wikipedia. The repro is this: open the HTML below with IE8 (or use any long page on wikipedia which will exhibit the same problem until they fix it) size the browser full-screen paste a few pages of text into the TEXTAREA move the scrollbar to the middle position now type one character into the textarea Expected: nothing happens Actual: scrolling happens on its own, and the

How to add extensions in Mediawiki?

一曲冷凌霜 提交于 2019-12-02 21:28:20
问题 How do i add the below new extensions in MediaWiki? *.xmcd and *.mcd for MathCad source files *.m and *.dat for Matlab source files. I have already few extensions in LocalSettings.php mentioned below $wgFileExtensions = array_merge( $wgFileExtensions, array( 'doc','pdf', 'ppt', 'zip', 'svg', 'xls', 'vsd', 'vdx', 'docx', 'xlsx', 'pptx') ); Thanks in advance Jayaprabu R 回答1: If I've understood correctly, you simply add extensions as follows: $wgFileExtensions = array_merge( $wgFileExtensions,

Any better way to create MediaWiki numbered lists?

▼魔方 西西 提交于 2019-12-02 19:53:55
When using MediaWiki's markup language, the only thing that I hate is creating numbered lists. The only way I know to create a list is to do something like this: #Item1 #Item2 However, if I want to add spaces or some other text between those lines, the numbering gets lost. For example, the following will create text that has two number one items: #Item1 Somestuff #Item2 Is there any way around this, or should I just use bullet points instead? I noticed just now that the stackoverflow system does not allow numbering like this, you have to do it all manually. Like this: #Item1 #:Somestuff #Item2

Wikipedia api fulltext search to return articles with title, snippet and image

只愿长相守 提交于 2019-12-02 17:44:22
I've been looking for a way to query the wikipedia api based on a search string for a list of articles with the following properties: Title Snippet/Description One or more images related to the article. I also have to make the query using jsonp. I've tried using the list=search parameter http://en.wikipedia.org/w/api.php?action=query&list=search&prop=images&format=json&srsearch=test&srnamespace=0&srprop=snippet&srlimit=10&imlimit=1 But it seems to ignore the prop=images, I've also tried variations using the prop=imageinfo and prop=pageimages. But they all give me the same result as just using

Searching Wikipedia using API

牧云@^-^@ 提交于 2019-12-02 16:40:29
I want to search Wikipedia using the query action. I am using this url: http://en.wikipedia.org/w/api.php?action=query&format=json&list=search&srsearch=apple That works but I want to get into the first result of the search. How can I do that? Note: That url works fine when there is only one result.. I just need the title and some short description. octosquidopus I don't think you can do both in one query. 1. To get the first result, use the Opensearch API . https://en.wikipedia.org/w/api.php?action=opensearch&search=zyz&limit=1&namespace=0&format=jsonfm https://en.wikipedia.org/w/api.php

Are there any tools to convert markdown to Wiki text in other formats

风格不统一 提交于 2019-12-02 15:07:09
The requirement is that I need to paste a long document in markdown format to a mediawiki site, which has no markdown extension installed. All I can find about markdown, tools or modules/libraries, are in charge of converting markdown to HTML. My question is: is there a convenient way to do the work from markdown to MediaWiki wikitext? applicative Try Pandoc , a universal document converter: $ pandoc --help pandoc [OPTIONS] [FILES] Input formats: docbook, haddock, html, json, latex, markdown, markdown_github, markdown_mmd, markdown_phpextra, markdown_strict, mediawiki, native, opml, rst,