Project:Support desk/Sections/Formatting

__NEWSECTIONLINK__ = Template/Table Syntax Support =

Problems with Infoboxes/Templates

 * MediaWiki: 1.12.0
 * PHP: 5.2.6
 * MySQL: 5.0.45-community-log
 * URL: http://ilpwiki.com

I am trying to enable infoboxes with my version of MediaWiki. The template I am trying to incorporate is.

The first thing I found I need to do from reading through the help section and searching help sites was to enable parser functions. I copied the 5 files into a created "Parser Functions" folder in my extensions directory as indicated in the help section.

I then copied the source code from the wikipedia template entry indicated above and created a page on my site using the same title and copied code. The page is located here:.

However, whenever I try and use the organization template code on another page all you see on the page is the code.

How can I get this infobox template to work?


 * Did you edit LocalSettings.php to include the parser function extension? Smaug [[Image:Tournesol.png|20px]] 03:10, 8 June 2008 (UTC)


 * Yes, i did. Sorry, I forgot to include that step.  Is there anything I need to edit in the main.css or common.css files maybe?

Can a template calculate the numbers of days in February?

 * MediaWiki: 1.12.0
 * PHP: 5.2.5 (apache2handler)
 * MySQL: 5.0.51.a
 * URL: not public

Hello everyone,

I try to make templates that return the number of days in a month. As I am only concerned with dates 1970 or later, this is no problem for January and March through December. However, I don't know how do to it for February. Can this be done with a template or do I need to program a magic word?

—80.144.75.167 16:13, 15 June 2008 (UTC)

WikiLatino and MediaWiki Templates?
My name is Iris Rodriguez and I am an associate at Mi Apogeo Inc. Mi Apogeo (www.miapogeo.com) is a Latino based media company targeting second and third generation Latino consumers in the U.S. A crucial component of our hybrid site is the first online self-created Latino history and culture resource, WikiLatino!

As I post entries on the WikiLatino I'm wondering if there's any way/software that can be used to create templates/make posting more user-friendly?? We use MediaWiki however we do not have all the buttons/features that exist on Wikpedia.org....and though it seems thats how it works on Wikipedia.org, I can't see people taking the time to figure out the codes to make things look the way you want them to on a page.

Hopefully someone can help, thank you!

Iris —64.52.255.3 16:07, 7 July 2008 (UTC)

Wiki Templates
Hello this is concerning my wiki and i am having numerous problems... first of all none of templates are working like the infobox and tables... how do i get these to work... or is there something i can download?

my Current Wiki... 

Thank you Andrew A. Lehti —209.240.240.138 21:40, 12 July 2008 (UTC)

Navbox Template - Final Product Not Collapsing

 * MediaWiki: 1.12.0
 * PHP: 5.2.5 (cgi)
 * MySQL: 4.1.22-standard
 * URL: ArtsieWiki.net

I have done everything I can think of to try and get the collapsable feature of the Navbox to work, but I can't figure it out. It would be really helpful to have! Can someone tell me what I'm doing wrong?

—99.144.158.114 23:35, 6 August 2008 (UTC)

I think you must edit MediaWiki:Common.js page. You can copy it from wikipedia site to your site. kgbkgbkgb 12:21, 27 September 2008 (UTC)

