Thread:Project:Support desk/pinterest How to add 'pin it' button/reply

If its relative to an uploaded file, you're probably going to want a method of the file class ( See docs here: http://svn.wikimedia.org/doc/classFile.html . See also the function wfFindFile ) or possibly a method of the relavent media handler class depending on what type of information (the handler can be gotton once you have a file object).

Sending a "description" is complicated because its kind of confusing what a description is. MediaWiki has a notion of an upload file comment, but that's rarely what people mean when they say description.

If you're ok specifying everything by hand, you can also just make a template, no php coding required. (something along lines of )

p.s. $wgTitle is deprecated and we advise against using it in new code. What to replace it with however varries a lot depening on what you're doing. (If its a tag hook, you can get the title object from the parser object).