'On This Day', 'pi_version' => '1.0', 'pi_author' => 'Sadhana Ganapathiraju', 'pi_author_url' => 'http://www.nikhedonia.com/', 'pi_description' => 'Creates a link to Wikipedia article on the day the post was published', 'pi_usage' => Onthisday::usage() ); class Onthisday { var $return_data = ''; function Onthisday() { global $TMPL; $date = $TMPL->tagdata; $date = strtotime($date); if (false === $date || -1 === $date) { // Bad date return; } $month = date('F', $date); $day = date('j', $date); $link = 'Wikipedia on {1}'; $link = str_replace('{0}', $month . '_' . $day, $link); $link = str_replace('{1}', $month . ' ' . $day, $link); $this->return_data = $link; } function usage() { ob_start(); ?> To show a link to the Wikipedia article for a given English date, surround it by the tag: {exp:onthisday}{entry_date format="%M %d, %Y"}{/exp:onthisday} Credits: Based on the Wordpress plugin (This Date in History) by Mike Schepker.