Topic on User talk:Wikinaut

Leucosticte (talkcontribs)

Hi Wikinaut, I notice that in Title.php, there are a bunch of methods that give you the page title either with or without underscores. What if you want it to give you the exact title that was linked from a page, without turning underscores into spaces and without turning spaces into underscores? E.g., if the page says "Hello world Hello_world" then it should not render either "Hello world Hello world" or "Hello_world Hello_world". It should give you the first one with a space and the second one with an underscore.

The example at Manual:Hooks/LinkBegin#Example uses getPrefixedDBKey(), but that's unacceptable because it turns the spaces into underscores. But getFullText() has the opposite problem — it turns the underscores into spaces. What's the solution? Thanks.

Leucosticte (talkcontribs)

Oh wait — somehow I got it to work. More details later, when I post my code. I played around with the $html parameter awhile; that seems to have fixed it. Oh wait, it's not totally fixed. Well, hopefully it will be soon.

Reply to "Page title"