Last modified: 2004-09-18 21:18:56 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 T2283, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 283 - Broken images in templates
Broken images in templates
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: parser
: 302 (view as bug list)
Depends on: 60
  Show dependency treegraph
Reported: 2004-09-03 03:06 UTC by Timwi
Modified: 2004-09-18 21:18 UTC (History)
2 users (show)

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


Description Timwi 2004-09-03 03:06:55 UTC
Originally submitted by Borislav Manolov (bmanolov)  2004-05-29 12:10

When images are used in templates they don't show as
expected. Instead there are only links to the image
description page. In addition there shows a message
"Missing image" when the size argument is used, e.g.
100px. See an example template (test:Template:Images)
and its application (test:Template_talk:Images).

------------------------- Additional comments ------------------------
Date: 2004-05-30 03:30
Sender: nobody
Logged In: NO 

This works perfectly on 
[[de:Vorlage:Themengruppe_Friedensnobelpreistr%E4ger]]. -- 
Date: 2004-05-30 11:09
Sender: SF user jeluf

MERGE BUG #962968
||  Links defined in a template are displayed as edit links in
||  the article.
||  in [[de:Vorlage:Infobox Deutsche Landkreise]] and the
||  result in [[de:Landkreis Barnim]]
Date: 2004-06-18 10:43
Sender: SF user andyho

The problem only arises if the square brackets [[]] are in
the template, if the complete image tag is given as
parameter it works - unless one want to use a | to use the
extended image syntax, but that's another bug.
Date: 2004-08-07 04:47
Sender: SF user vibber

Merge from [ 976084 ] Param.tmpl: can't use images with names
on parameters:

It is not possible to use a template to include images, where 
part of the image name is determined by a parameter 
passed to the template.

Example on

=== [[User:Chmod007/ImageTestTemplate]] === cut 
=== cut ===

=== [[User:Chmod007/TestTemplate]] == cut ===
=== cut ===

The second page, should display two images. The :es look valid, but the files are actually not cached. 
They end up as broken images on the page.

The bug is not dependent on the template namespace. I 
happened to use my User: namespace for this experiment.

Date: 2004-08-07 17:34
Sender: SF user at_18

Seems a mix of two problems: the wrong upload subdirectory
is generated :

/upload/9/9a/Voyager.jpg   instead of 

so the MD5 hash generation is wrong. And there's a newline
just before the image name:

(note that the newline is after the opening quotes). I'm
testing on the italian wiki.
Comment 1 Andreas Hörstemeier 2004-09-03 07:48:47 UTC
*** Bug 302 has been marked as a duplicate of this bug. ***
Comment 2 Timwi 2004-09-03 16:59:30 UTC
I am reducing the priority and severity because apparently there exists a
Comment 3 JeLuF 2004-09-18 21:18:56 UTC
Fixed in REL1_3 and HEAD, see Bug 60

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