Last modified: 2010-05-15 15:38:11 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 T6260, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4260 - Template nested tag/inclusion problem
Template nested tag/inclusion problem
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.5.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-12 18:21 UTC by Christian Sieber
Modified: 2010-05-15 15:38 UTC (History)
0 users

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


Attachments

Description Christian Sieber 2005-12-12 18:21:47 UTC
Having a problem with including one template within another. Relevant code is as
follows:

{{Exercise
Navbox|course={{{course}}}|chapter={{{chapter}}}|section={{{section}}}|foo=bar}}

This is part of "Template:Exercise" on my MediaWiki install. A user calls
{{Exercise}} with the given parameters, which are then passed to {{Exercise
Navbox}} as shown (among other places, hence the doubling up. However, MediaWiki
reads the first two }} in '{{{course}}}' not as a parameter call but as a
closing of the original '{{Exercise Navbox' code. THis results in '{{{course'
being passed to the course variable in the {{Exercise Navbox}} call and the
rest, '}|chapter={{{chapter}}}|section={{{section}}}|foo=bar}}' gets displayed
as simple text.

Can this be fixed?
Comment 1 Christian Sieber 2005-12-12 18:25:25 UTC
Never mind, works when calling the template tag, just not in the display of the
actual template page.
Comment 2 Zigger 2005-12-13 05:31:18 UTC
(re-opened to resolve as INVALID, i.e. not a bug & behaved as designed)

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


Navigation
Links