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

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(Fix name)
imported>Plastikspork
(Clarify usage and purpose)
Line 2: Line 2:
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
  
This template is used to create a <code>&lt;br&gt;</code> delimited collection of items, with up to three entries, 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, with up to three entries, only adding the <code>&lt;br&gt;</code> tags where needed.
  
 
== Usage ==
 
== Usage ==
Line 27: Line 27:
 
| <code><nowiki>{{br separated entries| | | }}}</nowiki></code> || {{br separated entries| | | }}
 
| <code><nowiki>{{br separated entries| | | }}}</nowiki></code> || {{br separated entries| | | }}
 
|}
 
|}
<noinclude>
+
 
== Sandbox ==
 
* [[Template:br separated entries/sandbox]]
 
* [[Template:br separated entries/testcases]]
 
</noinclude>
 
 
== See also ==
 
== See also ==
 
* {{tl|do list}}
 
* {{tl|do list}}
Line 40: Line 36:
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Wikipedia list formatting templates]]
+
[[Category: Wikipedia formatting and function templates]]
 
</includeonly>
 
</includeonly>

Revision as of 22:59, 26 May 2010

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

Usage

{{br separated entries|entry1|entry2|entry3}}

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| | | }}}

See also