^_^ Complete Title backend rewrite!? A Image backend rewrite is being
worked on, why not start one for the Title class as a separate project.
We could compile a list of useful features in the Title system people
want that we currently don't have.
And come up with the most optimum way to deal with titles.
However, I'm not a fan of storing both a normalized underscore version
of the title, and a un-normalized space version of the title. I'm
thinking display title for display, and normalized title for all the
handling and other things. I think having the {{DISPLAYTITLE:}} function
store the display title inside of the page table would be best. And if
we made the normalized version depend on the display title then it
wouldn't be possible for someone to remove the requirement that the
displaytitle needs to normalize to the actual title. Some wiki would
like to have that not there, and have a subtitle added when they don't
match.
So DISPLAYTITLE and PAGETITLE stored in the database I would think. Or
we could actually to a tripple, we could decide what would be best after
considering all the possible features people might want to be able to
add into the title system, and consider various hooks to add which would
allow people to create Title modifying extensions without hacking core.
~Daniel Friesen(Dantman) of:
-The Gaiapedia (
On Thu, Feb 28, 2008 at 7:43 PM, DanTMan
<dan_the_man(a)telus.net> wrote:
From my understanding Title::secureAndSplit();
is the only place where
anything to do with case-sensitivity of Titles is located.
Explicitly, yeah, but any associative array using title strings as
keys will automatically be case-sensitive, just because array lookups
(and string comparisons generally) are case-sensitive. I have no idea
how many of those there are scattered about.
I really want some robust and generic normalization mechanism.
Instead of distinguishing between display titles and DB keys (which is
pointless: as though we can't store spaces in the database?),
distinguish between display titles and normalized titles. Normalized
titles would be stored separately in the database and used for lookup
and uniqueness checking, as well as in URLs, and are formed by
applying a canonical function to the display title. Then titles can
have underscores in them, for instance, in the default configuration
(just they'd be normalized to underscores), and someone who wanted to
muck around a bit could use all sorts of weird conventions if they
liked just by changing the normalization function and rebuilding the
page table.
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l