Page MenuHomePhabricator

Formatting issue on tables popular on Geological/Archeological articles
Open, LowestPublic

Description

This looks slightly less bad in mobile-html, but it is still not great - for PI to look at.


From OTRS - https://ticket.wikimedia.org/otrs/index.pl?Action=AgentTicketZoom;TicketID=11325757

Example Articles:
Proterozoic
Cambrian

Steps:

  1. Navigate to article
  2. Scroll to sections with template

Expected:
Text is readable

Actual:
Some overlap and placement issues

Screenshots

Screenshot_20200306-085135.png (2×1 px, 184 KB)

Screenshot_20200309-145352_Wikipedia.jpg (3×1 px, 400 KB)

Screenshot_20200309-125323_Wikipedia Alpha.jpg (3×1 px, 424 KB)

Screenshot_20200309-125212_Wikipedia Alpha.jpg (3×1 px, 655 KB)

Event Timeline

This issue can be observed when viewing these pages on certain devices in a range of 388px and around 460px. E.g. a Pixel 2 with a width of 411 px does it for the following mobile examples. It doesn't matter whether one views it on mobile web, mobile-html, or mobile-sections.

The Graphical timeline template used in these is not coded to be responsive. It has inline styles on the container element to float to the right, letting the text wrap around it.

HTML:

<div id="Container" class="toccolours searchaux" style="text-align: left; padding:0.5em 0 0 0; border-style:solid; float:right;clear:right; padding:0 0.5em; margin:0.3em 0 0.8em 1.4em; overflow: hidden;">

Wikitext as of revision 897172576:

<includeonly><div id=Container{{{instance-id|}}} class="toccolours searchaux" style="text-align: left; padding:0.5em 0 0 0; border-style:{{#if:{{{embedded|}}}|none|solid}}; {{#if:{{{embedded|}}}||float:{{{align|right}}};clear:{{{align|right}}}}}; padding:0 0.5em; margin:{{#if:{{{embedded|}}}|auto|{{{margin|0.3em}}} {{#ifeq:{{{align|right}}}|right|0|{{{margin|1.4em}}}}} {{{margin|0.8em}}} {{#ifeq:{{{align|right}}}|right|{{{margin|1.4em}}}|0}}}}; overflow: hidden;">

My recommendation would be for template editors to move the inline styles in this template to use TemplateStyles.

MSantos subscribed.

Moving Template Issues related tasks to the tracking column, please ping us if you think there is anything else that we should act on.

SLopes-WMF lowered the priority of this task from Low to Lowest.Jul 8 2022, 9:41 AM
SLopes-WMF moved this task from Needs Triage to Icebox on the Page Content Service board.