Jump to content

Template:Default: Difference between revisions

From Joepedia
No edit summary
No edit summary
 
Line 26: Line 26:
}
}
},
},
"description": "Adds to the featuring category for the given thing, generally used as a part of other templates.",
"description": "Displays a given value, or a default if that value is empty.",
"format": "inline"
"format": "inline"
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 15:47, 3 March 2025

Examples

{{Default||Not Given}}

Not Given

{{Default|Given|Not Given}}

Given

Template Data

Displays a given value, or a default if that value is empty.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Value1

The potential empty value to display.

Contentrequired
Default2

The default value to use if the main value is empty.

Contentrequired