I'll know soon enough, I guess :-), but thought I'd ask in case anyone had further info; if I write an extension tag (say, 'mytag') that takes no text, can I use it as <mytag/>, or do I need to say <mytag></mytag>?
Thanks, Ken
They work for me in 1.10.
Kasimir
On 5/30/07, Ken McDonald ken@pixologic.com wrote:
I'll know soon enough, I guess :-), but thought I'd ask in case anyone had further info; if I write an extension tag (say, 'mytag') that takes no text, can I use it as <mytag/>, or do I need to say <mytag></mytag>?
Thanks, Ken
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Ken McDonald wrote:
I'll know soon enough, I guess :-), but thought I'd ask in case anyone had further info; if I write an extension tag (say, 'mytag') that takes no text, can I use it as <mytag/>, or do I need to say <mytag></mytag>?
Yes, you may use <mytag/>. Note that this form will pass a null value to your hook function, while <mytag></mytag> will pass an empty string, so you can distinguish between the two if you wish.
- -- brion vibber (brion @ wikimedia.org)
<mytag /> has worked since 1.6 (1.5 and before only allowed <mytag></mytag>) (or at least, I believe this is the case)
-- Jim
On 5/30/07, Brion Vibber brion@wikimedia.org wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Ken McDonald wrote:
I'll know soon enough, I guess :-), but thought I'd ask in case anyone had further info; if I write an extension tag (say, 'mytag') that takes no text, can I use it as <mytag/>, or do I need to say <mytag></mytag>?
Yes, you may use <mytag/>. Note that this form will pass a null value to your hook function, while <mytag></mytag> will pass an empty string, so you can distinguish between the two if you wish.
- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGXcyswRnhpk1wk44RArloAKCHsbMrSSkorWEophZYeMmkXUqPpQCfcnck ovL/OyXIHfYOJqbi4EVSZRw= =eqtz -----END PGP SIGNATURE-----
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org