Open main menu

Changes

fixed link
{{Documentation subpage}}
{{High-risk|630,000+}}
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
{{Template shortcut |br list}}
{{stack|{{Lua|Module:Separated entries}}}}

This template is used primarily in infoboxes to create a <code>&lt;br /&gt;</code> delimited collection of items, only adding the <code>&lt;br /&gt;</code> tags where needed.

'''Note:''' For lists of items, without bullets, do not use this template, but use {{tl|plainlist}} instead, for better [[WP:ACCESS|accessibility]].

== Usage ==
:<code><nowiki>{{br separated entries|entry1|entry2|entry3|entry4|entry5|...}}</nowiki></code>

== Example ==
{| class="wikitable"
! Code !! Result
|-
| <code><nowiki>{{br separated entries|entry1|entry2|entry3}}</nowiki></code> || {{br separated entries|entry1|entry2|entry3}}
|-
| <code><nowiki>{{br separated entries| |entry2|entry3}}</nowiki></code> || {{br separated entries| |entry2|entry3}}
|-
| <code><nowiki>{{br separated entries|entry1| |entry3}}</nowiki></code> || {{br separated entries|entry1| |entry3}}
|-
| <code><nowiki>{{br separated entries|entry1|entry2| }}</nowiki></code> || {{br separated entries|entry1|entry2| }}
|-
| <code><nowiki>{{br separated entries|entry1| | }}</nowiki></code> || {{br separated entries|entry1| | }}
|-
| <code><nowiki>{{br separated entries| |entry2| }}</nowiki></code> || {{br separated entries| |entry2| }}
|-
| <code><nowiki>{{br separated entries| | |entry3}}</nowiki></code> || {{br separated entries| | |entry3}}
|-
| <code><nowiki>{{br separated entries| | | }}</nowiki></code> || {{br separated entries| | | }}
|-
| <code><nowiki>{{br separated entries|entry1|entry2|entry3|entry4|entry5|entry6}}</nowiki></code> || {{br separated entries|entry1|entry2|entry3|entry4|entry5|entry6}}
|}

===Template data===
{{TemplateDataHeader}}
<templatedata>{
"description": "Creates a <br /> delimited collection of items. Primarily for use in infoboxes, it only adds the <br /> 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 ==
* {{tl|comma separated entries}}
* {{tl|space separated entries}}
* {{tl|plainlist}}
* {{tl|flatlist}}
* {{tl|pagelist}}
* {{tl|multi-column numbered list}}
* {{tl|unbulleted list}}
* [[Module:separated entries]], the [[Wikipedia:Lua|Lua]] module on which this template is based.

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
[[Category:List formatting and function templates]]
}}</includeonly>
Anonymous user