Developers:HowToTameMediaWiki
From WikiPathways
(Difference between revisions)
(New page: Because MediaWiki's documentation is very sparse and scattered it may be hard to handle sometimes. This page is intended for additional function documentation and short howto's on problems...) |
|||
Line 17: | Line 17: | ||
* $title: the Title object of the wiki page | * $title: the Title object of the wiki page | ||
* $text: the text that the link should display (text between the <a> tags) | * $text: the text that the link should display (text between the <a> tags) | ||
+ | |||
+ | == How to control the browse page == | ||
+ | Using DynamicPageList2 (DPL): | ||
+ | * http://en.wikinews.org/wiki/Wikinews:DynamicPageList |
Revision as of 21:24, 4 July 2007
Because MediaWiki's documentation is very sparse and scattered it may be hard to handle sometimes. This page is intended for additional function documentation and short howto's on problems that took you a while to find a solution for. Please put them here, so we don't run into them twice.
Contents |
Resources
Some useful global variables
- $wgSkin: the currently used skin
- Use:
- Get link objects
- Use:
- $wgUser: the current user
- Use:
- Get local time/date
- Use:
Creating a link to a wiki page
Use the function Skin::makeKnownLinkObj(Title $title, String $text):
- $title: the Title object of the wiki page
- $text: the text that the link should display (text between the <a> tags)
How to control the browse page
Using DynamicPageList2 (DPL):