Template:Spoiler/doc: Difference between revisions
mNo edit summary |
(No difference)
|
Revision as of 21:57, 13 January 2023
A simple inline spoiler template providing text that can be clicked to reveal the text underneath.
Example
- Code
The answer to Life, The Universe, and Everything is {{spoiler|forty two}}.
- Result
The answer to Life, The Universe, and Everything is [spoiler] .
- Code
The answer to Life, The Universe, and Everything is {{spoiler|forty two|norehide=1}}.
- Result
The answer to Life, The Universe, and Everything is [spoiler] .
- Code
Lorem ipsum dolor sit amet, {{spoiler|consectetur adipiscing elit}}. Ut lacinia turpis at {{spoiler|lacus consequat}}, vel varius tellus imperdiet. Nulla ac tellus lectus. Ut sit amet {{spoiler|nisi semper}}, tempus magna nec, {{spoiler|luctus massa}}. Nunc nec finibus lorem, {{spoiler|nec dictum}} felis. Sed tempor est vitae maximus ullamcorper. Nunc sed sagittis ipsum, {{spoiler|vitae vestibulum}} urna. Integer auctor lacinia justo, in feugiat sem pretium ut. Nulla nisi metus, fringilla in {{spoiler|bibendum sed}}, egestas vitae lorem. Mauris finibus vel augue vitae ultrices. Nunc sed pulvinar tellus. {{spoiler|Vestibulum vel}} sagittis {{spoiler|orci}}, eu mollis odio. {{spoiler|Sed malesuada sapien vitae fringilla molestie. Duis nec ornare tortor. Vivamus varius ornare magna, vitae pharetra justo tincidunt a. Nam eget enim non justo sollicitudin blandit. Nunc tincidunt, elit rhoncus dictum semper, lorem libero sollicitudin orci, quis suscipit eros mauris at ex. Suspendisse id massa eu urna laoreet rutrum ut sed urna. Mauris maximus sodales finibus. Cras iaculis augue eros, condimentum efficitur est vehicula eget. Morbi vitae nunc facilisis, lobortis dui ut, fermentum neque. Curabitur et tortor sagittis, fringilla odio in, aliquet tortor. Proin sagittis ultrices lectus et feugiat. Phasellus in dapibus est.}}
- Result
Lorem ipsum dolor sit amet, [spoiler] . Ut lacinia turpis at [spoiler] , vel varius tellus imperdiet. Nulla ac tellus lectus. Ut sit amet [spoiler] , tempus magna nec, [spoiler] . Nunc nec finibus lorem, [spoiler] felis. Sed tempor est vitae maximus ullamcorper. Nunc sed sagittis ipsum, [spoiler] urna. Integer auctor lacinia justo, in feugiat sem pretium ut. Nulla nisi metus, fringilla in [spoiler] , egestas vitae lorem. Mauris finibus vel augue vitae ultrices. Nunc sed pulvinar tellus. [spoiler] sagittis [spoiler] , eu mollis odio.
[spoiler]
- Code
<span class="{{#var_final: spoilerGlobalClass | }}">''Click here to toggle every spoiler in this page''</span>
- Result
Click here to toggle every spoiler in this page