Template:FirstOnly: Difference between revisions
From Ymirheim Wiki
(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...") |
m (Protected "Template:FirstOnly" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
Latest revision as of 09:42, 12 July 2024
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