[Mediawiki-l] '/' trick in subpage links
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.
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.
>> - -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v126.96.36.199 (Darwin)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>> -----END PGP SIGNATURE-----
>> MediaWiki-l mailing list
>> MediaWiki-l at lists.wikimedia.org
More information about the MediaWiki-l