Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Adding new links to every page?

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


brendentowey at gmail

Sep 24, 2009, 3:24 PM

Post #1 of 3 (630 views)
Permalink
Adding new links to every page?

Hey folks, new user here. I have a new install of MediaWiki that seems
to be fine. However, I'd like to "wrap" some elements from the rest of
my site around the MediaWiki. For example, add some links to the main
page (not MediaWiki main page, but the site) and add a few other
important site wide links that don't go to a MediaWiki page. I can do
some of this with just CSS, but actually adding links seems like it's
going to require some MW config.

I looked at the docs, and I thought I could use the OutputPageBeforeHTML
hook, but now I'm not so sure.

(Link for reference:
http://www.mediawiki.org/wiki/Manual:Hooks/OutputPageBeforeHTML )

I'd like to add a couple of links to the start or end of the "topbar",
but I don't see a method in the OutputPage.php object to do so. I'd also
like to add some links to the "quickbar". Am I missing something?
Also, I want to create all new blocks of links (new div, new list of
links, etc.) just inside the <body> tag, either at the beginning or the
end of the <body> block.

Is there a better way of doing this besides the OutputPageBeforeHTML
hook? Hopefully someone has done this before.


Thanks for any help you can provide.




_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


danb at VistaPrint

Sep 24, 2009, 9:03 PM

Post #2 of 3 (591 views)
Permalink
Re: Adding new links to every page? [In reply to]

Adding links to the side menus EXCEPT for Toolbox is easy: just edit the system message Mediawiki:Sidebar.

http://www.mediawiki.org/wiki/Manual:Interface/Sidebar

Adding to the Toolbox: use the hook MonoBookTemplateToolboxEnd:

function toolbox(&$monobook) {
echo ("<li> <a href=\"%s\">%s</a></li>",
$yourlink,
$yourtext);
return true;
}

DanB


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


brendentowey at gmail

Sep 25, 2009, 8:43 AM

Post #3 of 3 (580 views)
Permalink
Re: Adding new links to every page? [In reply to]

Daniel Barrett wrote:
> Adding links to the side menus EXCEPT for Toolbox is easy: just edit the system message Mediawiki:Sidebar.
>
> http://www.mediawiki.org/wiki/Manual:Interface/Sidebar
>

That's awesome, thanks for pointing that out. While I look at that, is
there any way to add links to the "top bar" as well as the Sidebar?



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.