Namespaces
Variants
Views
Actions

Template:lines/doc

From cppreference.com

{{lines|text }}

Extracts lines from <br>-separated text and puts each of them into separate HTML tag.

Usage Resulting HTML elements Preview
{{lines|1<br>2<br>3}}

<span class="t-lines">
    <span>1</span>
    <span>2</span>
    <span>3</span>
<span>

123
{{lines|{{tt|ABCDEFG}}<br>{{tt|abcdefg}}}}

<span class="t-lines">
    <span>
        <code>ABCDEFG</code> 
    </span>
    <span>
        <code>abcdefg</code>
    </span>
<span>

ABCDEFGabcdefg