I think that would be rather extension not a template. Usually extensions
use <extension></extension> tags to perform given activity. Hooks specifies
details:
$wgParser->setHook( "absHTML", "renderHTML" );
In this case <absHTML></absHTML>
http://meta.wikimedia.org/wiki/MediaWiki_extensions_FAQ#How_do_I_write_my_o…
If you want to have a template that contains a parameter then just create a:
wiki/template:MyTemplate
and create content like this on your page:
{{{1}}}
Then if you want a wikipage to make use of it just write
{{MyTemplate|1="Some text"}}
More details here:
http://meta.wikimedia.org/wiki/Help:Template#Parameters
Regards,
Aretai
On 2/5/07, Ittay Dror <ittayd(a)qlusters.com> wrote:
Hi,
How can I write a template that contains:
<my-tag>
{{{1}}}
</my-tag>
so {{{1}}} is replaced?
thanks,
ittay
--
===================================
Ittay Dror,
Chief architect,
R&D, Qlusters Inc.
ittayd(a)qlusters.com
+972-3-6081994 Fax: +972-3-6081841
www.openqrm.org - Data Center Provisioning
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l