Template:FirstOnly

From Ymirheim Wiki
Revision as of 09:42, 12 July 2024 by Neris (talk | contribs) (Protected "Template:FirstOnly" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(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