[Mediawiki-l] Will extension tags be recognized in <tag/> form?

Jim Wilson wilson.jim.r at gmail.com
Wed May 30 19:29:27 UTC 2007


<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 at 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 at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>


More information about the MediaWiki-l mailing list