I am trying to...
add sm text to the wikitext when the document is saved. Something like at the end of each header,p,a tags some text should be added. To identify within the wikitext where these different html elements start and stop is difficult.
So i thought a better idea is to give the wikitext to /includes/Parser.php which will parse the wikitext and generate html. In places where the file Parser.php is adding html I will comment it and add my custom text to it.
This definately means Parser has to be called before the text is saved. I can copy and create a new customParser file and then make changes to it. So lets say now there will be /includes/myparser.php
Does anyone have a better idea than this. I am also not sure how difficult will it be for me to identify where the appropriate html is added. I found some functions like dbBlockLevel will add p,list tags to wikitext.
help will be highly appreciated.
Thanks --Viral
On Mon, Jun 16, 2008 at 8:53 PM, Viral Gupta viralgupta0@gmail.com wrote:
I am trying to...
add sm text to the wikitext when the document is saved.
"SM text"? I'm not sure what you mean.
It may be true that wikitext could only have been invented by a sadist, and can only be edited by a masochist, but still...
Sorry. Magnus
wikitech-l@lists.wikimedia.org