Template:Br separated entries/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Br separated entries. It contains usage information, categories, and other content that is not part of the original template page. |
Uses Lua: |
This template is used primarily in infoboxes to create a <br />
delimited collection of items, only adding the <br />
tags where needed.
For lists of items without bullets, do not use this template but rather use {{Unbulleted list}} or {{Plainlist}} instead, for better accessibility. |
Usage[edit]
{{Br separated entries|entry1|entry2|entry3|entry4|entry5|…}}
Examples[edit]
The following table demonstrates this template's ability to dynamically assess the presence of visible content within the values of its parameters to produce a vertical list with no empty lines or extraneous padding.
Code | Result |
---|---|
{{Br separated entries|entry1|entry2|entry3}} |
entry1 entry2 entry3 |
{{Br separated entries| |entry2|entry3}} |
entry2 entry3 |
{{Br separated entries|entry1| |entry3}} |
entry1 entry3 |
{{Br separated entries|entry1|entry2| }} |
entry1 entry2 |
{{Br separated entries|entry1| | }} |
entry1 |
{{Br separated entries| |entry2| }} |
entry2 |
{{Br separated entries| | |entry3}} |
entry3 |
{{Br separated entries| | | }} |
|
{{Br separated entries | entry1 | entry2 | entry3 | entry4 | entry5 | entry6 }} |
entry1 entry2 entry3 entry4 entry5 entry6 |
TemplateData[edit]
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Br separated entries
Creates a <br /> delimited collection of items. Primarily for use in infoboxes, it only adds the <br /> tags where needed.
Parameter | Description | Type | Status | |
---|---|---|---|---|
First item | 1 | First item, may be null | String | optional |
Second item | 2 | Second item, many more items can be added | String | optional |
See also[edit]
{{Comma separated entries}}
{{Plainlist}}
{{Flatlist}}
{{Unbulleted list}}