I am using MediaWiki 1.12 version. Let's say I renamed/moved an article with title "Project Blue" to it's new title "The Blue Project" using sysop admin account. Now if I go to the Special Page "Special:AllPages", I still see the name "Project Blue" along with "The Blue Project". How can I make mediawiki NOT to display the old title (Project Blue)?
I know Mediawiki internally keeps a mapping/redirection when articles are moved which is fine but I would like that when somebody clicks on "Special:AllPages", the old title does not appear just to keep it clean and less confusing.
Any ideas?
Found this via a google search. It looks simple and looks like it does what you want but I have not tested it. http://www.mwusers.com/forums/showthread.php?14438-How-can-I-modify-Special-...
-Jim
-----Original Message----- From: Tech Geek [mailto:techgeek12345@gmail.com] Sent: Sunday, November 28, 2010 11:18 PM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] Avoid duplicate listing of articles after renaming/moving?
I am using MediaWiki 1.12 version. Let's say I renamed/moved an article with title "Project Blue" to it's new title "The Blue Project" using sysop admin account. Now if I go to the Special Page "Special:AllPages", I still see the name "Project Blue" along with "The Blue Project". How can I make mediawiki NOT to display the old title (Project Blue)?
I know Mediawiki internally keeps a mapping/redirection when articles are moved which is fine but I would like that when somebody clicks on "Special:AllPages", the old title does not appear just to keep it clean and less confusing.
Any ideas? _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Don't modify MediaWiki's core code (e.g., SpecialAllpages.php) if you can help it. You'll make it harder to do software upgrades, as your changes will get overwritten when you update the MediaWiki software.
I would question the original poster's request. Why do you want to exclude redirects from Special:AllPages? Do you have an important business purpose for doing this, or is it just personal preference? Is there something in particular you're trying to accomplish? Other users on your wiki might like having the redirects on Special:AllPages.
DanB
-----Original Message----- http://www.mwusers.com/forums/showthread.php?14438-How-can-I-modify-Special-...
Why do you want to exclude redirects from Special:AllPages?
Partly because most of the user are getting confused if they see the old title also listed. They are not sure which one is now the official title without clicking on the article link and then finding out looking at redirects. Also for lot of them it is a personal preference.
Other users on your wiki might like having the redirects on
Special:AllPages. I have no issues that mediawiki maintains internal redirects. For example, if somebody types in the old article link http://myserver/wiki/index.php/Project_Blue it should still redirect to the new title. All I want is that it should not be displayed when somebody clicks on Special:AllPages. So basically do NOT display but still maintain the redirection -- a cosmetic change.
"TG" == Tech Geek techgeek12345@gmail.com writes:
Why do you want to exclude redirects from Special:AllPages?
Because Special:AllPages is the 'main navigation showroom' we use on many of our sites, and we don't want it cluttered with those near duplicate names. https://bugzilla.wikimedia.org/show_bug.cgi?id=7204 Or at least allow showing them in italics etc. like https://bugzilla.wikimedia.org/show_bug.cgi?id=2872
jidanni@jidanni.org wrote:
"TG" == Tech Geek techgeek12345@gmail.com writes:
Why do you want to exclude redirects from Special:AllPages?
Because Special:AllPages is the 'main navigation showroom' we use on many of our sites, and we don't want it cluttered with those near duplicate names. https://bugzilla.wikimedia.org/show_bug.cgi?id=7204 Or at least allow showing them in italics etc. like https://bugzilla.wikimedia.org/show_bug.cgi?id=2872
Of course you can! See http://es.wikipedia.org/w/index.php?title=Special:Allpages&from=!&to...
(The CSS rule is .allpagesredirect, .redirect-in-category {font-style: italic} )
"P" == Platonides Platonides@gmail.com writes:
P> Of course you can! P> See P> http://es.wikipedia.org/w/index.php?title=Special:Allpages&from=!&to...
P> (The CSS rule is .allpagesredirect, .redirect-in-category {font-style: P> italic} )
Why isn't this implemented with <em> so it works in text browsers too?
"P" == Platonides Platonides@gmail.com writes:
P> See P> http://es.wikipedia.org/w/index.php?title=Special:Allpages&from=!&to...
P> (The CSS rule is .allpagesredirect, .redirect-in-category {font-style: P> italic} )
Any why doesn't it work on http://radioscanningtw.jidanni.org/index.php?title=Special:Allpages freshly updated via SVN.
jidanni@jidanni.org wrote:
"P" == Platonides Platonides@gmail.com writes:
P> See P> http://es.wikipedia.org/w/index.php?title=Special:Allpages&from=!&to...
P> (The CSS rule is .allpagesredirect, .redirect-in-category {font-style: P> italic} )
Any why doesn't it work on http://radioscanningtw.jidanni.org/index.php?title=Special:Allpages freshly updated via SVN.
You didn't add that CSS to Mediawiki:Common.css
> "P" == Platonides Platonides@gmail.com writes:
P> See P> http://es.wikipedia.org/w/index.php?title=Special:Allpages&from=!&to...
P> (The CSS rule is .allpagesredirect, .redirect-in-category {font-style: P> italic} )
Any why doesn't it work on http://radioscanningtw.jidanni.org/index.php?title=Special:Allpages freshly updated via SVN.
P> You didn't add that CSS to Mediawiki:Common.css
You sir, did not add it to standard Mediawiki. I'm filing https://bugzilla.wikimedia.org/show_bug.cgi?id=26266 "Add .allpagesredirect, .redirect-in-category to standard CSS" today! Thanks.
Found this via a google search. It looks simple and looks like it does what you want but I have not tested it.
http://www.mwusers.com/forums/showthread.php?14438-How-can-I-modify-Special-...
Just tried that and it works! Thanks.
Tech Geek wrote :
I would like that when somebody clicks on "Special:AllPages", the old title does not appear just to keep it clean and less confusing.
Any ideas?
edit your css file (either your skin css or the corresponding wiki page : MediaWiki:Yourskin.css) and add :
.allpagesredirect { display:none; }
mediawiki-l@lists.wikimedia.org