[Mediawiki-l] Will extension tags be recognized in <tag/> form?
Brion Vibber
brion at wikimedia.org
Wed May 30 19:12:44 UTC 2007
-----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-----
More information about the MediaWiki-l
mailing list