How to create favorites within a wiki? - mediawiki

I use a wiki with 20 other ppl. I have my own username. How can I set some favorites to special pages in the wiki within the wiki? Do I really have to create a page within the wiki called "my favorites"?

You can use the watchlist or install the Collection extension.

Related

How to search a MediaWiki-based wiki for pages that use the template "underconstruction" and are tagged with "abcd"?

I want to search through a wiki based on the MediaWiki software for a list of pages which use the template "underconstruction" and are tagged with "abcd". How can this be done?
Using the MediaWiki interface
Using the AdvancedSearch extension, like on Wikipedia, allows you to specify advanced search options.
Using the API
A query similar to this might work:
/w/api.php?action=query&format=json&prop=templates&list=categorymembers&tltemplates=underconstruction&cmtitle=Category%3AAbcd&cmprop=ids%7Ctitle
First you need to install CirrusSearch extension. This will optimize search capabilities, and make the search very fast.
After that, you can use the built-in keyword to optimize the search. For example, use these keywords:
incategory:"THE-NAME-HERE"
Use it to search for all pages inside the category name.
hastemplate:"THE-NAME-HERE"
Use it to search for all pages that contain specific template.
But if you need to get all pages that have specific category, AND specific template use this:
incategory:"underconstruction" hastemplate:"abcd"
For more search optimizations see this link

How do you open comments for anonymous user for a specific content type (blogs) in Drupal?

I want to open comments for anonymous users also but only for blogs content type. Is there any module I need to download or we need to do it programmatically or it can be done through the Drupal backend?
It can done through drupal permissions, goto "people/permissions" search for comment and look for post comments settings and check the checkbox for anonymous user.

Personal wiki: changing the names of several pages

In my wiki I sent in a request to add a new namespace called 'Exchange', however adding the new namespace will delete all pages with the name 'Exchange:blahblah'. So I would need to change the page name for all these pages before requesting to add the namespace. The problem is that there are just under 1000 pages such as 'Exchange:blahblah' and changing the names of all of them would take up too much time.
My question is how, if possible, can I change the names of all these pages without having to manually alter the name individually. That is, if I wanted to change every exchange page from 'Exchange:blahblah' to 'Exchange1:blahblah', then is there a quick and easy way to change them all. All the pages are under the same category, if that helps.
Any advice would be greatly appreciated.
Add the namespace then run php maintenance/namespaceDupes.php --fix --move-talk from shell. See its documentation for details.

Mediawiki custom namespaces id change

I am currently working on an internal Mediawiki and we are using a lot of custom written extensions.
Because we did no know better, defined custom namespaces for our own extensions and articles with an id that is smaller than 3000.
For example:
define('NS_bla', 1100);
$wgExtraNamespaces[NS_bla] = "bla";
define('NS_bla_TALK', 1101);
$wgExtraNamespaces[NS_bla_TALK] = "bla Talk";
We did this with several different extensions. Now we read on the official documentation (http://www.mediawiki.org/wiki/Extension_default_namespaces) that custom namespaces should use id's that are 3000+.
Therefore my question: How can we easily change the IDs of the namespaces on the production instance, without messing up with our current dataset? How could we tackle this problem? I could not find any information on the Mediawiki documentation.
Thank's a lot in advance and
Cheers from Germany,
Fabian
To answer the question, you would need to update the page table with the new namespace ID:
http://www.mediawiki.org/wiki/Manual:Using_custom_namespaces#Use_a_database_query
To fit this to your occassion, it would be:
UPDATE page
SET page_namespace = 3000
WHERE page_namespace = 1100
You shouldn't have to replace the page_title since these articles are already in another namespace.
Just please remember to back up your database before trying this.

How to search a word in a html file without any java coding?

I'm doing a project in Java which creates a user manual (html files that are linked together like Windows "Help and support centre") of software. Now once a user manual is created I have only html files remaining. Now I want to search html file that contains specified keyword(Search Engine).How can I do this without Java code??
grep, find, python script, or open any file with a text editor and try edit->search
(on windows use windows search in file)
If all of your other code is written in java, then it'll be sensible (without knowing your usecase) to use java for searching as well. You might of course use some commandline programs as grep or find - or built in search functionality in a webbrowser, but if the search should be part of a java application anyway, why not go for java and e.g. Lucene?
If this 'help' is going to be online than you can embed google search in it (limiting the search results to specified site:). Alternatively if you're hosting the pages yourself you can use htdig for indexing the pages.
However if it's going to offilne you'll be better of by generating a static index page with links to topics. In order to create a more help-system-alike user experience you can hide the contents of the index in the invisible html DIV tags and add a JavaScript that takes searched phrase as an input and that unhides the matched words with their links.
Maybe I'm missing something, but have you looked at javahelp? It has indexing and searching built in, and can be used online or offline.