Title: adding more rules
Last modified: August 24, 2016

---

# adding more rules

 *  [neo.webkit](https://wordpress.org/support/users/neowebkit/)
 * (@neowebkit)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/adding-more-rules/)
 * Hi author,
 * I hope I can still get in touch with you.
 * I have been testing with your plugins and try to make it running on my site. 
   Most of them work really well, but I would like to update a few markups shown
   in the mediawiki. What I really want to do is to add the [[file:somefile.jpg|
   description]]. The rule is tested in some regex testing site and should be working.
   My problem is however, the call back. When the url and the second part of text
   is retrieved correctly, the output of the markup is
 * [description](https://wordpress.org/support/topic/adding-more-rules/a blog post link?output_format=md)
 * What I did is to copy the externallink call back to a private function called
   image and then change the html markup $ret. However, I guess the image call back
   did not function so it falls to the wiki link function.
 * I hope you, or anyone may give me a hint on how to add the rule and make it work.
   By the way, I learn a ton from reading the code.
 * Thanks,
    neo.webkit
 * [https://wordpress.org/plugins/wpmediawiki/](https://wordpress.org/plugins/wpmediawiki/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [neo.webkit](https://wordpress.org/support/users/neowebkit/)
 * (@neowebkit)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/adding-more-rules/#post-6008259)
 * Sorry, I found out the issue. It’s my regex. Thanks for the attention anyway.

Viewing 1 replies (of 1 total)

The topic ‘adding more rules’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpmediawiki.svg)
 * [WP-MediaWiki](https://wordpress.org/plugins/wpmediawiki/)
 * [Support Threads](https://wordpress.org/support/plugin/wpmediawiki/)
 * [Active Topics](https://wordpress.org/support/plugin/wpmediawiki/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpmediawiki/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpmediawiki/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [neo.webkit](https://wordpress.org/support/users/neowebkit/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/adding-more-rules/#post-6008259)
 * Status: not resolved