Why not just make <ref> a tag ...
{{subst:#tag:ref|{{safesubst:CURRENTMONTHNAME}}}} OR {{#tag:ref|{{safesubst:CURRENTMONTHNAME}}}}
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 Cc: Date: Sat, 19 Sep 2015 13:09:51 +0200 Subject: [Mediawiki-api] How to expand only {{subst:}} and {{safesubst:}} Hi,
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 https://en.wikipedia.org/wiki/Wikipedia: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.
Nico _______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api