Because I just want to be able to insert a given text anywhere in the article, not inserting a ref or replacing an existing <ref> by a #tag...
The text is taken from a configuration file, so I have to keep the variables (CURRENTMONTHNAME, ...) in the configuration file.
On Sat, Sep 19, 2015 at 2:28 PM, billinghurst billinghurstwiki@gmail.com wrote:
Why not just make <ref> a tag ...
{{subst:#tag:ref|{{safesubst:CURRENTMONTHNAME}}}} OR {{#tag:ref|{{safesubst:CURRENTMONTHNAME}}}}
Regards, Billinghurst
- 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