The center for all Wikitravel images!

Tech:Header in first line not displayed correctly

From Wikitravel Shared
Jump to: navigation, search

What happens[edit]

This happens (above line). When a header is placed in the first line of an article, it is not displayed as a header.

This will also throw off all section edit links. E.g., clicking the edit link for ==When it happens== on this page directs you to edit section link=1, which is actually this section. --Peter Talk 13:20, 26 June 2012 (EDT)

When it happens[edit]

That I have checked so far, it happens on en:, pt:, es:, and shared:. It probably happens on the other language versions as well.

This will now happen for all images on Shared, as they all start with a header (==Summary==). --Peter Talk 13:19, 26 June 2012 (EDT)
The problem seems to be related to the TOC, and only started happening today. Adding __NOTOC__ to the article (and thus suppressing the TOC) fixes the problem. If a customization has been added to place the Wikitravel TOC, please ensure that it is adding code on its own line as Mediawiki requires headers to be on their own line. -- Ryan 14:17, 26 June 2012 (EDT)
Well, even putting a blank line above it fixes it, but this is still not acceptable. texugo 15:46, 26 June 2012 (EDT)
Sorry, my comment was meant for IB, not for editors - I assume IB has modified a template or some other code to add a __TOC__ tag, and wanted to clarify that they should ensure the TOC tag is added onto its own line. Obviously page editing should not require any special workarounds. -- Ryan 16:10, 26 June 2012 (EDT)

What should happen[edit]

It should display as a header, of course.

How to fix it[edit]

I don't know.

Additional comments[edit]

While this doesn't affect most article pages, most discussion/talk pages start directly with a header.

Sign below, please[edit]

  • texugo 10:40, 26 June 2012 (EDT)