Jump to content

Manual talk:Title.php

Add topic
From mediawiki.org
Latest comment: 13 years ago by HonoredMule in topic Question

Question

[edit]

Is there a function to convert $wgTitle to the Title.php format, e.g. by converting spaces to underscores? I mean, I guess one could use Title::getDBkey(), but then you're not getting the whole title. Tisane 14:18, 20 March 2010 (UTC)Reply

The values returned by ->getLocalURL() or ->getFullURL() are missing necessary namespace parts. Is there a suitable workaround? (using MediaWiki 1.16.3) --HonoredMule 18:27, 5 July 2011 (UTC)Reply

They say "Please do not post support questions here"

Logics problem

[edit]

If a title begins with a colon as its first character, no prefixes are scanned for, and the colon is removed before the title is processed. Because of this rule, it is possible to have articles with colons in their names. "E. Coli 0157:H7" is a valid title, as is "Commandos: Behind Enemy Lines", because "E. Coli 0157" and "Commandos" are not valid interwikis or namespaces.

I think, it's not because of this rule...