Template:Param

{ { }}

Usage
This template uses an ugly hack which lets you display parameters with curly brackets (e.g. ) inside of portable infoboxes.

The problem
Normally, if you don't give a parameter a value, its "raw" form will be used instead. For example, consider a simple template which makes any text you give it red:

In the second example, no input was given to our imaginary template, so the parameter's "raw" form appeared. This "raw" form can be a useful indication of missing but required data in a template, though an error message may be more appropriate in some situations.

Portable infoboxes work differently, since they were designed to automatically hide rows with no value. Let's examine the smallest possible infobox, which has nothing but a title:

As you can see, if no value is supplied, nothing is rendered. Fortunately, the  tag lets you supply a value for occasions like these:

This is the default value.

Unfortunately, displaying a parameter's "raw" form in a portable infobox is really annoying. In order to automatically hide valueless rows, Wikia removes any text wrapped in triple curly brackets (e.g. ). Worse, the usual solutions (  tags, HTML character references, and auxiliary templates) all fail:

The solution
The solution is to wrap one of the inner four curly brackets in a, like so:

Since it's a little annoying to write code like  every time, this template automates the process.