0

I am test the infobox in locally installed. When I am adding infobox syntax it not showing properly, as I think its not getting parsed properly

wikimedia verion 1.22

     {{My template
       |foo = bar
      }}

and appearing like the below

Template:My template

wikicode

Wiki output

made_in_india
  • 2,109
  • 5
  • 40
  • 63

1 Answers1

0

[edit]: From the attached screenshot it now seems that the problem is in fact a missing template. The code {{My template}} will include the content of Template:My template. If no such page exists, the result will look like your screenshot. MediaWiki has no built in templates. You have to create them all yourself (or copy them from e.g. Wikipedia). Please read the documentation on how to use templates.


First: Are you sure that you actually have a template called Template:Infobox about? Sorry for asking the obvious, but just to make sure...

If you do have the template where it should be, and it is appearing like raw text, completely unparsed, the most likely cause (judging from similar previous questions) is that you have a space before it in the wiki code.

This will work:

{{My template
|foo = bar
}}

This will not:

  {{My template
  |foo = bar
  }}
leo
  • 8,106
  • 7
  • 48
  • 80
  • no space before the the wiki code , still infobox , appearing like raw. Is I have to make use of some extension. – made_in_india May 20 '14 at 05:56
  • Can you post the template as well? I.e. the content of `Template:Infobox about` – leo May 20 '14 at 07:09
  • i tried with the sample template posted in your answer. Same no success. I have attached the snap shot – made_in_india May 20 '14 at 09:23
  • The fact that the text is red indicates that the template doesn't exist! The code will only work **if you have a template** called ”My template”. – leo May 20 '14 at 09:33
  • can you elaborate a bit. – made_in_india May 20 '14 at 09:36
  • I updated the answer. `{{My template}}` will include the content of the page `Template:My template`. You need to put something in that page, to be able to include it. (Infoboxes are not something that is built into MediaWiki. You have to create templates for them yourself, possibly copying code from e.g. Wikipedia.) – leo May 20 '14 at 09:40