Sorry for repeating the post. I got a little confused initially.
I have used the YourExtensionName.php to render the information between
<ref>example</ref>. These tags just identify that the text is a reference and
show them in a particualr format in the article.
I want to add this 'example' value to a referencelinks table which is same as
the imagelinks table. For this i need to do this as mentioned by Jama
# This method will be called before an article is saved
$wgHooks['ArticleSaveComplete'][] = 'myFunction';
# This method will be called before an article is displayed or previewed.
$wgHooks['ParserAfterStrip'][] = 'myOtherFunction';
But where in my extension do i put this code? Will it come outside of the 2
functions in the extension file or should it be inside the renderExample
function?
Thanks
--
Amruta
Show replies by date