Difference between revisions of "Template:Br separated entries/doc"
Jump to navigation
Jump to search
imported>Jc86035 |
imported>Uzume (→top: Template:Unbulleted list is closer with similar argument list) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 3: | Line 3: | ||
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE --> | ||
{{Template shortcut |br list}} | {{Template shortcut |br list}} | ||
| − | {{stack|{{Lua|Module: | + | {{stack|{{Lua|Module:Separated entries}}}} |
This template is used primarily in infoboxes to create a <code><br /></code> delimited collection of items, only adding the <code><br /></code> tags where needed. | This template is used primarily in infoboxes to create a <code><br /></code> delimited collection of items, only adding the <code><br /></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]]. | + | '''Note:''' For lists of items, without bullets, do not use this template, but use {{tl|unbulleted list}} or {{tl|plainlist}} instead, for better [[WP:ACCESS|accessibility]]. |
== Usage == | == Usage == | ||
| Line 62: | Line 62: | ||
* {{tl|multi-column numbered list}} | * {{tl|multi-column numbered list}} | ||
* {{tl|unbulleted list}} | * {{tl|unbulleted list}} | ||
| − | * [[Module: | + | * [[Module:separated entries]], the [[Wikipedia:Lua|Lua]] module on which this template is based. |
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other| |
| <!-- CATEGORIES BELOW THIS LINE, PLEASE: --> | | <!-- CATEGORIES BELOW THIS LINE, PLEASE: --> | ||
[[Category:List formatting and function templates]] | [[Category:List formatting and function templates]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 05:39, 22 June 2020
| 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. |
| This template is used on 1,630,000+ pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. Transclusion count updated automatically (see documentation). |
| This template uses Lua: |
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 {{unbulleted list}} or {{plainlist}} instead, for better accessibility.
Contents
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.
| 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
- {{comma separated entries}}
- {{space separated entries}}
- {{plainlist}}
- {{flatlist}}
- {{pagelist}}
- {{multi-column numbered list}}
- {{unbulleted list}}
- Module:separated entries, the Lua module on which this template is based.