mediawiki

Using MediaWiki note template in my MediaWiki site

可紊 提交于 2019-12-25 03:26:48
问题 How can I import and use MediaWiki Note template in my MediaWiki site? 回答1: Use Special:Export (with the "include templates" option) and then feed the resulting XML to Special:Import on your wiki. Note though that copying a complex template is usually hard, you need to match the configuration of the source site to a significant extent for the template to work. E.g. in this case you'll need to install the TemplateData and Translate extensions, possibly Scribunto too. 回答2: When you open edit

How can you change images src attributes in mediawiki to access a CDN?

瘦欲@ 提交于 2019-12-25 01:52:58
问题 We have a mediawiki with lots of images http://bbref.com/bullpen/ and want to serve images via our CDN for obvious reasons, but I can't quite grok how to set things up in mediawiki so that we can get img src="/local/path/to/image.png" to output as img src="http://cdn.example.com/local/path/to/image.png" The CDN is up and running, so I don't need any help there. I just need the fix for mediawiki to change image srcs to point there rather than with a relative link. thanks, sean 回答1: Take a look

MediaWiki 1.18.3/1.19.0 : Namespaces restrictions

怎甘沉沦 提交于 2019-12-25 00:58:55
问题 I try to create some permissions on my MediaWiki. I followed this tutorial, but it didn't work... I try to create a Staff group which have permission to read, edit, create and delete pages into the Staff namespace. Classic users should not see all pages in this namespace. Here is the LocalSettings.php file : # Namespaces define('NS_STAFF', 103); $wgExtraNamespaces[NS_STAFF] = 'Staff'; # Groups define('G_STAFF', 'Staff'); # Default Group Rights # Anonyms $wgGroupPermissions['*']['read'] = true

Add textContent to HTML via MediaWiki template

泄露秘密 提交于 2019-12-25 00:17:11
问题 I have created a MediaWiki template named by the Hebrew letter א ( template:א ). Its content is: <code></code> I call it by {{א|SOME_textContent}} . Desired state I desire to show a single-line code iside regular text, for example: הסימן הזה = הינו סימן שוויון My problem My problem is that after I save a page with the above template call, I get an empty <code> tag content ( ). My question Why do I get empty <code> tag content ( ), instead getting SOME_textContent (the input I gave in call

MediaWiki Category Tree expand all by default

て烟熏妆下的殇ゞ 提交于 2019-12-24 17:57:14
问题 Im using the Category Tree extension for MediaWiki which allows you to create a nice tree view of all categories. By default when you visit a page with a category tree you have to expand a category manually by clicking the toggle symbol. Is there a way to expand all categories by default? Where do i have to make changes in code? 回答1: Mediawiki has Jquery by default so you can just click with Jquery: $('.CategoryTreeToggle').click(); 来源: https://stackoverflow.com/questions/37348060/mediawiki

MediaWiki Category Tree expand all by default

半城伤御伤魂 提交于 2019-12-24 17:57:01
问题 Im using the Category Tree extension for MediaWiki which allows you to create a nice tree view of all categories. By default when you visit a page with a category tree you have to expand a category manually by clicking the toggle symbol. Is there a way to expand all categories by default? Where do i have to make changes in code? 回答1: Mediawiki has Jquery by default so you can just click with Jquery: $('.CategoryTreeToggle').click(); 来源: https://stackoverflow.com/questions/37348060/mediawiki

Restoring an old MySQL backup

不想你离开。 提交于 2019-12-24 12:16:45
问题 I have a large file from 2007 containing a backup (as a SQL Script) of a MySQL Database. It's for an unknown version of MediaWiki. -- phpMyAdmin SQL Dump -- version 2.6.2-Debian-3sarge3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 29, 2007 at 12:42 PM -- Server version: 4.0.24 -- PHP Version: 4.3.10-19 I've tried installing mysql-5.5.8-win32 and mysql-workbench-gpl-5.2.31a-win32 but am getting syntax errors. Is there an easy way of making the old script

How to prevent MediaWiki from redirecting the main domain to the “Main Page”?

半世苍凉 提交于 2019-12-24 10:35:16
问题 I see a lot of questions about how to change the title of a MediaWiki Main Page or how to redirect it to another page, but I can't seem to find anything on how to 1) prevent MediaWiki from redirecting the main domain to the "Main Page", and 2) display a stand-alone page under the main domain. In other words, how to do exactly what Wikipedia does when you go to www.wikipedia.org Instead of redirecting you to "http://en.wikipedia.org/wiki/Main_Page", it displays a stand-alone custom page on the

Mediawiki: Same section with multiple names (section aliases/synonyms)

若如初见. 提交于 2019-12-24 08:38:46
问题 Is it possible to give the same section multiple names in mediawiki out-of-the-box (vastly preferred), or do I need to write my own hook/extension/plugin (and if so, tips on how to do so much appreciated)? In my case, I have example code on single compilation page that I want to link to for multiple individual articles by the name of each article. For instance, I would like something like the following the work. Page: Interrupts Code Examples ===(EIMSK|EICRA)=== void interrupt01_init(void) {

semantic mediawiki property calculation

隐身守侯 提交于 2019-12-24 06:42:46
问题 I installed the MediaWiki-extension Semantic MediaWiki recently. In this extension you can define properties. They are like categories for values. If I define two properties like this: [[StartYear::2000]] [[EndYear::2005]] Is it possible to make calculations based on these properties if I do a semantic search. For example: {{#ask: [[Category:Project]] [[EndYear]] - [[StartYear]] = 5 }} to get all projects with a duration of 5 years? best, UP 回答1: For this you would need to pre-process the