Templates and tables {{infobox ship begin}}
Closed, ResolvedPublic

Description

This is going to give you a headache

{{Infobox ship begin}}
http://en.wikipedia.org/wiki/Template:Infobox_ship_begin
is used in 26840 pages. I provides styling for tables used to make infoboxes relating to ships. It is used like

{|{{Infobox ship begin}}
{{Infobox ship image

Ship image=[[File:Whydah-model.jpg|300px]]
Ship caption=The ''Whydah Gally'' (1716–1717)

}}
{{Infobox Ship Career
...
}}

-
Commanded by:
Cap't. [[Lawrence Prince]]

...

}

The template transcludes {{WPMILHIST Infobox style}} which provides CSS styling
class="infobox {{#if:{{{2|}}}|{{{2}}}}}" style="float: right; clear: right; width: 315px; border-spacing: 2px; text-align: left; font-size: 90%;"
So the table start tag and its styling are separate.

Unsurprisingly VE fails to edit pages with this template correctly. The following was reported at
http://en.wikipedia.org/w/index.php?title=Wikipedia:VisualEditor/Feedback&oldid=572065469

Open the article in the visual editor, e.g. by visiting https://en.wikipedia.org/wiki/Whydah_Gally?veaction=edit
Observe the article now leads with the out-of-place text
<nowiki>class="infobox " style="float: right; clear: right; width: 315px; border-spacing: 2px; text-align: left; font-size: 90%;"</nowiki>
try to click "save page" but note that it is not active
make a trivial change so that "save page" is active. Click it
Click "review your changes", not that it says that
<nowiki>{{Italic title}}{|{{Infobox ship begin}}</nowiki>
was replaced with
<nowiki>{{Italic title}}{{Infobox ship begin}}
{|{{Infobox ship begin}}</nowiki>


Version: unspecified
Severity: normal

bzimport added a project: Parsoid.Via ConduitNov 22 2014, 2:01 AM
bzimport set Reference to bz53927.
SalixAlba created this task.Via LegacySep 8 2013, 8:56 PM
ssastry added a comment.Via ConduitSep 11 2013, 12:57 AM

Thanks for filing the report. We should have a fix for the edit corruption bug soon (it will be fixed as part of a patch that Arlo is working on). More later on the other parts of the bug, once we discuss how to handle this.

ssastry added a comment.Via ConduitDec 2 2013, 8:16 PM
  • This bug has been marked as a duplicate of bug 53139 ***

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.