2009/7/28 Kathleen Borja <[email protected]>:
> Thanks for the response. Now, I have a clearer picture on what I'll be putting
> on those files especially on the SpecialThesaurus.php file to where the major
> elements are placed. And also, I now know that there is no need to hardcode 
> the
> html for I can use the Xml::Element()although I am not yet familiar with the 
> xml
> tags. I'll read tutorials on xml.
>
There's documentation at http://svn.wikimedia.org/doc/classXml.html

> Questions:
>        > On $wgOut->addHTML()
>          - You said that I can change $wgOut->addHTML() to show whatever I 
> want. So,
> what are the things that need to be considered so that I can use
> $wgOut->addHTML()? Is there syntax to be followed for making it?
>
Just use $wgOut->addHTML("any HTML here"); It's customary to build the
HTML with Xml:: functions.

>        > How can I test if my SpecialThesaurus.php is working? Is it like 
> typing the
> URL (http://localhost/wikibits/index.php/Special:Thesaurus) in the address 
> bar?
>
Yes.

>        > I wanted to create a new tab for the SpecialThesaurus page. Where 
> and how can
> I create it so that it will be included among the page menu tabs -
> page,dicussion,edit,history, delete, move, etc? What is the proper page to 
> where
> I can put it or shall I create also a new special page for it?
>
Look at http://www.mediawiki.org/wiki/Manual:Hooks/SkinTemplateTabs

>        > Also, I can hardly connect to database `wikidb`. Maybe there's 
> already a
> pre-defined function for it.I just can't find it.
>
Use $dbr = wfGetDb( DB_SLAVE ); for a read connection, $dbw = wfGetDb(
DB_MASTER ); for a read/write connection. wfGetDb() returns a
DatabaseBase object which has methods such as select() and insert();
see http://svn.wikimedia.org/doc/classDatabaseBase.html for
documentation.

>        > Is it okey if I let you check the necessary files if I finished 
> making them?
>
Sure.

Roan Kattouw (Catrope)

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to