Difference between revisions of "Template:Br separated entries/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jdaloner
(Modified <includeonly> section so that "sandbox" subpage won't appear in categories.)
imported>Sardanaphalus
(category)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
{{shortcut|Template:br list}}
+
{{Template shortcut|br list}}
{{lua|Module:Br separated entries}}
+
{{Lua|Module:Br 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.
 
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.
  
Line 61: Line 62:
 
* [[Module:Br separated entries]], the [[Wikipedia:Lua|Lua]] module on which this template is based.
 
* [[Module:Br separated entries]], the [[Wikipedia:Lua|Lua]] module on which this template is based.
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
| <!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
[[Category:Wikipedia formatting and function templates]]
+
[[Category:List formatting and function templates]]
 
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 10:00, 27 August 2014

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

Note: For lists of items, without bullets, do not use this template, but use {{plainlist}} instead, for better accessibility.

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; see the monthly parameter usage report for this template.

TemplateData for Br separated entries

Creates a <br /> delimited collection of items. Primarily for use in infoboxes, it only adds the <br /> tags where needed.

Template parameters

ParameterDescriptionTypeStatus
First item1

First item, may be null

Stringoptional
Second item2

Second item, many more items can be added

Stringoptional

See also