4

Recently, I have installed MediaWiki version 1.22 onto my local machine. I have added few templates pages, when I'm trying to use them, it displays

Template loop detected:

template loop detected

I also deleted some of old pages using admin login, but still it showing the same problem.

MaxSem
  • 3,457
  • 21
  • 34
made_in_india
  • 2,109
  • 5
  • 40
  • 63

1 Answers1

2

Template loops happen when two templates are transcluding each other, for example

Template:Foo contains {{bar}}

while Template:Bar contains {{foo}}

This can happen also through intermediate templates, e.g. foo transcludes bar which transcludes baz which transcludes foo.

Since I haven't seen your templates I can't tell what exactly is wrong, but the general advice is to look at your templates' source.

MaxSem
  • 3,457
  • 21
  • 34
  • I am using a ```{{Infobox university | name = University of XYZ | native_name = Universiti XYZ }}``` in one of the wiki page and create the template page ```Template:Infobox university``` with wikicode ```{{Infobox university | name = | native_name = }}``` after that I am seeing that error. Along with that I have deleted the ```Template:Infobox``` page – made_in_india May 23 '14 at 05:49
  • 1
    Well, you're transcluding that template from itself then:) You need to add actual template code to it, not an invocation. – MaxSem May 23 '14 at 06:18
  • Where I can get the template code for http://en.wikipedia.org/wiki/Template:Infobox_university#Syntax – made_in_india May 23 '14 at 06:33
  • @made_in_india That's the syntax to *use* the template, not to declare it. For that, you'll have to look at [its source](https://en.wikipedia.org/w/index.php?title=Template:Infobox_university&action=edit). – svick May 24 '14 at 00:49