https://bugzilla.wikimedia.org/show_bug.cgi?id=25644
Summary: Error: Template loop detected - limited recursions should be allowed. Product: MediaWiki Version: 1.17-svn Platform: All OS/Version: All Status: NEW Severity: normal Priority: Normal Component: Templates AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: bugzilla.wikime...@publi.purodha.net CC: bugzilla.wikime...@publi.purodha.net In a private Wiki. I made a simple template having 10 parameters. With Extension:Parserfunctions, it tests the wiki page given as its 1st parameter: - if omitted or empty, the template does nothing, else - if the pages exists, it yields a (blue) link to it, else - if emits a (red) link and calls itself recursively with parameters shifted one down. Called at the end of wiki pages, it allow one to see which other consecutive pages are planned but not created, and to continue reading at the next existing page. This appears sane, imho, especially, since 10 is not a large number. I declines work however, saying "template loop detected" Of course, you can always "flatten" a known (max) number of recusions, but the result is an awfully huge template, with many duplicated lines of code. Is there a chance to have a $wgTemplateLoopLimit installation setting which would make MediaWiki more flexible? I would naively recommend a default $wgTemplateLoopLimit = 2 so as to accomodate templates that document themselves with sample calls. If that can be had without restructuring or rewriting the parser, I might give it a try myself. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- 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