Hi,
we just migrated a wiki and perhaps many internal links such as
[[pagename#anchor]] are broken.
Special:WantedPages was of help, but doesn't show where just anchors are
broken.
Is there any script/extension/etc. available to get a list of broken
anchors?
Cheers,
adrelanos
Hi,
for a software project, we are having stable and testers versions.
Documentation for stable and testers should differ, testers have
slightly different and new documentation.
Is there a way to give users a menu where they can choose what kind of
version they are using? And depending on that version, show them one or
another page version.
Cheers,
adrelanos
Hi, I have a large number of text pages that I'd like to import as new pages into a new MediaWiki based site that I've set up. The pages are currently organized in various folders together with some corresponding media files, and I'd like to write a script to to import each folder as a new page in the wiki, with the folder's pages appearing as subpages of that page, and with the corresponding media files imported into the wiki, and with the text pages first modified in various ways to be appropriate as MediaWiki pages. I already have some experience creating a MediaWiki skin and some hook functions ($wgHooks['ParserFirstCallInit'] = ...) in PHP for this wiki.
I imagine that the way to go about this is by writing a PHP script that I run from PuTTY, though maybe it's less complicated to call a PHP page via HTTP, or something else entirely; I'm not sure. Also I'm not clear about whether I ought to be calling maintenance scripts as per https://www.mediawiki.org/wiki/Manual:Maintenance_scripts or whether I'm supposed to be calling the MediaWiki Api as per http://www.mediawiki.org/wiki/API:Main_page, or something else entirely. Can someone please point me in the right direction?
Thank you very much,
Eli
Hi all,
I'm trying to work out how to add another action tab to the
Special:WhatLinksHere page.
I am using the SkinTemplateNavigation::Universal hook, so my code gets
called for all special pages. I am then examining the global $wgTitle
to figure out what page is being viewed, with the idea being to only
add my tab if I discover Special:WhatLinksHere is the page being
viewed.
Unfortunately I can't quite figure out how to identify the page being
accessed. I am using $wgTitle->getNamespace() and aborting if it's not
NS_SPECIAL, which leaves just the root of the title to check.
I was going to compare $wgTitle->getRootTitle() against "WhatLinksHere"
but there seems to be a bug in Title::getRootTitle() for Special
pages, and it returns the same value as Title::getText(), namely
"WhatLinksHere/SomePage", instead of chopping off the "/SomePage". But
I think this is a moot point, because I just discovered that non-English
wikis seem to have localised names for the special pages, so checking
against "WhatLinksHere" won't work on non-English wikis.
Does anyone know how I might go about discovering whether I'm viewing
Special:WhatLinksHere from within a SkinTemplateNavigation hook? I'll
also need the name of the page being investigated ("SomePage" in the
above example) so I can use it in a URL.
Any suggestions would be gratefully appreciated!
Many thanks,
Adam.
Hi all,
I'm working on an extension that uses a "Preview" button, the same
as on edit pages. Unfortunately the shortcut key for the
button conflicts with the "Printable version" link in the navigation
bar, effectively preventing the keyboard shortcut from working at all.
The edit page does not have this problem as the "Printable version"
link does not appear, so hiding that on my extension's Special page
seems like the best solution. Unfortunately I can't see how to do this
- it looks like the link always shows on article or special pages.
Does anyone know if there's a way I can stop the "Printable version"
link from appearing in the navigation bar on pages my extension
provides?
Many thanks,
Adam.
Hello everyone,
Im using the "#if:" parser function to ask about my template arguments.
I need to make an "AND" condition when asking about them, something like
this:
{{#if: {{{p1|}}} and {{{p2|}}} and {{{p3|}}} | MY_TEXT }}
but is not working.
Im aware that "OR" conditions are posibles just placing one argument
besides the other, like this:
{{#if: {{{p1|}}} {{{p2|}}} {{{p3|}}} | MY_TEXT }}
Is there some funcionality to make "AND" conditions? Ive been googling it
and didnt fount anything.
Thanks a lot in advance,
Marcelo.