The frame object should have property indicating subst status, say
frame.isSubsted = true/false
at least for the frame created by {{#invoke:}}, but preferably for parent frame as well.
Version: unspecified
Severity: enhancement
The frame object should have property indicating subst status, say
frame.isSubsted = true/false
at least for the frame created by {{#invoke:}}, but preferably for parent frame as well.
Version: unspecified
Severity: enhancement
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | Feature | None | T50176 Requested Scribunto/Lua built-in methods/functions (tracking) | ||
Resolved | Anomie | T49828 frame object should have property indicating subst status |
Looking at how substing actually works, you can't have different "isSubsting" statuses for the different frames:
So it makes more sense to me to just have a static "mw.isSubsting()" function instead of a method on the frame object.
Also, I note that a hack like enwiki's [[Template:Ifsubst]] works as well in Scribunto:
if frame:preprocess( '{{subst:NAMESPACE}}' ) ~= '{{subst:NAMESPACE}}' then
else
end
Change merged. It should be deployed to WMF wikis with 1.23wmf3, see https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the schedule.
Change 139597 had a related patch set uploaded by MarkAHershberger:
Add mw.isSubsting()