Template:Index list
Jump to navigation
Jump to search
This template uses TemplateStyles: |
This template uses block elements, e.g. This template applies the class(es) See H:DIVSPAN for details. |
Usage
[edit]A simple wrapper for a very common style of index listing:
- Each item on a new line
- No list markers (bullets)
- Each item with a hanging indent when it wraps
The benefit of this is that you can format the index using the * List syntax
, multiple levels are supported and you can target it with extra styling as needed.
Parameters:
- class additional classes (optional)
Example
{{index list/s}} * Density * Dent ** Dent, Adrian ** Dent, Arthur ** '''Level 2''': {{lorem ipsum}} *** '''Level 3''': {{lorem ipsum}} * Dexterity * Disestablishmentarianism {{index list/e}}
- Density
- Dent, Adrian
- Dent, Arthur
- Level 2: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- Level 3: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- Dexterity
- Disestablishmentarianism
CSS
[edit]The list is wrapped in a block with the class name .wst-index-list
, as well as any classes set with the class parameter. You can use this with page styles to target work-specific styling.