[Mediawiki-l] Putting comments inside of links to test extensions?

Jim Hu jimhu at tamu.edu
Sat Aug 11 02:55:24 UTC 2007

Try a piped link

[[Jenny|Jenny <!--Jenny is an elf-->]]

On Aug 10, 2007, at 9:43 PM, Kelly Jones wrote:

> Can you put a comment inside a double bracket link that isn't visible
> to casual users, but is (of course) visible when editing the page?
> Example: Bob is married to  [[Jenny {Jenny is an elf}]]
> where the link would say "Jenny" and link to "Jenny"? Obviously, {}
> doesn't work, but is there any syntax that does?
> My goal: I'm testing a new MediaWiki extension, but need the pages to
> remain compatible w/ a regular MediaWiki. I'd like to do:
> Bob is married to [[Jenny {Jenny::category::elf}]]
> where a regular MediaWiki server shows this the same as [[Jenny]]
> (except when editing), but my test MediaWiki server parses into the
> comment and does something w/ it.
> That way, I could have the exact same data on both servers, but have
> it parsed on my experimental extension-testing server.
> -- 
> We're just a Bunch Of Regular Guys, a collective group that's trying
> to understand and assimilate technology. We feel that resistance to
> new ideas and technology is unwise and ultimately futile.
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128

More information about the MediaWiki-l mailing list