Last modified: 2009-07-15 19:23:46 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 T2591, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 591 - Allow use of templates and variables in <html> tags
Allow use of templates and variables in <html> tags
Status: RESOLVED DUPLICATE of bug 2257
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-28 03:54 UTC by Suisui
Modified: 2009-07-15 19:23 UTC (History)
2 users (show)

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


Attachments

Description Suisui 2004-09-28 03:54:25 UTC
I make a template on Wikimediafoundation.org for Quarto's navigation. This might
be needs each version (NL-1, NL-2 to be continue...) and each langage (now 5 or
6 but it will be 140!?) Now it is made each of each as
http://wikimediafoundation.org/wiki/Wikimedia:Newsletter_templetes/200409

And, see http://wikimediafoundation.org/wiki/Template:NL-0409-header
I make this one put up good for editors and servers,  ease to make index for new
language, cashed template effcts server responce, and less space on HDD.

and put this
http://wikimediafoundation.org/wiki/User:Suisui/Sandbox#Template#NL
for test.

It looks good but the source, {{{Lang}}} does not rendaring as variable. like

<a href="/wiki/Wikimedia_Quarto/0409/{{{Lang}}}-1">

Is it a bug or spec?
Comment 1 Brion Vibber 2004-09-28 06:53:30 UTC
This is according to current spec; <html> sections are raw HTML.
Comment 2 Brion Vibber 2004-10-10 09:31:13 UTC
Changed to enhancement. Not sure if this would be a good idea or not; from a
security perspective I really don't like it. as it opens more points where
malicious code could be inserted, particularly given the possibility that we
might one day allow raw html on only some pages on a semi-open wiki (bug 261).
Comment 3 Brion Vibber 2008-12-30 02:29:16 UTC
This is currently handled with nasty hacks like this:

...<a href="/wiki/Wikimedia_Quarto/0409/</html>{{{Lang}}}<html>-1">...

Under the circumstances, it probably makes sense to allow some sensible expansion. :P

Deciding how best to handle things like escaping might be worth considering though.
Comment 4 Chad H. 2009-07-15 19:23:46 UTC
Duping up because the other bug has _way_ more comments + patches, etc.

*** This bug has been marked as a duplicate of bug 2257 ***

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


Navigation
Links