Page MenuHomePhabricator

Broken images in templates
Closed, ResolvedPublic

Description

Author: timwi

Description:
BUG MIGRATED FROM SOURCEFORGE
http://sourceforge.net/tracker/index.php?func=detail&aid=962674&group_id=34373&atid=411192
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]]. --

[[de:Benutzer:Triebtäter]]

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.
See: parametres BUNDESLAND and VERWALTUNGSSITZ
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
based
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 en.wikipedia.org:

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

[[Image:Windflower_{{{1}}}.jpg]]

cut

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

{{User:Chmod007/ImageTestTemplate|small}}
{{User:Chmod007/ImageTestTemplate|large}}

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.

http://en.wikipedia.org/wiki/User:Chmod007/TestTemplate

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
/upload/d/d2/Voyager.jpg

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.


Version: unspecified
Severity: minor

Details

Reference
bz283

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 6:48 PM
bzimport set Reference to bz283.
bzimport added a subscriber: Unknown Object (MLST).

ahoerstemeier wrote:

*** Bug 302 has been marked as a duplicate of this bug. ***

timwi wrote:

I am reducing the priority and severity because apparently there exists a
workaround.

jeluf wrote:

Fixed in REL1_3 and HEAD, see Bug 60