Hi there
I'm having fun hacking my local metawiki installation. Currently I'm trying to implement a calendar (I think would be something new?) as a special page. What I miss, are detailed informations about the global variables like wgOut and wgRequest. $wgOut isn't that hard, because a var_dump will show detailed informations - but unfortunately that doesn't work with $wgRequest :(. Is there _any_ more detailed documentation about the metawiki internals than the informations on meta.wikipedia.org? I searched almost everywhere.. and the mailing-list archive seems not to have a search function!
Regards & great work, Joel Wiesmann
On Oct 19, 2004, at 2:02 PM, Joel Wiesmann wrote:
I'm having fun hacking my local metawiki installation. Currently I'm trying to implement a calendar (I think would be something new?) as a special page. What I miss, are detailed informations about the global variables like wgOut and wgRequest. $wgOut isn't that hard, because a var_dump will show detailed informations - but unfortunately that doesn't work with $wgRequest :(. Is there _any_ more detailed documentation about the metawiki internals than the informations on meta.wikipedia.org?
The first and foremost documentation is the source code. The code of the functions, the comments in and around them, and their usage elsewhere in the code should, ideally, be relatively clear. In practice it's not always as clear as we'd like. :)
In 1.4 we've been adding more comments to produce internal API documentation via phpdoc. A probably not current copy is at http://wikipedia.sourceforge.net/mwdoc/ (select the 'MediaWiki' package to see anything of any note). Note that 1.4 isn't quite the same as 1.3 if you're working with 1.3; some things have changed.
I searched almost everywhere.. and the mailing-list archive seems not to have a search function!
Google.com provides an excellent search capability: add site:mail.wikipedia.org to your query.
-- brion vibber (brion @ pobox.com)
Hi Brion
First of all, thanks for your answer. Now, let's go on ;)
Brion Vibber wrote:
The first and foremost documentation is the source code. The code of the functions, the comments in and around them, and their usage elsewhere in the code should, ideally, be relatively clear. In practice it's not always as clear as we'd like. :)
Of course - but maybe you notices.. mediawiki is pretty big ;)! Yet, I'm not used to work myself into big projects (or even be a part of it) but it's a challenge and I'll try to do my best.
In 1.4 we've been adding more comments to produce internal API documentation via phpdoc. A probably not current copy is at http://wikipedia.sourceforge.net/mwdoc/ (select the 'MediaWiki' package to see anything of any note). Note that 1.4 isn't quite the same as 1.3 if you're working with 1.3; some things have changed.
Great! At least it explains some stuff I wasn't aware of! Will be very helpfull! The google-search gives kinda lot of answers! I'll try to life with that ;).
Hopefully nobody already asked this.. is there a way to do a own namespace like "special" where I can put php-sides in it AND use the {{include}} functions on the other wikipages to include this side? This would allow me to do a calendar and lot of other cool features for dynamic pages.
Now when I try to include a special page I only get a wikilink. Of course I could do a hack to meet my wishes, but that's not really what I want to do.
I don't know if it would be a security-issue.. I mean you have to activate each special page in SpecialPages.php so it would maybe be a good way to make a support for plugins?
Regards, Joel
wikitech-l@lists.wikimedia.org