More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="mw-collapsible mw-collapsed" style="font-family: monospace;"> | <templatestyles src="Template:CollapsibleCode/styles.css"/> | ||
{{{1|}}} | <div id="collapsible-container" class="mw-collapsible {{#ifeq:{{{collapsed|true}}}|true|mw-collapsed}}"> | ||
<div id="collapsible-container-header" style="text-align: center;">{{#far:chevron-down}}{{#far:chevron-up}} {{{heading|Code}}}</div> | |||
<div class="mw-collapsible-content" style="font-family: monospace;"> | |||
{{{code|{{{1|}}}}}} | |||
</div> | |||
</div> | </div> | ||
</includeonly> | </includeonly> |
Revision as of 16:39, 24 December 2024
A simple template to add a collapsible (and by default collapsed) bit of code to a wiki page
{{#far:chevron-down}}{{#far:chevron-up}} Code
This is some test code text.
It can have multiple lines
and they should show up correctly.