Last modified: 2005-09-20 15:12:16 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 T4412, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2412 - Thumbnails nested at more than two levels don't work.
Thumbnails nested at more than two levels don't work.
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://commons.wikimedia.org/wiki/Use...
: need-parsertest, parser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-14 17:35 UTC by Ævar Arnfjörð Bjarmason
Modified: 2005-09-20 15:12 UTC (History)
1 user (show)

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


Attachments

Description Ævar Arnfjörð Bjarmason 2005-06-14 17:35:23 UTC
Putting a thumbnail within an image caption like: 

[[Image:Mk Berlin Tram 6.jpg|thumb|500px|asdf[[Image:Mk Berlin Tram
6.jpg|thumb|250px|asdf]]]] 

works perfectly, but any deeper nesting than that will break, for example:

[[Image:Mk Berlin Tram 6.jpg|thumb|500px|asdf[[Image:Mk Berlin Tram
6.jpg|thumb|250px|asdf[[Image:Mk Berlin Tram 6.jpg|thumb|125px|asdf]]]]]]

Does not work as expected.

See the URL for a testcase.
Comment 1 Michael Keppler 2005-06-16 21:19:02 UTC
Just a wild guess, but I think it works for 2 levels because the parser scans
for image links where the description contains a link (which should be the only
place where links in links are allowed). And by chance this second link may also
be an image inclusion instead of a wiki link.
I don't see any necessity for nested links/images with more links. Do you have
any real use case in mind or did you "just notice" it? I strongly vote for INVALID.
Comment 2 Ævar Arnfjörð Bjarmason 2005-06-16 21:27:35 UTC
(In reply to comment #1)
> I don't see any necessity for nested links/images with more links. Do you have
> any real use case in mind or did you "just notice" it? I strongly vote for
INVALID.

No I don't have any real use case in mind, however the parser should accept
nested statements.

Comment 3 Antoine "hashar" Musso (WMF) 2005-06-27 02:32:05 UTC
Putting a link in the second thumb image description render
the whole expression unparsed:

[[Image:Info.jpg|200px|thumb|Bla foo is :
[[Image:Info.jpg|100px|thumb|oh[[Accueil]] ]] ]]

Note [[Accueil]] link at the end.

Are users really supposed to put a thumb as a thumb description anyway ? :)
Comment 4 Duncan Harris 2005-09-20 15:12:16 UTC
I don't really see why this is needed anyway.  I'm with Mike on this one.  It looks terribly ugly and 
probably would create more trouble that it fixes.  A second image now won't go into the caption of the first 
image at all.

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


Navigation
Links