Page MenuHomePhabricator

[Migrated] Make user-defined rules able to handle nested templates
Closed, DuplicatePublic

Description

Current behavior: on a page with {{Reflist {{citation ...}} {{citation ...}} }}, rules are applied to the entire Reflist indiscriminately, and not on a citation-template to citation-template basis.
Desired behavior: Operate on the inner-most-nested template, out. Not infinitely deep, but at least 2 levels would solve a lot of problems, as triple-nested template are more rare. @Tom.Reding 15:14, 3 February 2015 (UTC)

Event Timeline

Reguyla raised the priority of this task from to Needs Triage.
Reguyla updated the task description. (Show Details)
Reguyla added a project: AutoWikiBrowser.
Reguyla moved this task to Feature request (unsorted) on the AutoWikiBrowser board.

@Tom.Reding 17:31, 23 March 2015 (UTC) wrote:

Workaround: at the beginning of your rules/script, replace {{Reflist|refs=\s (and variants) with {{Reflist|refs=REMOVE-CLOSING-BRACES}}\s and create a subsequent rule to remove "REMOVE-CLOSING-BRACES}}" at the end of your script/rules. This speeds things up ''dramatically'', but it would still be good to have a proper solution.

Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptJan 11 2016, 5:34 PM