MediaWiki:SidebarTree: Difference between revisions

From Riverview Legal Group
Access restrictions were established for this page. If you see this message, you have no access to this page.
(Created page with "$wgHooks['BeforePageDisplay'][] = 'wfAddSidebarTree'; function wfAddSidebarTree( $out, $skin ) { $title = Title::newFromText( 'SidebarTree', NS_MEDIAWIKI ); $article = new A...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
$wgHooks['BeforePageDisplay'][] = 'wfAddSidebarTree';
{{Sidebar-Menu}}
function wfAddSidebarTree( $out, $skin ) {
$title = Title::newFromText( 'SidebarTree', NS_MEDIAWIKI );
$article = new Article( $title );
$html = $out->parse( $article->getPage()->getContent()->getNativeData() );
$out->addHTML( "<div id=\"wikitext-sidebar\">$html</div>" );
return true;
}

Latest revision as of 23:18, 29 March 2020