Template:Databox/doc
This template is a meta template: a template used for building other templates. It's not meant to be used directly in content pages.
Databoxes simplify the wikitext and template landscape of Appropedia by taking over several important and complex functionalities:
- Display quick and useful information
- Enable discovery of related content
- Set semantic metadata on the background for other uses
- Handle automatic categorization
- Inform editors of key missing information
Databoxes are Appropedia's version of Wikipedia's infoboxes. In fact, before databoxes, Appropedia had infoboxes very similar to Wikipedia. However, databoxes evolved as a more modular solution to prevent the repetition of identical fields in various infoboxes.
This is a complex and advanced template used throughout Appropedia. It's therefore protected to prevent vandalism and accidental mistakes. Before modifying it, you should be familiar with templates in general, with the way this template is used on existing databoxes and with Appropedia's template conventions.
Parameters
[edit source]header- Header or title of the databox. For example, "Page data", "User data", etc.class- Additional CSS class of the databox. Recognized values are:float- Causes the infobox to float to the right and have a maximum width (see for example Template:Project data).collapse- Causes the infobox to be collapsed by default.hide- Causes the infobox to be hidden by default.
Databoxes are made up of several "rows" (see Template:Databox/row), each of which may have the following parameters:
label- Label, text or name of the row. For example, "Authors" or "Year".info- Additional information about the row, useful when the label is not clear enough. For example, if the label is an acronym, then this may contain the full text.class- Additional CSS class of the row. Recognized values are:suggested- Causes the field to be visible even when no data has been set for it.auto- Marks the field as "automatic", that is, set by the software and therefore not editable by users.trim- Causes excess text to be trimmed rather than wrapped.center- Centers the content of the row.
data- Content of the row, usually the data value linked or processed in various ways to produce a richer or more clear output.edit- Call to Template:Edit param to edit the relevant parameter.semantic- Silent semantic annotations using #set. By setting semantic properties here, when there's an error, the error message appears inside the field, which allows for much easier identification and fix of the error.
See also
[edit source]- Template:Menu - A visually similar meta template
- Template:Documentation for databoxes - Default documentation for databox templates
- Category:Databox templates - All databoxes