Last modified: 2013-04-15 18:58:28 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 T25388, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23388 - Hatnotes: Make template header tags wrap without </p>
Hatnotes: Make template header tags wrap without </p>
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-03 05:48 UTC by stevertigo
Modified: 2013-04-15 18:58 UTC (History)
1 user (show)

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


Attachments

Description stevertigo 2010-05-03 05:48:21 UTC
Currently, in-body template tags bring a new <p> or <div>, which causes hatnotes ({{otheruses}} {{redirect}}, etc.) to appear on separate paragraphs. Too often enough we see clutter like:

>For other uses, see Emotion (disambiguation).

>"Emotional" redirects here. For other uses, see Emotional (disambiguation).

Where > represents a new paragraph or a newline . Ideally, these should show up simply as one paragraph: 

:For other uses, see Emotion (disambiguation). "Emotional" redirects here. For other uses, see Emotional (disambiguation).

But even showing just newlines like below would be better: 

:For other uses, see Emotion (disambiguation).
:"Emotional" redirects here. For other uses, see Emotional (disambiguation).

Keep in mind we are sometimes seeing three or four of these, taking up three or four paragraphs before one even gets to the article. Consolidating hatnotes into one paragraph will also keep hatspam down, as we will pay more attention to what gets included.

-S
Comment 1 Tomasz W. Kozlowski 2013-04-15 18:58:28 UTC
As far as I see, the situation reported only occurs because the template that's used in both {{otheruses}} and {{redirect}} — {{hatnote}} — includes a <div /> tag that forces the line break and the space to appear; see <http://www.w3.org/TR/html401/struct/global.html#h-7.5.4> for further information.

This can be avoided by changing the code of the template, for instance by replacing the <div /> tag with a <span />. This doesn't seem related to MediaWiki itself, so I am closing the report as RESOLVED INVALID; please feel free to reopen if you don't agree with the closure.

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


Navigation
Links