Last modified: 2014-08-10 08:50:02 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 T44239, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42239 - Translatable pages (pages using Translate extension syntax) create unusable section edit (editsection) links
Translatable pages (pages using Translate extension syntax) create unusable s...
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: section-editing
  Show dependency treegraph
 
Reported: 2012-11-18 11:58 UTC by Liangent
Modified: 2014-08-10 08:50 UTC (History)
7 users (show)

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


Attachments

Description Liangent 2012-11-18 11:58:43 UTC
See editsection link on https://incubator.wikimedia.org/wiki/Incubator:PREFIX#Prefix
Comment 1 Niklas Laxström 2012-11-18 12:13:01 UTC
Explained in the documentation:

https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration#Markup_examples
Comment 2 Liangent 2012-11-18 12:19:14 UTC
(In reply to comment #1)
> Explained in the documentation:
> 
> https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration#Markup_examples

Then it would be better not to display those editsection links. Is there something that can be done in this extension, or is it a core bug?
Comment 3 Niklas Laxström 2012-11-18 12:21:45 UTC
Core tries to find the edit section links before Translate gets to replace <translate>foo</translate> with a value and thus doesn't find it when it is split into multiple lines. One thing to try could be to try avoiding making <translate> markup multiline in headers.
Comment 4 Liangent 2012-11-18 12:27:03 UTC
(In reply to comment #3)
> Core tries to find the edit section links before Translate gets to replace
> <translate>foo</translate> with a value and thus doesn't find it when it is
> split into multiple lines. One thing to try could be to try avoiding making
> <translate> markup multiline in headers.

but this wikitext works with editsection?

== a <ref>1
2 </ref> b ==
<references/>
Comment 5 Nemo 2012-11-18 16:24:06 UTC
(In reply to comment #4)
> but this wikitext works with editsection?
> 
> == a <ref>1
> 2 </ref> b ==
> <references/>

Maybe, but why should it and how is it related to Translate?
Anyway, INVALID request, there's no reason to use translate tags that way on translatable pages; there's an enhancement request at bug 40713 for translation pages, though.
Comment 6 Niklas Laxström 2012-11-18 16:43:40 UTC
Don't get me wrong, I'd be happy if the edit section links always worked, but I'm not going to fundamentally change the way page translation works to make it so. If there is easy way to fix this in MW core or Translate, I'd be happy.
Comment 7 Liangent 2012-11-18 16:54:49 UTC
Well I'm reopening it and moving it to core. Anyway it's core which creates these editsection links that it can't handle itself.
Comment 8 MZMcBride 2013-09-22 04:16:45 UTC
This isn't an enhancement request. The current user experience here is bad. Either the links should work or they shouldn't be shown.
Comment 9 Rainer Rillke @commons.wikimedia 2014-07-28 19:38:07 UTC
(In reply to MZMcBride from comment #8)
In fact, it's still good to see the source but the links should be labled accordingly: "View section source"?
Comment 10 MZMcBride 2014-07-28 22:44:49 UTC
(In reply to Rainer Rillke @commons.wikimedia from comment #9)
> (In reply to MZMcBride from comment #8)
> In fact, it's still good to see the source but the links should be labled
> accordingly: "View section source"?

Perhaps re-labeling would make sense, though this would differ from standard MediaWiki core behavior, which simply hides non-functioning section-edit links.

In any case, these links currently do not function as "view section source" links. We currently have:

---
<h3><span class="mw-headline" id="What_is_a_prefix.3F">What is a prefix?</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Help:FAQ&amp;action=edit&amp;section=12" title="Edit section: What is a prefix?">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
---

Where https://incubator.wikimedia.org/w/index.php?title=Help:FAQ&action=edit&section=12 is a broken link. Eep! We definitely do not want the current behavior and it's pretty clearly broken behavior.

Possible options here (as I see it) are:

* hide the section-edit links; or

* re-target the section-edit links.

It might be possible to hackishly implement either of these options using JavaScript, but that would likely be a gross and temporary solution.

If anyone has additional thoughts about possible paths forward here, please share.
Comment 11 Liangent 2014-08-10 08:50:02 UTC
BTW editing such section on mobile shows a loading icon forever.

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


Navigation
Links