13

Because templates are just normal pages with a specific type of content on them, there is no one set-in-stone way of finding a list of templates. However, the majority of MediaWiki sites will use a Template namespace for keeping templates together and easily implementable. To get a list of all pages within a given namespace, go to Special:AllPages; at the ...


10

If you place this formula in a cell within Google Sheet, it will scrape the tabular data from this Wikipedia article link: http://en.wikipedia.org/wiki/Demographics_of_India =IMPORTHTML("http://en.wikipedia.org/wiki/Demographics_of_India", "table", 4) Once you have the data within Google Sheet, you can filter by column value (select column header, choose ...


9

I don't think this can be done, and that is by design. A section is intended to end with the heading of a new section. The described situation would create some ambiguity, because there are no visual cues on the page to define where a section ends except for the header of a new section. It may also be unnecessary, because a default install of MediaWiki ...


8

You can transclude Special:AllPages: {{Special:AllPages}}. On my tiny testing wiki, that displays a table with all pages on the wiki.


7

There is a tool called WikiBlame that lets you do exactly that: you enter a page name and a phrase to search for and will point you to the edit that added it. It's also linked from the History page of every page on the English Wikipedia (as “Revision history search”).


7

Passing action=raw is the best way to obtain just the wikitext of a page, although it can be done with the API. See https://en.wikipedia.org/w/index.php?title=Paris&action=raw for example and the MediaWiki docs.


6

If you want to use {{DISPLAYTITLE:}} to change a display title completely (as in, not just different capitalization), you'll need to make a change in LocalSettings.php. Set [$wgRestrictDisplayTitle][1] to false. Additionally, if you're looking to change where the main page resides, you can change [[MediaWiki:Mainpage]] to change the default main page users ...


5

Here is how you do it : Changing the Title of the Media Wiki Page It looks identical to the wiki you have installed on your website. And it's very simple, Login as Administrator and use the [Move] link on top of the page.


5

Wikimedia provides dumps [0], wich depending of your intention, can be helpfull. Delected revisions or articles aren't shown on those dumps nor are publicly avaiable, but depending of the objective, it's possible to request access to non-public data. [1] [0]- https://meta.wikimedia.org/wiki/Data_dumps [1]- https://meta.wikimedia.org/wiki/Research:...


5

Since v1.18, out-of-the-box you can do the following (as described here): <div class="mw-collapsible mw-collapsed"> This text is not collapsible; but the next is collapsible and hidden by default: <div class="mw-collapsible-content">{{Lorem}}</div> </div>


5

Wikipedia has a "browse history" box at the top of each revision history box. This allows you to see the changes from before a specific year and month.


5

You can limit the history page to a specific date, then the first version listed is what was valid at that specified date: Go to the history page of your desired page, and then add &YYYYMMDDHHMMSS to the URL. Example: http://en.wikipedia.org/w/index.php?title=Help:Page_history&action=history&offset=20121231000000 (BTW, that page is where I ...


5

The code for the sidebar is in the page MediaWiki:Sidebar. It should be enough to remove the line ** randompage-url|randompage from there. You need administrative privileges to edit that page. Note that this does not actually disable the “Random page” feature (that's still accessible from Special:Random), it just removes the link from the sidebar. If you ...


5

You can use the Wikimedia "pipe trick" to keep from having to repeat the username: [[User:Username|]] turns into [[User:Username|Username]] Wikipedia1 has some templates that are set up for this. You could just use the User link template {{u|Username}} To be more "Twitter-like", there's the ping template (aka "Reply to") This template is ...


4

We installed the Lucene search engine, as used on Wikipedia, and the MWSearch extension that integrates it with MediaWiki. Lucene: https://www.mediawiki.org/wiki/Extension:Lucene-search MWSearch: https://www.mediawiki.org/wiki/Extension:MWSearch Installation is complex, but when it's working, you can basically forget about it and let it run. An additional ...


4

There's a tool for that: https://tools.wmflabs.org/xtools/pages/ (XTools has some other useful tools as well) Alternatively, on any specific wiki, you can also show all pages created by any named user through this search.


4

As of Wikimedia 1.23, this can be done with the Usercontribs module in the API using the new option of the ucshow parameter.


4

Perhaps the DumpHTML Extension does what you're looking for? This tool should dump your entire wiki as HTML.


4

You can change the contents of "MediaWiki:Mainpage" to contain the text "Special:AllPages". Whenever users click on the "Main page" link on the sidebar, the logo or accessing your wiki's domain name, you will be immediately directed to the special page. The advantage of this is that they see "All pages" as the page title and not "Main Page".


4

OK, I figured it out. I have done this and it works the way I want: [[File:StackOverflowProvilePic.jpeg‎|left|frame|Yes, this is me]] Apparently you can add many options between the image filename and the caption text. Why leaving that frame or thumb option off would cause the caption text to not appear is a mystery. To me, anyway.


4

WikiMiniAtlas developer here. Replace the | between 2000 and region with a _ {{coord|35|37|N|139|50|E|display=title|dim:2000_region:JP_type:city_source:GNS-enwiki}} That should work.


4

Square brackets instead of braces. <noinclude>This is a template to mark articles that needs an update. All these articles are listed under [[:Category:Articles that needs update]]</noinclude> <includeonly>[[Category:Articles that needs update]]</includeonly>


3

A quick fix is to just 'move' the Main Page to a different page name. Help:Moving a page. Because this leaves behind a redirect, visitors will be taken to the new page title. Do this as the first step. However this is half solution because you'll always see the little "redirected from 'Main Page" text at the top, the URL still contains 'Main_Page', and the ...


3

Setup a HTML anchor manually using Template:Anchor. Say that you want to link to a section called "Overview" in an article. Add the template before the heading to make it look like: {{Anchor|AnyTextYouWant}} <!-- Note to other editors: Don't change this anchor text --> == Overview == (Of course, the comment line is optional.) Then make a link to ...


3

It is possible to search Wikipedia (or any other site that a search engine can access) using simple regular expressions, as long as you rely on an search engine. The following Google search query searches Wikipedia for matches of the regular expression (Yahoo|Google|Microsoft): https://www.google.com/#hl=en&sclient=psy-ab&q=site:en.wikipedia.org+(...


3

I'm afraid there's not any way to do this using the API or anything like that. However, you could probably do something with the Wikimedia dumps to find the sort of duplication you're looking for. The people already doing research might also be able to help you out.


3

As far as I know, there is no simple way to do this. But I can see some possibilities (starting with those that practically won't work): Use the API. The API doesn't have any direct way to do this, but you could try to work around that: Go though all pages and for each of them, find out the creator. Because of the limitations of the API when working with ...


3

It's available and powered by the CirrusSearch (based on ElasticSearch) which is the used search engine in the MediaWiki sites, and the Wikimedia platform. Some usage examples: Note: Full guide reference, and source - on Wikipedia: Help:Searching#Search_string_syntax. As for your question: Logical operators The search engine supports boolean logic ...


3

Inspired by previous answers, I've adapted the previous pastebin Python script to use git instead of mercurial as backend My project is hosted on GitLab


3

http://search.cpan.org/~daxim/Mediawiki-Blame-0.0.3/lib/Mediawiki/Blame.pm appears to support exactly this. Unfortunately, it's just a perl module, not a user-friendly command, so it's going to be a bit harder to use than one might want …


Only top voted, non community-wiki answers of a minimum length are eligible