mediawiki

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

自闭症网瘾萝莉.ら 提交于 2019-12-08 04:13:59
问题 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

mediawiki: is there a way to automatically create redirect pages that redirect to the current page?

戏子无情 提交于 2019-12-08 03:54:44
问题 My hobby is writing up stuff on a personal wiki site: http://comp-arch.net. Currently using mediawiki (although I often regret having chosen it, since I need per page access control.) Often I create pages that define several terms or concepts on the same page. E.g. http://semipublic.comp-arch.net/wiki/Invalidate_before_writing_versus_write_through_is_the_invalidate. Oftentimes such "A versus B" pages provide the only definitions of A and B. Or at least the only definitions that I have so far

prevent pandoc from converting $ into mediawiki <math>

谁说我不能喝 提交于 2019-12-08 03:36:55
问题 I am converting a markdown file into mediawiki table using pandoc: content of file mtcars.md : | |c1 |c2 | |:--|:----|:--| |7 |P$A |A | |8 |AB |B | |9 |P$A |C | Then I do (I am using Ubuntu 64 bits and pandoc version 1.13.2) pandoc -t mediawiki -o mtcars.txt mtcars.md But the two $ signs are interpreted as <math>...</math> : {| ! !c1 !c2 |- |7 |P<math>A |A | |8 |AB |B | |9 |P</math>A |C |} How can I get the dollar signs instead? 回答1: The pandoc documentation says: Anything between two $

WikiEditor toolbar is missing

♀尐吖头ヾ 提交于 2019-12-07 19:55:59
问题 I am running MediaWiki 1.23 with a custom skin under Chrome . I have done as instructed in the MediaWiki page about WikiEditor(Extension:WikiEditor). Below, I provided the lines I've added after the end of the default configuration in LocalSettings.php : # End of automatically generated settings. # Add more configuration options below. require_once( "$IP/skins/Fresh/Fresh.php" ); require_once( "$IP/extensions/WikiEditor/WikiEditor.php" ); $wgDefaultUserOptions['usebetatoolbar'] = 1;

Finding subcategories of a wikipedia category using category and categorylinks table

守給你的承諾、 提交于 2019-12-07 17:55:35
I downloaded the category and categorylinks table sql.gz files from mediawiki and generated the required tables: category and categorylinks Manual for the tables: CategoryLinks Category Consider the following category page of: NoSQL The parent category of this page is Database and Database management. How could I get this information from the two tables? The manual for category table says the following but I am unable to get that information: " Note: The pages and sub-categories are stored in the categorylinks table." Categories alone have no hierachy. It’s the category pages that make the

Use SQL to delete old MediaWiki revisions without shell access?

点点圈 提交于 2019-12-07 16:54:12
问题 Does anyone know a SQL query that will purge a MediaWiki database of old revisions? My database has grown out of control, and I need to prune it to make it possible to download and manage. I don't have shell access so, I need to do this with a SQL query. I have tried the solution suggested here, but it doesn't work http://www.mediawiki.org/wiki/Extension_talk:SpecialDeleteOldRevisions2#Deleting_only_archived_revisions Thanks for reading :) Nicholas 回答1: As you, I don't have shell access to my

How to add image with link in a sidebar - MediaWiki

北战南征 提交于 2019-12-07 13:02:34
问题 I can add links to a MediaWiki sidebar this way: * some-url|url-text But how can i add image instead of text without hacking core or standard templates? I have read this: http://www.mediawiki.org/wiki/Manual_talk:Interface/Sidebar#Images_in_the_navigation_bar But it's just a feature request. 回答1: Three possible approaches: Write a custom skin, that handles the sidebar any way you want. Write a tiny extension using the hook SkinBuildSidebar, to handle some custom code for images Use MediaWiki

Make MediaWiki not show the view history tab for unregistered users

℡╲_俬逩灬. 提交于 2019-12-07 12:31:51
问题 I have a question. How do I make mediawiki not show the [view history] tab for unregister users? I know you can use css to do it: in Mediawiki:common.css: #ca-talk { display:none!important; } #ca-history { display:none!important; } but it's for everyone, even logged in users,so i want to have a way to make it just unregistered users. 回答1: Apparently, if you are running MediaWiki 1.18 or newer, you can add CSS that is only loaded for a specific user group. See the manual page for more

MediaWiki on SubDirectory and SubDomain

扶醉桌前 提交于 2019-12-07 09:08:54
问题 I wish to setup a MediaWiki install on both http://wiki.mysite.com/ and http://mysite.com/wiki/ , I figure there's some kind of trick to it, I assume that with at least a little tinkering I can get this working... I installed it in a directory which aliased to http://mysite.com/wiki/ , then setup another Apache VirtualHost, but now when I navigate to http://wiki.mysite.com/ I'm redirected to http://wiki.mysite.com/wiki/Main_Page , and get an internal server error. Any thoughts? 回答1: I just

Semantic mediawiki #ask query: Displaying nested properties on the same query

China☆狼群 提交于 2019-12-07 07:27:11
问题 I would like to display in the same query properties of a page which is related to the pages im querying for. Let's say I would like to query all the pages in the City category, which are located in Germany, and I want to display the title of the page, but also I want to display the surface data of Germany, for example. Something like this: {{#ask: [[Category:City]] [[location::Germany]] |?mainlabel |?Location.surface }} I know this wont work, but you can see what I want to achieve. 回答1: I'm