Template:Br separated entries

From Linux Web Expert

Revision as of 13:10, 2 October 2021 by imported>Pppery (Update from enwiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template documentation

This template is used to create a <br /> delimited collection of items, only adding the <br /> tags where needed.


Usage

{{br separated entries|entry1|entry2|entry3|entry4|entry5|...}}

Example

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

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Br separated entries

<templatedata>{ "description": "Creates a
delimited collection of items. Primarily for use in infoboxes, it only adds the
tags where needed. ", "params": {

 "1": {
   "label": "First item",
   "description": "First item, may be null",
   "type": "string",
   "required": false
 },
 "2": {
   "label": "Second item",
   "description": "Second item, many more items can be added",
   "type": "string",
   "required": false
 }

}}</templatedata>

See also