Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to create and use the Infobox person template in my own MediaWiki instance. Just copying the base template doesn't work, actually. There must be some underlying thing going on that I am not aware of.

So, how would I go about copying the Wikipedia person Infobox to my own wiki?

ETA: as to the "doesn't work" part, the exact error message that shows up is:

Template loop detected: Template:Infobox person

This is the wiki markup that I saved in "Template:Infobox person"

{{Infobox person
| name        = <!-- include middle initial, if not specified in birth_name -->
| image       = <!-- just the filename, without the File: or Image: prefix or enclosing [[brackets]] -->
| alt         = 
| caption     = 
| birth_name  = 
| birth_date  = <!-- {{Birth date and age|YYYY|MM|DD}} or {{Birth-date and age|Month DD, YYYY}} -->
| birth_place = 
| death_date  = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} or {{Death-date and age|Month DD, YYYY|Month DD, YYYY}} (death date then birth date) -->
| death_place = 
| nationality = 
| other_names = 
| occupation  = 
| known_for   = 
share|improve this question
That's certainly not copied code of Template:Infobox person. That's a pattern for using the template. – svick Sep 10 '13 at 16:01
@svick: Yep, that's what I was afraid of. I have now used Special:Export/Import and of course what came in was considerably different. It is clear that I am attempting to leap beyond my present knowledge too quickly. I believe that I will have to study MediaWiki more systematically and come up to speed before I start tackling more complex matters like this. Thanks! Accepting your answer. – Cyberherbalist Sep 10 '13 at 16:12
up vote 1 down vote accepted

“Doesn't work” is not a very useful description of the problem. You should describe what exactly does it do. But what I think the problem is is:

  1. Template:Infobox person uses many other templates, including Template:Infobox. To make it work, you will need those templates too. The easiest way to get all of them is to use Special:Export on Wikipedia and then Special:Import on your wiki.
  2. Template:Infobox uses Module:Infobox, which is written in Lua. To use that, you will need Extension:Scribunto installed on your wiki. If you can't or don't want to use that, you will need to find an older version of the template that doesn't use Lua.
share|improve this answer
That's a good point about "doesn't work", @svick. I've added what I get and what I've done. I am investigating what you've written here! – Cyberherbalist Sep 10 '13 at 15:50
Could you recommend some reference or tutorial resources for working with MediaWiki? I've looked at and there are some books out there, but which is best for a beginner, in your opinion? Or other online sources outside of SuperUser and Wikipedia/MediaWiki itself? – Cyberherbalist Sep 10 '13 at 16:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.