Why not just make <ref> a tag ... 

{{subst:#tag:ref|{{safesubst:CURRENTMONTHNAME}}}}  OR

Regards, Billinghurst

   1. How to expand only {{subst:}} and {{safesubst:}}
      (Nicolas Vervelle)

---------- Forwarded message ----------
From: Nicolas Vervelle <nvervelle@gmail.com>
To: List - MediawikiAPI <mediawiki-api@lists.wikimedia.org>
Date: Sat, 19 Sep 2015 13:09:51 +0200
Subject: [Mediawiki-api] How to expand only {{subst:}} and {{safesubst:}}

Is it possible through the API to give it some wikitext and get in return the same wikitext where {{subst:}} and {{safesubst:}} have been replaced, as they would be when saving an edit ?

In WPCleaner, I want to be able to insert things like current date, so I'm currently inserting things like {{safesubst:CURRENTMONTHNAME}} but as they don't work inside <ref> tags, I'd prefer to expand then myself rather than relying on the action=edit to do it.

Mediawiki-api mailing list