On 15 Apr 2005, at 08:39, Uwe Baumbach wrote:
Is there any way to make redirected pages show up in a Category, preferably the same one(s) as the page it redirects to?
Try to write the category link(s) IN THE SAME LINE after the redirect statement only after a blank, like this:
#REDIRECT [[Redirectee]] [[category:MyCategory1]] [[category:MyCategory2]]
I don't know of which version your MediaWiki is, in our oldest (!) 1.3.0Beta1 it works.
Thank you, Uwe! That works in 1.4b5 just fine!
I'm copying this to the entire list, since no one else thought it could be done without moving to 1.5 development.
:::: At the root of our problem is America's addiction to cheap energy. It would be a sad commentary if our leaders found it easier to send Americans to fight in the desert than to impose gasoline and other energy taxes -- James Gustave Speth, 1990 :::: Jan Steinman http://www.IslandSeeds.org
On 15 Apr 2005, at 09:19, Jan Steinman wrote:
On 15 Apr 2005, at 08:39, Uwe Baumbach wrote:
Is there any way to make redirected pages show up in a Category, preferably the same one(s) as the page it redirects to?
Try to write the category link(s) IN THE SAME LINE after the redirect statement only after a blank, like this:
#REDIRECT [[Redirectee]] [[category:MyCategory1]] [[category:MyCategory2]]
I don't know of which version your MediaWiki is, in our oldest (!) 1.3.0Beta1 it works.
Thank you, Uwe! That works in 1.4b5 just fine!
Oops... take that back... I mis-read the page name, and thought it had appeared. Still no joy in mudville. Guess I'll wait for 1.5 to stabilize.
:::: In any universe described by the theory of relativity, time cannot exist. -- Kurt Gödel :::: Jan Steinman http://www.IslandSeeds.org
Just a bit of explanation on this...
Redirect pages are special and have special requirements. Because of the way the link tables are handled, redirects get screwed up in all kinds of fun ways if you put other text into them besides the actual redirect, in particular other *links*.
At some point as a protective measure, the wiki got set up to strip any extra junk from a redirect page when you save it to discourage this.
Category markers are at this time a special case of inline linking, so they get stripped too.
-- brion vibber (brion @ pobox.com)
Okay, one more #REDIRECT question...
How about redirecting TO a Category: page? I read on Meta that you can do it by prefacing with a colon, but that it will only show the editable text.
Does 1.5 (development) accomplish redirects to Category pages with all the included pages for the category?
That would be very handy. For example, I have an Agriculture category, but no Agriculture page. I want the word "agriculture" to link to Good Stuff, but don't want to go to the trouble of fleshing out an Agriculture page at this time. It would be very convenient to #REDIRECT it off to [[:Category:Agriculture]] for the present.
:::: "We need a revolution." :::: "Keep saying that, and we'll need a lawyer, assuming they let us have one." :::: Jan Steinman http://www.Bytesmiths.com
Redirecting to a category page would be very helpful for us.
On 4/16/05, Jan Steinman Jan@bytesmiths.com wrote:
Okay, one more #REDIRECT question...
How about redirecting TO a Category: page? I read on Meta that you can do it by prefacing with a colon, but that it will only show the editable text.
Does 1.5 (development) accomplish redirects to Category pages with all the included pages for the category?
That would be very handy. For example, I have an Agriculture category, but no Agriculture page. I want the word "agriculture" to link to Good Stuff, but don't want to go to the trouble of fleshing out an Agriculture page at this time. It would be very convenient to #REDIRECT it off to [[:Category:Agriculture]] for the present.
:::: "We need a revolution." :::: "Keep saying that, and we'll need a lawyer, assuming they let us have one." :::: Jan Steinman http://www.Bytesmiths.com
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hi all,
I am a very new MediaWiki user and I am looking for some advice on a minor hack to MW.
I want to set up MediaWiki to accept cookies from other sites as authorization tokens. My question is, in what module would I make this change, and what might break?
My goal is to have MediaWiki accept a third-party cookie to access the web site. The reason is that I have a BBS and a couple of other sites that I want to be allied with a common login, and I do not feel like adding an LDAP module.
I can manage the code required for the hack, if someone will just tell me which modules to start on.
Thanks... Carlton
The thing is the Auth plugin does not have a mechanism for custom session-ing, I think because the PHP functions are used.
You would have to change Setup.php to detect any cookie names changed, and User.php to use this. If you do it right and debug it, it should not break anything. (Keyword: should)
And I would not call this a minor hack.
On 4/17/05, Carlton B carltonb@mindspring.com wrote:
Hi all,
I am a very new MediaWiki user and I am looking for some advice on a minor hack to MW.
I want to set up MediaWiki to accept cookies from other sites as authorization tokens. My question is, in what module would I make this change, and what might break?
My goal is to have MediaWiki accept a third-party cookie to access the web site. The reason is that I have a BBS and a couple of other sites that I want to be allied with a common login, and I do not feel like adding an LDAP module.
I can manage the code required for the hack, if someone will just tell me which modules to start on.
Thanks... Carlton
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On second thought, you could create a new file for a new class for the user code, make it extend the class User, and then redifine the one function needed. eg:
class MyUser extends User { ... }
Then change Setup.php as described.
This way, you have one file to maintain instead of two. (I would like to see define's or variables containing the class names to allow these low-level hacks without changing the code.
On 4/17/05, Jamie Bliss astronouth7303@gmail.com wrote:
The thing is the Auth plugin does not have a mechanism for custom session-ing, I think because the PHP functions are used.
You would have to change Setup.php to detect any cookie names changed, and User.php to use this. If you do it right and debug it, it should not break anything. (Keyword: should)
And I would not call this a minor hack.
On 4/17/05, Carlton B carltonb@mindspring.com wrote:
Hi all,
I am a very new MediaWiki user and I am looking for some advice on a minor hack to MW.
I want to set up MediaWiki to accept cookies from other sites as authorization tokens. My question is, in what module would I make this change, and what might break?
My goal is to have MediaWiki accept a third-party cookie to access the web site. The reason is that I have a BBS and a couple of other sites that I want to be allied with a common login, and I do not feel like adding an LDAP module.
I can manage the code required for the hack, if someone will just tell me which modules to start on.
Thanks... Carlton
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
--
http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now had 2GB.
I haven't looked at the redirect code, so I can't say for sure how it works, or if this is already done.
Is there a standard function that returns a class/associative array of a link's attributes, taking the link text as an argument? I would like to see such a function being used for both parsing and redirecting. The redirect code would only use the URL/translated title of it, but the parser would use all of the attributes.
On 4/16/05, Jan Steinman Jan@bytesmiths.com wrote:
Okay, one more #REDIRECT question...
How about redirecting TO a Category: page? I read on Meta that you can do it by prefacing with a colon, but that it will only show the editable text.
Does 1.5 (development) accomplish redirects to Category pages with all the included pages for the category?
That would be very handy. For example, I have an Agriculture category, but no Agriculture page. I want the word "agriculture" to link to Good Stuff, but don't want to go to the trouble of fleshing out an Agriculture page at this time. It would be very convenient to #REDIRECT it off to [[:Category:Agriculture]] for the present.
:::: "We need a revolution." :::: "Keep saying that, and we'll need a lawyer, assuming they let us have one." :::: Jan Steinman http://www.Bytesmiths.com
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 4/17/05, Jamie Bliss astronouth7303@gmail.com wrote:
Is there a standard function that returns a class/associative array of a link's attributes, taking the link text as an argument?
Yes, that sounds like a fair description of the Title class (in includes/Title.php)
To explain the problem in hand, as I understand it: A redirect page is displayed by grabbing the content of the target page, and displaying that instead of the content of the page being viewed. The problem comes because when you view a category page, special code is brought into play to display the category's members (the listings are not, of course, part of the text of the page). The redirect code never calls this special code, because it just grabs the page's contents; thus, the introductory text appears, but nothing else.
mediawiki-l@lists.wikimedia.org