mediawiki

Is there a way automatically to resize MediaWiki images depending on screen size?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 04:45:19
问题 MediaWiki pictures can be set to a certain size with simple formatting. However, tables will resize on the fly depending on the browser / screen size. Can images be made to resize like tables? (Images inside tables does not work!) 回答1: I had the same question and saw from the answers above (now they are below) that you cannot have several pics with different relative sizes. So I wrote a mediawiki extension allowing this: http://mediawiki.org/wiki/Extension:AdaptiveThumb 回答2: Dynamic resizing

CentOS下搭建Wiki系统

此生再无相见时 提交于 2019-12-07 03:48:10
目前主流的wiki很多,我试过MoinMoin,配置起来实在头疼,而且不会用(重点),虽然它不使用数据库,却正是我不能理解的地方。反正用了很久都没有入门,后面干脆想换一个吧。于是,Mediawiki被我选中,在Apache下发布成功。 MediaWiki基于php+mysql,首先安装这些(印象,不一定准确) yum install httpd php mysql mysql-server php-xml php-mysql 下载Mediawiki,我下载的1.1.17版本的,以上的版本可能和后面的可视化编辑器不兼容。 解压,放到/var/www/html下,再创个链接 ln -s mediawiki-1.17 wiki 访问localhost/wiki即可,首次运行会允许你去配置的,很简单,很人性化。 可视化编辑 http://www.mediawiki.org/wiki/Extension:WYSIWYG 参照此文即可,很简单。 PS:如果配置错了啥的,直接把LocalSetting.php删掉,在重新进去配置一下即可。 来源: oschina 链接: https://my.oschina.net/u/933947/blog/119643

Web pages to print media — solutions?

会有一股神秘感。 提交于 2019-12-07 03:36:00
问题 I've been a big fan of MediaWiki and similar wiki-based text editors. I like the ability to quickly add text, collaborate, and share. However, there's always still the need for nicely formatted print output. Things like headers and footers (that say what I want them to say), page breaks, margins, etc. Most solutions I've seen involve some sort of conversion to a intermediate print-media format (maybe MediaWiki to Microsoft Word or maybe some custom scripting that generates a PDF from the

How does MediaWiki calculate the file path to an image?

蓝咒 提交于 2019-12-07 01:04:35
问题 I'm just installing MediaWiki (loving it). I'm lookin at this for adding images. I can se the logic of [[File:MediaWiki:Image sample|50px]] but where so I set the filepath for "File" (nothing obvious in LocalSettings.php) ... or is there some other logic at work? I'd appreciate any help Thanks 回答1: File location is determined by $wgLocalFileRepo which by default depends on $wgUploadDirectory and $wgHashedUploadDirectory. The upload directory defaults to [MediaWiki base dir]/images (Adrian

Passing an equal sign ('=') to a parameter in a MediaWiki template

自作多情 提交于 2019-12-06 17:04:17
问题 How can I use a '=' character in a template parameter without breaking the template parser? I'm not a MediaWIKI developer so I haven't debugged the code or checked the logs, I'm hoping someone here has a tip for escaping characters passed to templates. Create a template called "Test" with this content: {{{1}}} Like this: {{ Test | R = 3/(2-(1+1)) }} Will render {{{1}}} instead of the complex formula! I've determined the '=' character is the culprit. 回答1: If a MediaWiki template parameter

UserMerge Error

霸气de小男生 提交于 2019-12-06 16:07:02
I recently added the UserMerge extension to my mediawiki installation. Followed the instructions found here . I enabled $wgShowExceptionDetails = true; and it gave me this: [f9bbe088] /wiki/index.php/Special:UserMerge Exception from line 376 of /wiki/includes/SpecialPage.php: Call to undefined method UserMerge::getPageTitle Backtrace: #0 /wiki/extensions/UserMerge/UserMerge_body.php(128): SpecialPage->__call(string, array) #1 /wiki/extensions/UserMerge/UserMerge_body.php(128): UserMerge->getPageTitle() #2 /wiki/includes/SpecialPage.php(631): UserMerge->execute(NULL) #3 /wiki/includes

In MediaWiki is there a way to force a group of pages to have a particular skin?

怎甘沉沦 提交于 2019-12-06 15:30:41
The reason I am keen to do this is that we have a wiki which works great, but I would like to store help pages for an internal application in the wiki and link to those pages direct from the app. Although we wouldn't have concerns with people seeing the non-article stuff (i.e. the help pages) when viewing the pages from the rest of the wiki, for it to be streamlined when viewed from the application I thought it would be ideal if I gave it a simplified skin which I would design. I have already found out that URLs can have the useskin= added (e.g. as is done in the Preview Skin page within the

如何安装配置 MediaWiki

倖福魔咒の 提交于 2019-12-06 13:53:58
MEDIAWIKI 的安装很简单,首先下载 MediaWiki 的压缩包,然后解压缩到 XAMPP 的 htdocs 目录下,根据提示输入 MYSQL 的配置信息,数据库创建完成后就可以使用了。 关于配置,首先是左上角的 LOGO , 使用自己的图片替换 mediawiki/skins/common/images/wiki.png 文件即可。 MEDIAWIKI 部署的目的是项目组内部使用,禁止游客编辑和查看,因此打开 mediawiki/LocalSettings.php 在最后添加如下三行: $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false; 这样就禁止了游客注册账号,同时禁止了游客查看和编辑内容的权限。 最后是配置短路径,就是标题看起来是如下的样子: http://www.arctos.net/wiki/首页 而不是下面这种样子 http://www.arctos.net/mediawiki/index.php?title=首页 最简单的配置方法是,在 mediawiki/LocalSettings.php 的最后添加如下三行: $wgScript = "

How to get the result of a complex Wikipedia template?

こ雲淡風輕ζ 提交于 2019-12-06 13:02:51
This is a question that is a bit hard to follow but I will do my best explaining it. First, let me present an example page: http://en.wikipedia.org/wiki/African_bush_elephant That's a wikipedia page, a specie page in particular since it has the 'taxobox' to the right. I'm trying to parse the attributes in that taxobox using PHP. There's two ways in Wikipedia to create such a taxobox: manually, or by using the special "auto taxobox" template. I can parse the manual one. I use Wikipedia's API to return the page's content in json format, next I use some regular expressions to get those properties

convert ipython notebook to mediawiki

本小妞迷上赌 提交于 2019-12-06 11:58:55
I would like to convert an ipython notebook to mediawiki markup. I had two ideas how to do that: Customize an export for the nbconvert tool. Export to LaTeX first and then use pandoc to convert it to mediawiki markup. I couldn't find anything on the first option. The problem for the second option is that LaTeX output puts in a lot of custom commands which are not converted into <source lang='python'> ... </source> tags correctly. Does anybody have a good idea? you can probably pitch-in in issue 4058 nbconvert: Wikipedia (mediawiki) output . We'll be happy to guide you if you want to learn how