mediawiki-extensions

How to enable Mathematica syntax highlighting for MediaWiki using extension “SyntaxHighlight GeSHi”?

江枫思渺然 提交于 2020-01-23 01:34:07
问题 I'd like to syntax highlight Mathematica code on a MediaWiki site. I've already installed the MediaWiki extension SyntaxHighlight GeSHi and verified that it works for other languages. I tried simply putting a Mathematica langauge data file mathematica.php into MediaWiki's extension path wiki/extensions/SyntaxHighlight_GeSHi/geshi , however it didn't correctly highlight a Mathematica code block such as: <syntaxhighlight lang="Mathematica"> (* this is a comment *) List[Sin[x], Cos[x], Tan[x]];

Single Sign On from WordPress to media wiki

ε祈祈猫儿з 提交于 2020-01-03 04:32:28
问题 I am trying to create Single sign-on from Wordpress to MediaWiki. I have WPOauthServer running on my WordPress (Wordpress plugin). And on my wiki I have Extension:OAuth2 Client installed. I want that my users only log in to WordPress and from there they can go to the wiki without logging to wiki again. The WPOauthServer is working fine, I am using the Grant type Authorization Code . I have tested by using curl and I am able to get the authorization code and using the authorization code I can

How do I add a horizontal top menu bar to a MediaWiki site without hacking the skin?

独自空忆成欢 提交于 2020-01-03 02:41:12
问题 I want my MediaWiki site to have (either in addition to, or instead of, the sidebar) a bar of links at the top of the site, visible on every page. Requirements To minimize future maintenance burden, my requirements are: No modifications to core, extension or skin code. I do not want to maintain project forks. Ideally, privileged users should be able to edit the links shown in the menu bar by editing a special page, similar to how MediaWiki:Sidebar controls the content of the usual sidebar.

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

UserMerge Error

懵懂的女人 提交于 2019-12-23 03:56:29
问题 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-

MediaWiki custom skin: check if current page is main page

你。 提交于 2019-12-13 15:27:38
问题 I'm setting up a bunch of different language mediawiki's on one codebase. So far most of it is working, but I want to use a main page that looks different than the rest of the pages. To do this I originally just added some css rules that only applied to the main_page class: body .page-Main_Page { <rules> } The problem is that in other languages the main page is called differently (and the class changes accordingly), so I either have to add css rules for all possible main page titles (not

How can I make the Topbar extension work with the newest MediaWiki?

爱⌒轻易说出口 提交于 2019-12-13 01:27:49
问题 I run a MediaWiki site which uses the Topbar extension. I recently upgraded the installation to the bleeding edge version from MediaWiki's master branch: version 1.28.0-alpha (91e56cc). Afterwards, the Topbar extension no longer works: Usually, the topbar div is not inserted at all. Occasionally, the topbar div appears but the links are nonfunctional. The latter issue may be a problem with my CSS (I do not know), but the intermittent behavior concerns me. So the first order of business is to

Access restriction on MediaWiki: make pages private until approved

无人久伴 提交于 2019-12-11 07:08:52
问题 I am stuck over an access right situation, What I Want is: I have users creating articles/pages on MediaWiki, I have restricted it over registered/autoconfirmed users to only, But now the requirement is, that, Only an article can be displayed to anyone other than , creator or sysop only after the sysop approves that page/article. till then only the creator or sysop can edit that article. I have tried FlaggedRevs extension, and several other small restrictions, but couldn't get exactly what I

Where to call addModules()?

旧巷老猫 提交于 2019-12-11 03:02:36
问题 I would like to add some scripts and styles to all my wiki pages. So I have create the file /extensions/MyExtension/MyExtension.php and I put a following array like this: $wgResourceModules['ext.MyExtension.foo'] = array( 'scripts' => 'modules/ext.MyExtension.foo.js', 'styles' => array('modules/ext.MyExtension.foo.css','modules/ext.MyExtension.bar.css'), 'localBasePath' => __DIR__, 'remoteExtPath' => 'MyExtension', ); But in the documentation they say that I have to call $this->getOutput()-