[Mediawiki-l] '/' trick in subpage links

John Moorhouse john.moorhouse at 3jays.me.uk
Wed Jan 24 17:21:37 UTC 2007


I was also wondering about the original decision to use the / to 
indicate a subpage, as you then get the problem that you cant have a 
subpage, 'team 2007/2008', would it be very complex to consider changing 
the wikitext from [[parentpage/subpage]] to [[parentpage//subpage]] to 
indicate a subpage as then [[teamx//2007/2008]] could be a valid parent 
/ subpage combination.

Ta

John


Ittay Dror wrote:
> if i use '[[../../a/b]]', the link's text is ../../a/b.
> if i use '[[../../a/b/]]', the text is a/b
>
> i think it is more logical, that in the second case, the text will be 'b'. that is, the last path componont, not just the part without dotdot. i think it is better, since adding '/' at the end strips some path components anyway.
>
>
>
> Brion Vibber wrote:
>   
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Ittay Dror wrote:
>>     
>>> putting '/' at the end works by just removing the ../ or / prefixes
>>> from the link text. so [[../../a/b/]] becomes a/b. isn't it more
>>> logical for it to become 'b'? the meaning of '/' at the end then
>>> behaves like 'basename' shell command.
>>>       
>> What?
>>
>> - -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.2.2 (Darwin)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>
>> iD8DBQFFtwUCwRnhpk1wk44RApJkAKCRueznIu6uCDGDgmZQn2Jc52BzfQCeNw2l
>> pU/xi6fbUnj4S7bqfdgLzSo=
>> =i+Mk
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-l at lists.wikimedia.org
>> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
>>     
>
>
>   




More information about the MediaWiki-l mailing list