Tag Info

New answers tagged

1

To delete all the spam pages, instead install extension DeleteBatch. Edit a script file from Special:AllPages of all the page names you want deleted. Load this into Special:DeleteBatch. Use PHPmyAdmin to mass delete the unwanted users.


1

The problem is that code inside “extension tags” like <syntaxhighlight> is not parsed, which is why the {{{code}}} is not replaced with the value of the code parameter. What you need to use is to use {{#tag}} parser function: {{#tag:syntaxhighlight|{{{code}}}|lang=java|style=background-color:lightgray; border:1px dashed gray;}}


0

Yes, you can do that with <includeonly> tags, like so: (custom styles removed for clarity) <includeonly><syntaxhighlight lang="Java"></includeonly> {{{code}}} <includeonly></syntaxhighlight></includeonly> From mediawiki.org: The markup <includeonly>...</includeonly> means that the text between the ...


0

If you know some Python (or are not afraid to learn) you should approach this with pywikibot. You can loop through wiki.allpages() and you can add some logic to decide whether to delete a page or not.


0

If you're able to write some lines in Python you should give the pywikibot framework a try. You should take a look at redirect.py. pywikibot is especially powerful if you start using it interactively, e.g. through ipython. With wiki.allpages(includeredirects=True)) you can get a list of all pages and you can do e.g. incl_redir = map(lambda p: ...


0

It's definitely possible, I'm doing this with [http://wiki.yt wiki.yt]. You need to know enough PHP to make sure that a different database is served to different (sub)domains. I started factoring out things from LocalSettings.php and I'm keeping an area with domains and settings. (If I find some time I'll factor out some of the code and open it up. I'll ...


1

So it turned out to need a rewrite line in the index.php I found it here http://meta.wikimedia.org/wiki/Thumbnails for anyone else who needs help with this sort of problem. EDIT adding these lines to index.php RewriteCond %{REQUEST_URI} ^/files/thumb/./../.+?([0-9]+)px-(.+)$ RewriteRule ([0-9]+)px-(.+)$ /wiki/thumb.php?w=$1&f=$2 [L] you'll need ...



Top 50 recent answers are included