https://bugzilla.wikimedia.org/show_bug.cgi?id=6747
Brad Jorsch <bjor...@wikimedia.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |easy CC| |suma...@wikimedia.org --- Comment #3 from Brad Jorsch <bjor...@wikimedia.org> --- If someone wants to do this, it should be easy enough. The Title object already has a "getRootText()" method that does exactly what you want, so you can just copy the code for {{BASEPAGENAME}} and change the call to "getBaseText()" to "getRootText()". Look for "basepagename" in includes/parser/CoreParserFunctions.php, includes/parser/Parser.php, includes/MagicWord.php, and languages/messages/MessagesEn.php. Then look for "BASEPAGENAME" in tests/parser/parserTests.txt and maintenance/fuzz-tester.php. Then add mention in RELEASE-NOTES-1.21 (or whatever version we're up to once someone gets around to this), stick it in Gerrit, and add me as a reviewer. (In reply to comment #2) > BASEPAGENAME is a misnomer Why shouldn't "Foo/Bar/Baz" be considered the base of "Foo/Bar/Baz/Quux"? > I see absolutely no reason to not include such a simple and basic magic word > inside of core. So do it then. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l