Jump to content

Template:Br separated entries: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
Created page with "{{{1|}}}{{{{{|safesubst:}}}#if:{{{1|}}}|{{{{{|safesubst:}}}#if:{{{2|}}}{{{3|}}}|<br />}}}}{{{2|}}}{{{{{|safesubst:}}}#if:{{{2|}}}|{{{{{|safesubst:}}}#if:{{{3|}}}|<br />}}}}{{{3|}..."
 
m Changed protection level of Template:Br separated entries: Enable access by template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))
Line 1: Line 1:
{{{1|}}}{{{{{|safesubst:}}}#if:{{{1|}}}|{{{{{|safesubst:}}}#if:{{{2|}}}{{{3|}}}|<br />}}}}{{{2|}}}{{{{{|safesubst:}}}#if:{{{2|}}}|{{{{{|safesubst:}}}#if:{{{3|}}}|<br />}}}}{{{3|}}}<noinclude>
{{<includeonly>safesubst:</includeonly>#invoke:br separated entries|main}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 03:44, 2 November 2013

Documentation icon Template documentation[view] [edit] [history] [purge]

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.

For lists of items, without bullets, use {{Unbulleted list}}.

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

Nesting

For more than three entries, this template can be nested, although excessive nesting is discouraged due to template transclusion depth limits imposed by the server.

Code Result
{{br separated entries|entry1|entry2|{{br separated entries|entry3|entry4|entry5}}}} entry1
entry2
entry3
entry4
entry5
{{br separated entries|entry1|entry2|{{br separated entries|entry3|entry4|}}}} entry1
entry2
entry3
entry4
{{br separated entries|entry1|entry2|{{br separated entries|entry3||entry5}}}} entry1
entry2
entry3
entry5
{{br separated entries|entry1|entry2|{{br separated entries||entry4|entry5}}}} entry1
entry2
entry4
entry5
{{br separated entries|entry1||{{br separated entries|entry3|entry4|entry5}}}} entry1
entry3
entry4
entry5
{{br separated entries||entry2|{{br separated entries|entry3|entry4|entry5}}}} entry2
entry3
entry4
entry5

See also