Jump to content

Template:Default: Difference between revisions

From Joepedia
Semantic MediaWikiThis message will disappear after all relevant tasks have been resolved.

There are 1 incomplete or pending task to finish installation of Semantic MediaWiki. An administrator or user with sufficient rights can complete it. This should be done before adding new data to avoid inconsistencies.

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