User:Lunatech~metawiki/del.icio.us

Del.icio.us and MediawikiEdit


I did not see this tip on the Mediawiki FAQ or the help page, but I think this might prove helpful to some.

If you see most of the blogs, they have a bar at the bottom of each post which allows readers to bookmark it to del.icio.us, digg and other sites. This thing can be done in Mediawiki too (have a look at this page to see how the final page looks)

First, create a template by going to http://example.info/index.php/Template:Dtil and clicking on "edit" . In this case Dtil is the name of the template, you can call it anything you want. Most likely, you will need sysop powers to edit the template page. Add the following lines to this template

 
<p style="border: 1px solid rgb(159, 165, 234); margin: 0px; padding: 
5px 15px; color: rgb(103, 109, 184); text-align: center;">
[http://del.icio.us/post?url={{SERVER}}/index.php/{{PAGENAMEE}}&title={{PAGENAMEE}} 
Del.icio.us this!] | 
[http://digg.com/submit?phase=2&url={{SERVER}}/index.php/{{PAGENAMEE}} 
Digg this!]
</p>

The <p style="border: 1px solid rgb(159, 165, 234); margin: 0px; padding: 5px 15px; color: rgb(103, 109, 184); text-align: center;"> part gives a nice border to the whole template. You can fiddle with the colors to make it suit your own theme or completely remove it if you do not want html in your wiki markup

Save the template.

Go to any of your pages and edit it. In the end of the edit, add the line {{Dtil}} (or whatever you have named your template) and save it. Hopefully, you will have a footer in your page with links which will allow your readers to bookmark your pages on digg or del.icio.us