Template:FirstOnly

From Ymirheim Wiki
Revision as of 09:42, 12 July 2024 by Neris (talk | contribs) (Created page with "<includeonly><templatestyles src="Template:FirstOnly/styles.css"/></includeonly><noinclude> This template is used to render only the first of a consecutive list of elements marked with HTML class <code>first-only</code>. == Examples == <pre><nowiki> {{FirstOnly}} <span class="first-only">Only this element will be shown<br/></span> <span class="first-only">This element will be hidden<br/></span> <span class="first-only">And this one too<br/></span> <span>This element i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


This template is used to render only the first of a consecutive list of elements marked with HTML class first-only.

Examples

{{FirstOnly}}
<span class="first-only">Only this element will be shown<br/></span>
<span class="first-only">This element will be hidden<br/></span>
<span class="first-only">And this one too<br/></span>
<span>This element is not .first-only so it resets the order.<br/></span>
<span class="first-only">This one will be shown again<br/></span>
<span class="first-only">And this one is hidden<br/></span>

Only this element will be shown
This element will be hidden
And this one too
This element is not .first-only so it resets the order.
This one will be shown again
And this one is hidden