Last modified: 2008-12-30 02:27:06 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 T2496, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 496 - Override title text and formatting from page markup
Override title text and formatting from page markup
Status: RESOLVED DUPLICATE of bug 12998
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement with 8 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 7237 (view as bug list)
Depends on: 2118
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-15 13:17 UTC by Duncan Harris
Modified: 2008-12-30 02:27 UTC (History)
10 users (show)

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


Attachments

Description Duncan Harris 2004-09-15 13:17:09 UTC
Some pages, e.g. pH, eBay, have titles that are rendered wrongly by the software
because the first letter shouldn't be capitalised, or are at a different place
because of the limitations  of the url, e.g. C++. This could be solved by adding
to the page:

[[Title:eBay]]
[[Title:C++]]

This could be extended to including italicisation for books, films, bands, etc

e.g. 

[[Title:''The Beatles'']]

The only problem I can think of with this is the C++ page which needs to be
linked to with [[C Plus Plus|C++]] and that this would be less obvious if this
was implemented.
Comment 1 Duncan Harris 2004-09-15 18:10:49 UTC
The ability to format differently e.g. for ships

[[Title:HMS ''Invincible'' (R05)]]

would be good.
Comment 2 Rowan Collins [IMSoP] 2004-10-14 15:18:22 UTC
From a (somewhat off-topic) comment I made on bug 337:
"I wonder if a mechanism to display the page's title (in
the HTML output) as something different from its name (in the database) could be
created, which showed the real name (as needed for linking to the article)
underneath:
<h1>C#</h1>
<p><small>[Article title: C_sharp]</small></p>
Except I'm not sure how to label the second line so that it would make sense to
inexperienced users. My thought is that this could be a magic word at the
beginning of the article: '#TITLE C#'; similarly, one could use '#TITLE h2g2' to
display the lower-case leading letter on a wiki where this was otherwise not
possible."

And Alan Barrett's reply:
"Perhaps "To link to this article, use [[C sharp]]."  Put it as close to the H1
heading as possible, and use a stylesheet to hide it in print media.

See [[:en:Template:Wrongtitle]] and [[:en:Wikipedia:Naming conventions
(technical restrictions)]]
(and the corresponding talk pages) for relevant discussion."
Comment 3 Rowan Collins [IMSoP] 2005-05-09 21:34:13 UTC
I see somebody has created a patch - see bug 2118 - for an "__LCFIRST__" magic
word which covers the easy cases of titles with all lower-case on an otherwise
automatically upper-casing wiki. The simplifying point being that these titles
can be linked to in either way anyway, so it is a purely presentational matter.
Comment 4 Duncan Harris 2005-07-05 19:44:11 UTC
Well I've seen Wiktionary's gone over lower case, is it possible for the developers to manually move mis-
capitalised titles over?  This would deal with most of them.  See bug 2713 where I've explained this a bit 
more detail.
Comment 5 lɛʁi לערי ריינהארט 2005-12-13 03:25:28 UTC
Please take a look at bug 337 comment 22.

best regards reinhardt [[user:gangleri]]
Comment 6 lɛʁi לערי ריינהארט 2005-12-23 23:54:46 UTC
Please take a look at bug 2118 comment 15.

best regards reinhardt [[user:gangleri]]
Comment 7 Melancholie 2006-03-22 03:52:18 UTC
See Bug 2118 comment #24 for a JavaScript workaround for this issue.
Comment 8 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-09-05 04:43:02 UTC
*** Bug 7237 has been marked as a duplicate of this bug. ***
Comment 9 Rob Church 2007-07-15 13:26:29 UTC
The title itself can now be overridden using DISPLAYTITLE, where the desired title normalises to the same title as the page being rendered.

I'm not sure whether we want to be able to override title formatting, as well, although it's not going to affect linking...
Comment 10 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-07-15 19:02:13 UTC
Would probably be useful for, e.g., chemical formulas, equations, etc.  Don't see why not.
Comment 11 Rick Blasingim 2007-09-20 15:55:05 UTC
I'd like to have the option of using display titles that don't normalize. We had some nice features worked out with templates that would append things like "Stub", "Draft", "Final" to the display title. We also had a template for user pages to change the display title from something like "user:Doe, John" to simply "John Doe". The subtext "link to this article as..." was sufficient for identifying the real title. I can see why you might not want this on a public wiki, but I think it has use in private wikis.

How about a configuration setting $wgEnableScaryDisplayTitle to enable display titles that don't normalize?
Comment 12 rememberthedot 2008-05-26 05:56:50 UTC
This feature has been available for a while now via the DISPLAYTITLE magic word, see http://meta.wikimedia.org/wiki/Help:Magic_words#Miscellany

I'm closing this bug as FIXED.
Comment 13 Rick Blasingim 2008-05-27 15:22:17 UTC
It may be proper to close this "bug" since the software is behaving as intended, but I'm going to open it one more time because it isn't behaving as several of the comments would like. The desired functionality is to allow display titles that don't normalize. So yes, "iPod" and "eBay" are fine for "IPod" and "EBay", but "C++" isn't fine for "C plus plus". A few versions ago, the displytitle magic word did allow non-normalizing display titles. I think the desire is to get back to that (or at least have the option).
Comment 14 Derk-Jan Hartman 2008-05-28 20:04:46 UTC
There is a reason the javascript code to change the title is still used on en.wikipedia. sub/superscript (very common in astronomy and chemistry topics) and C++ etc. should really be handled some way in the core. As a matter of fact, brion even suggested it should be like that: http://en.wikipedia.org/w/index.php?title=MediaWiki_talk%3ACommon.js&diff=214858584&oldid=214794296
Comment 15 Brion Vibber 2008-12-30 02:27:06 UTC
Duping this to bug 12998 which has some active patch work in development.

*** This bug has been marked as a duplicate of bug 12998 ***

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


Navigation
Links