ReadMore

is a template created by JustLeafy.
== Description ==
It is a template that adds a read more button in a section. When clicking on it, it shows the text inserted in the template, meaning the text that is collapsed by default. When expanding it, it puts at the bottom a "SHOW LESS" button, which collapses the expanded text.
== Code ==
== Dependencies ==
== Syntax ==
== Sample output ==
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ex quam, laoreet eu sem sit amet, pulvinar ultricies neque. Pellentesque scelerisque metus sit amet imperdiet accumsan. Maecenas consequat nisl est. Donec vulputate purus mi, hendrerit rutrum neque bibendum in. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Ut id purus ut velit viverra laoreet at pretium mauris. Quisque sed ipsum sit amet arcu vestibulum feugiat.
{{ReadMore|
Nulla libero dolor, faucibus ac elit sit amet, rhoncus facilisis leo. Ut eget justo non lectus bibendum iaculis. Donec ut pulvinar nisl. Curabitur eget nibh magna. Pellentesque in mi eget velit feugiat volutpat id in ex. Vestibulum tincidunt neque eget tortor porta tristique quis ut dolor. Aenean sit amet faucibus eros. Quisque commodo urna metus, quis iaculis lectus aliquam ac. Phasellus porttitor porttitor gravida. Proin fringilla rhoncus laoreet. Nulla vulputate vestibulum viverra. Quisque sodales nunc vitae auctor ullamcorper. Suspendisse porttitor, velit et gravida rutrum, ante justo fermentum urna, et porta enim risus sed nunc. Fusce ut finibus sapien, eget interdum massa. Morbi consequat mollis luctus.
}}
gives
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ex quam, laoreet eu sem sit amet, pulvinar ultricies neque. Pellentesque scelerisque metus sit amet imperdiet accumsan. Maecenas consequat nisl est. Donec vulputate purus mi, hendrerit rutrum neque bibendum in. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Ut id purus ut velit viverra laoreet at pretium mauris. Quisque sed ipsum sit amet arcu vestibulum feugiat.
== Notes ==
It works perfectly fine in Oasis. However, it looks broken in Mercury, the mobile skin, and it would contain uncollapsed text with malfunctioning read more and show less buttons. To fix this problem, consider the following steps:
# Go to Template:ReadMore in your wiki.
# As seen under the template name on the top left side of the page, there is the template type text. Click on the template type link to modify the template type, and switch it to "Navbox" or "Notice", so that the template wouldn't appear in mobile.
# Go to the article where the template is present.
# Click the "EDIT" button (if your preferred editor is VisualEditor, click "Classic editor" instead, and switch to source mode.)
# Copy all of the text added in the template parameter, without removing it, and paste it above or under the template.
# Cover each paragraph with on the top of the paragraph and at the bottom of the paragraph.
# Click the "Publish" button.
In conclusion, all these steps make the template available in view in Oasis & Monobook, removes the malfunctioning version of it in the mobile skin and makes the text always appear in the mobile skin. However, that chunk of text is not collapsible.
Category:Templates