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)

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)

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)