This is a documentation subpage for Template:Compact dl. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses TemplateStyles: |
Usage
edit{{Compact dl}} styles a description list so that terms and matching descriptions are shown on the same line. This saves vertical space and can improve readability when the descriptions are extremely brief, while maintaining the semantic HTML structure.
Currently, this template only supports a single parameter, |wrap=
. Its value must be the complete wikitext for the description list, which may be created using wikitext syntax, HTML tags, or the {{glossary}} family of templates. Do not wrap the description list in any other element before wrapping it in this template, as the <dl> element must be a direct child of this template's wrapper element.
Here is an example:
{{compact dl|wrap=
; Article title: [[Fibonacci sequence]]
; OEIS sequence number: {{OEIS link|A000045}}
; First 10 terms
: 0
: 1
: 1
: 2
: 3
: 5
: 8
: 13
: 21
: 34
}}
This becomes:
- Article title
- Fibonacci sequence
- OEIS sequence number
- A000045
- First 10 terms
- 0
- 1
- 1
- 2
- 3
- 5
- 8
- 13
- 21
- 34
TemplateData
editThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Compact dl in articles based on its TemplateData.
TemplateData for Compact dl
This template styles a description list so that terms and matching descriptions are shown on the same line.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Wrapped list | wrap | The complete wikitext for the description list – do not wrap in any other element
| Content | required |