Last modified: 2012-11-28 14:08:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42185, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40185 - There should be a simple method to use to generate titles for items
There should be a simple method to use to generate titles for items
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-12 12:51 UTC by jeblad
Modified: 2012-11-28 14:08 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description jeblad 2012-09-12 12:51:36 UTC
It seems like there is missing a simple method to generate well-formed titles for items and/or entities in general. Seems like this could be part of several classes.

Most important for now is to get rid of hard coded prefixes and namespaces, but it would be nice to have a method that generated the whole title (fullpagename) or string.
Comment 1 denny vrandecic 2012-09-13 10:11:23 UTC
Item::getTitle does that
Comment 2 denny vrandecic 2012-09-13 12:44:59 UTC
Sorry, not Item::getTitle, but EntityObject::getTitle

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links