On 11/14/2015 05:36 PM, Purodha Blissenbach wrote:
Hi, I want to implement something similar to ~~~~ expansion or the pipe-trick in internal links in an extension. That is, I need to execute code - on save and preview only, - on wikitext ony, - on page content only, - before the pre-save-parser treats links in the wikitext, - altering the wikitext of the page. I tried several hooks and ideas, but was unable to make it specific enough.
Did you try https://www.mediawiki.org/wiki/Manual:Hooks/ArticlePrepareTextForEdit ?
Matt Flaschen _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
