https://bugzilla.wikimedia.org/show_bug.cgi?id=47828

Brad Jorsch <bjor...@wikimedia.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|wikibugs-l@lists.wikimedia. |bjor...@wikimedia.org
                   |org                         |

--- Comment #1 from Brad Jorsch <bjor...@wikimedia.org> ---
Looking at how substing actually works, you can't have different "isSubsting"
statuses for the different frames:

* If the parent is being substed, then either the #invoke is being substed too
or it's not even processed at that phase of the parse. By the time it is
processed, the original parent is already gone and you've got a new one that
isn't being substed.
* If the parent is not being substed, then the #invoke cannot be substed either
because there's no place for it to be substed *into*.

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
        -- substing
    else
        -- Not substing
    end

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to