https://bugzilla.wikimedia.org/show_bug.cgi?id=27976

--- Comment #6 from [email protected] 2011-03-11 13:30:52 UTC ---
[Mid-air collision detected!]

(In reply to comment #2)
For the sake of comparison, with the old version, if we add the wikicode
 *base = "{{BASEPAGENAME}}"
 *sub = "{{SUBPAGENAME}}"
to the following pages in the described situations, we have:
(1)
>    "Foo" does not exist
>    "Foo/bar" exists ... what is its title?
 On "Foo":
  *contentSub is empty (since there is no bar, we are not in a subpage)
  *base = "Foo"
  *sub = "Foo"
 On "Foo/bar":
  *contentSub is empty (since the existence of a bar doesn't means we are in a
subpage)
  *base = "Foo" (wrong)
  *sub = "bar" (wrong)

(2)
>    "Foo" exists
>    "Foo/bar " exists
>    "Foo/bar /bash/" does not exist
>    "Foo/bar /bash/blah" exists. ... what is its title?
 On "Foo":
  *contentSub is empty (since there is no bar, we are not in a subpage)
  *base = "Foo"
  *sub = "Foo"
 On "Foo/bar": (note that "Foo/bar " can't exist with a space in the end of
title)
  *contentSub has "< Foo" (here the bar is a separator, so we are in a subpage)
  *base = "Foo"
  *sub = "bar"
 On "Foo/bar /bash/":
  *contentSub has "< Foo | bar" (we are in a subpage of "Foo/bar" whose name is
"bash/")
  *base = "Foo/bar /bash" (wrong)
  *sub = "" (wrong)
 On "Foo/bar /bash/blah":
  *contentSub has "< Foo | bar" (we are in another subpage of "Foo/bar" whose
name is "bash/blah")
  *base = "Foo/bar /bash" (wrong)
  *sub = "blah" (wrong)

(3)
>    "Foo" does not exist
>    "Foo/bar " does not exist
>    "Foo/bar /bash/" exists ... what is its title?
>    "Foo/bar /bash/blah" exists. ... what is its title?
 On "Foo":
  *contentSub is empty (since there is no bar, we are not in a subpage)
  *base = "Foo"
  *sub = "Foo"
 On "Foo/bar":(note that "Foo/bar " can't exist with a space in the end of
title)
  *contentSub is empty (since the existence of a bar doesn't means we are in a
subpage)
  *base = "Foo" (wrong)
  *sub = "bar" (wrong)
 On "Foo/bar /bash/":
  *contentSub is empty (none of the bars is used to separate "the title of an
existing page" of the rest of the title, so we are not in a subpage)
  *base = "Foo/bar /bash" (wrong)
  *sub = "" (wrong)
 On "Foo/bar /bash/blah":
  *contentSub is empty (same as before)
  *base = "Foo/bar /bash" (wrong)
  *sub = "blah" (wrong)
 On "Foo/bar /bash//blah"
  *contentSub is "< Foo/bar /bash/"
  *base = "Foo/bar /bash/"
  *sub = "blah"

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to