Topic on Project:Support desk

Is there a way to parse nested templates first?

1
NBarto (talkcontribs)

Suppose page A is transcluded at page B, and page B is transcluded at page C. Is there a way to parse A before B at page C, by transcluding A at page B in a special way?

That is, is there some sort of prioritary transclusion command?

When is this useful? When A contains <onlyinclude>'s or, more generally, <section />'s to be read by Labeled Section Transclusion (the page where LST is called being C, as in {{#lst:B|title}} ).

After making some changes to sourcecode of LST, this would solve the issue of LST not being able to find <sections />'s that are in a template.

Related: Extension:PageVariable, the discussion at phab:T39256

Reply to "Is there a way to parse nested templates first?"