Using template parameters inside &lt;pre&gt;

 * MediaWiki: (Reported by your Wiki's Special:Version page)
 * PHP: 5.2.0
 * MySQL: 5.0.32

How can I use parameters inside preformatted text?

I need to have a very simple template like this:

and should be pass as raw text and not parsed by wiki parser.

It is any way to obtain this behavior. —78.150.48.199 16:27, 7 August 2008 (UTC)

Concerning fields not filled in
On my wiki at, I have a template on which you can write five different fields (genre, genre2, genre3, genre4 and genre5). However, in most cases only two or three are filled in. On the final page (example, the code is: As a result: If for example genre5 isn't filled in, it will say and [[Category:]], which is kind of annoying. How can I fix it so this doesn't show up if the field isn't filled in? Quispiam 13:13, 31 August 2008 (UTC)
 * ,, , ,  , , ,

(RESOLVED) Nested Templates -- is it possible?
MediaWiki: 1.11.0; PHP: 5.2.6 (cgi-fcgi); MySQL: 5.0.45-community-log; URL: http://paleravens.com/

OK, I really need this, or I'mma be in hot development water. Please help!

Let's say I have two templates ...

Let's say I have Template ' defined as to make a nice table like this: ' should yield:

Let's say I have another Template  defined as Dy-no-mite! which should yield: Dy-no-mite!

Now, the problem: I want to be able to use one inside another!

Lookit, I combine them ... I SHOULD get ...

But what I actually get from is ...

... OK, I can't make Templates on this site. Click here to see it in action. I can simulate it here, though. It looks like this:

It's obvious that the closing }} of the DynamiteYellowText template is causing the NiceTable template to close prematurely and ignore the DynamiteYellowText.

What's not obvious is, HOW DO I FIX IT?

Please note, it's not a matter of how to get yellow text in a blue box. I have multiple templates that I want to combine in this way. I *really* hope there is a solution for this.

Please Help Please Help Please Help Please Help Please tengkyu

-- Töff 22:25, 3 September 2008 (UTC)


 * I Made It Work! Hah! Research! Study! Work and toil, midnight oil!


 * You have to declare the outside template's variable name, e.g., add a 1= before the template that is the variable value.


 * Like this :


 * See it here -- Woohoo! -- Töff 00:04, 4 September 2008 (UTC)

(Resolved) Scripting in templates doesn't seem to execute

 * MediaWiki version: 1.13.1
 * PHP version: 	5.2.6 (apache2handler)
 * MySQL version: 5.0.67-community-nt
 * URL: Internal Intranet, Sorry
 * Extensions:
 * http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi

Hi, I wonder if someone can please point me in the right direction. I'm a software developer so you'd think I'd get the hand of this fairly rapidly but I'm obviously missing something crucial....

I'm trying to set up Templates on our internal Wiki in a similar manner to Wikipedia (the nice uniformly styled boxes)

I've set up a Template called Template:Documentation which contains:

I've set up a Template:Ambox which contains

and finally, I've included the Documentation template into my page with

(I've also created the appropriate styles in Mediawiki:Common.css)

The issue is that the scripting in the Template:Ambox doesn't seem to be executed. The actual output is

half inside, half outside the table.

I'm clearly missing something critical. Would someone please be kind enough to kick me and point me in the right direction

Many thanks in advance

—Basiclife 15:57, 10 September 2008 (UTC)


 * You need the ParserFunctions extension. —Emufarmers(T 02:52, 11 September 2008 (UTC)


 * Thank you SO much. It's still not quite right but at least I can now play around and get it going - I'm sure the remaining problems are due to mistakes in my Templates which I should be able to resolve on my own. Really appreciate it. Thank you. --Basiclife 12:21, 11 September 2008 (UTC)

Problems with Infobox Template

 * MediaWiki: 1.11.1
 * PHP: 5.2.5 (isapi)
 * MySQL: 5.0.45-community-nt
 * URL: http://wiki.white-wolf.com/Exalted

Bodhisattva 15:06, 14 September 2008 (UTC): I am having some formatting issues with my infobox template. My footer box is sometimes overflowing to the right screenshot, and I cannot seem to find the fix to this issue. Any assistance would be greatly appreciated.

Table sorting broken?
The numbers with spaces for thousand separator was being sorted numerically and now is sorted alphabetically. Did something change in the javascript? Allowing for "spaces" instead of "commas" for the thousand separator should be supported, right? --MarsRover 02:27, 22 September 2008 (UTC)

Tables doesn't work + missing edit toolbar options

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.4-2ubuntu5.3
 * MySQL version: 5.0.51a
 * URL: http://out.swiatecki.com/mediawiki-1.13.1/index.php/Skabelon:Infoboks

Hello MediaWiki support desk. I have a problem when I write my articles: I should have a nice table, with borders and all, but I don't realy see it... I only see the code wrote, but at da.wikipedia.org this would work perfect.

What is wrong?

Also I'm missing some funktions in the edit toolbar. How do I get those (like upper and lower case, tables and so on)

Rasmus Becks 24-09-2008 11:37 p.m +1 GMT


 * Hej Rasmus, it seems you have to add a definition for the class "wikitable" to your MediaWiki:Common.css first.
 * For the edit toolbar, see the FAQ. -- :bdk: 22:34, 24 September 2008 (UTC)

And where shall I place it? Does it have a destination in the mediawiki folder, or is it a template to be added? Rasmus Becks 01-10-2008 10:27 p.m (+1 GMT)

Infobox won't split

 * MediaWiki version: 1.13.1
 * PHP version: 5.2.4-2ubuntu5.3
 * MySQL version: 5.0.51a
 * URL: http://out.swiatecki.com/mediawiki-1.13.1/index.php/Skabelon:L%C3%A6rer

Hello Wiki support

I have a problem with my template. It doesn't split the infobox's info in two, like normal infobox's does. Do I have to chance the localsettings.php/css (can't remember what name it has) to allow html and copy a template which allready exist?

—93.160.125.134 20:27, 3 October 2008 (UTC)

Parameter expansion within XML-style tags

 * MediaWiki version: 1.14alpha (r41883)
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.67-community-nt
 * URL: company intranet

I just tried to embed a parameter within xml-style tags: \\server\path\|

After wandering around trying to figure out why this wasn't working, I came across the info that parameter expansion within xml-style tags doesn't work. Is there a known workaround for this, or do I just have to figure out another way to display the info? Thanks.—SarekOfVulcan 20:45, 9 October 2008 (UTC)
 * Never mind, I just found the fix.

{{#tag:file }}
 * \\server\path\{{filepath}}}|

Thanks anyway!--SarekOfVulcan 21:13, 9 October 2008 (UTC)

pulling selective info from a template

 * MediaWiki version: any
 * PHP version: any
 * MySQL version: any

What I'm looking for is a way (if possible) to loop through all members of a category, and pull out some data that's defined in a template in the pages of that category... for instance, For all pages with the category "National Football League teams", display the "name" and "colors" parameters from the template Template:NFL team.

With the end result of a list of NFL team names and team colors, but with the data still only stored in one place. Is anything like this remotely possible with any version of mediawiki?

—24.196.67.58 18:46, 29 October 2008 (UTC)

Including Wiki article inside the Sidebar

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.5 (apache2handler)
 * MySQL version: 4.1.20
 * URL: http://www.reunionblues.com/tourguide/index.php/

We want to be able to include a wiki article in the sidebar but I can't seem to find the answer to how we can do it. I created a custom namespace and want to include as { { :Item:Products } } but it will not translate to the wiki article. I tried installing DynamiSkin thinking we can use a normal wiki article as the sidebar, but it appears to have a similar problem with including a seperate wiki article. Any advice would be greatly appreciated!

—Cognizance 23:16, 3 November 2008 (UTC)