Last modified: 2009-06-06 09:51:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21098, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19098 - action=parse does not regognise {{subst:}}
action=parse does not regognise {{subst:}}
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-05 23:24 UTC by Conrad Irwin
Modified: 2009-06-06 09:51 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Conrad Irwin 2009-06-05 23:24:56 UTC
To my mind, {{fr}} and {{subst:fr}} should both give the same output when rendered, but they don't:

http://en.wiktionary.org/w/api.php?action=parse&text={{fr}}{{subst:fr}}

Gives

<p>French{{subst:fr}}</p>

instead of

<p>FrenchFrench</p>
Comment 1 Gurch 2009-06-06 09:06:15 UTC
Substitution is handled by pre-save transform. To include that in parsing, use "pst" parameter.

http://en.wiktionary.org/w/api.php?action=parse&text={{fr}}{{subst:fr}}&pst

<p>FrenchFrench</p>
Comment 2 Conrad Irwin 2009-06-06 09:51:08 UTC
Thanks, have added this to the documentation.

* <code>pst</code>: Do a pre-save-transform (makes <nowiki>{{subst:}}</nowiki> work properly)


Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links