Try subst:ing in your test template and see if you have any syntax errors. ----- Original Message ----- From: "Liz Kim" lizkim270@gmail.com To: "Wikimedia developers" wikitech-l@wikimedia.org Sent: Friday, October 27, 2006 2:40 PM Subject: [Wikitech-l] templates: javascript+html?
Can templates include non-wiki codes? I am trying to add a link calling a javascript function. It works fine when added to the article itself, but template does not seem to work. Thanks!
-- details: wiki:
<html><a href="javascript:function('ID')">LINK</a> <div id="ID">TEXT</div></html>
template try:
<html><nowiki><a href=javascript:showhide('{{{ID}}}')">{{{LINK}}}</a> <div id="{{{ID}}}">{{{TEXT}}}</div></nowiki></html>
wiki using template: {{TEMPLATE_NAME|ID=someid |LINK=somelink |TEXT=sometext}} _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l