Jump to content

Template:Description list

From Meta, a Wikimedia project coordination wiki
Template documentation

Wrapper for description list to customize its display.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Classes1

Formatting CSS classes to use

Suggested values
inline colon align-end width-10 bullet-terms dd-bottom-1 nobold noindent numbered no-list-margin
Example
inline colon
Stringrequired

Classes

[edit]

In the following list,

  • DT stands for “description term” i.e. the text between ; and : in the wikitext.
  • DD stands for “description details”, i.e. the text after the colon in the wikitext.
inline
Floats DT to left for LTR language and right for RTL language.
nobold
Disables bold weight style for DT.
noindent
Disables indentation (left margin in LTR languages) for DD.
colon
Adds a language-dependant string after DT: ":" for English, " :" for French.
align-end
Aligns DT text to right for RTL languages and to left for LTR languages (you need to set DT width with a width-* class).
width-*
Minimum width for DT, * being in ex in following list: 5,7,10,15,20,25,30,35,40,45,50.
bullet-terms
Displays a bullet point before each DT.
dd-bottom-*
Margin below each DD; * being in em in following list: 1,2,3.
numbered
Prefixes DT with a decimal counter, as for ordered list (starting with #).
no-list-margin
Set to 0 the margin before bullet/numbered lists inside DD.