Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

need sm help

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


viralgupta0 at gmail

Jun 16, 2008, 12:53 PM

Post #1 of 2 (204 views)
Permalink
need sm help

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
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


magnusmanske at googlemail

Jun 17, 2008, 2:52 PM

Post #2 of 2 (177 views)
Permalink
Re: need sm help [In reply to]

On Mon, Jun 16, 2008 at 8:53 PM, Viral Gupta <viralgupta0[at]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 mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.