Jump to content

Topic on Extension talk:WikiShare

Code to create an email link

1
Deejayk (talkcontribs)

Here's the code I've come up with to add an email link:


$wgWikiShareServices['email']['service'] = 'Email';

$wgWikiShareServices['email']['url'] = 'mailto:?Subject=%title%&body=Check%20out%20what%20I%20found%20on%20%wiki%%21%0A%0A%title%:%0A%url%';

$wgWikiShareServices['email']['icon'] = 'https://upload.wikimedia.org/wikipedia/commons/b/b1/Email_Shiny_Icon.svg';


These lines need to be added to your LocalSettings.php file.

Reply to "Code to create an email link"