Hi all,
recently I started working on a project of a small compiler that should add more comfort to working with the Mediawiki templates. The reason for starting it was that I found it rather very unjustifiably hard to write, edit, debug or oversee any larger template. On a suggestion of my wikipedian colleagues I write you this email announcing this project, and calling you to contribute in form of suggestions, wishes and bug reports if you find will and time for that.
About the project: http://sr.wikipedia.org/wiki/%D0%9A%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D0%B...
Download page: http://cpptea.com/wiki/mtc/
Thank you for the audience, Michael
I think it's a great idea!
I do have a couple of questions/suggestions: 1) how do you pass parameters to templates by name? For example, how would I do {{tname | para1 = val1 | para2 = val2}} ? 2) will there be support for the #switch: statement? or will it have to be done with nested ifif s? 3) will this be open source?
Kimon
mediawiki-l-bounces@lists.wikimedia.org wrote on 09-08-2007 10:24:17:
Hi all,
recently I started working on a project of a small compiler that should add more comfort to working with the Mediawiki templates. The reason for starting it was that I found it rather very unjustifiably hard to write, edit, debug or oversee any larger template. On a suggestion of my wikipedian colleagues I write you this email announcing this project, and calling you to contribute in form of suggestions, wishes and bug reports if you find will and time for that.
About the project: http://sr.wikipedia.org/wiki/%D0%9A%D0%BE%D1%80%D0%B8%D1%81%D0%BD% D0%B8%D0%BA:%D0%9C%D0%B8%D1%85%D0%B0%D1%98%D0%BB%D0%BE_%D0%90%D0%BD% D1%92%D0%B5%D0%BB%D0%BA%D0%BE%D0%B2%D0%B8%D1%9B/mtc_%28en%29
Download page: http://cpptea.com/wiki/mtc/
Thank you for the audience, Michael
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
At first thanks for the replies.
I like the idea of integrating MTC as an MediaWiki extension. The project is based on standard C++ and thus is corss-platform, which makes it technically adaptable to MediaWiki. As well, I won't mind to release it under GPL once it is finished, which should suffice the legal part.
However, there is still much to be done about the syntax. All I can say at this point is that I am looking forward to cover all current functionality of templates, and improve it where it is possible. If you have further ideas I will gladly consider them.
Thanks in advance
I like the syntax, you have made good choices. It appears this is an external program written in C++, how does it integrate with MediaWiki? It would probably be best to write it as an extension, rather than an external program. I suggest making it so that anything inside <template> tags is considered to be MTC code and is parsed by MTC before being handed over to the MediaWiki parser. (There are instructions for doing this on mediawiki.org)
mediawiki-l@lists.wikimedia.org