Last modified: 2011-12-14 17:37:31 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 T33517, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31517 - Cannot use templates in <gallery> caption
Cannot use templates in <gallery> caption
Status: NEW
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.18.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://fr.wikipedia.org/w/index.php?o...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-08 09:30 UTC by vlakoff
Modified: 2011-12-14 17:37 UTC (History)
1 user (show)

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


Attachments

Description vlakoff 2011-10-08 09:30:18 UTC
If I do:

<gallery caption="foo {{some template}} bar">
Image_PlaceHolder.png|Caption of the picture
</gallery>

... the caption isn't expanded at all and displays as "foo {{some template}} bar"


If I do:

{{#tag:gallery|
Image_PlaceHolder.png{{!}}Caption of the picture
|caption=foo {{some template}} bar
}}

... The caption is expanded but HTML code is escaped so it displays as "foo <span><div><sup>[etc.] bar"


An example is provided here: http://fr.wikipedia.org/w/index.php?oldid=70852029


Expected result: The caption should be expanded, ideally in both cases; sadly I presume it would require to add a new syntax, because of the first case.



In order to prove the usefulness of the asked fix:
- there is no problem in putting HTML elements into a <caption> element[1][2], in case <gallery> would use this element in the future
- on the French Wikipedia we are working on making accessible abbreviation templates, using <abbr>[3], so that their result is readable by speech synthesizers.


[1] http://www.w3.org/TR/html4/struct/tables.html#h-11.2.2
[2] http://www.w3.org/TR/html5/tabular-data.html#the-caption-element
[3] http://www.w3.org/TR/html5/text-level-semantics.html#the-abbr-element

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


Navigation
Links