Difference between revisions of "Template:CustomToggleButton"
From Pathfinder Wiki
DesignerThan (talk | contribs) (Created page with "<noinclude> This template is used to create a custom toggle button for a collapsable box. You need to add the text of the button and a name for the toggle button. This name ne...") |
DesignerThan (talk | contribs) |
||
Line 9: | Line 9: | ||
</div> | </div> | ||
− | {{CustomToggleButton|text= | + | {{CustomToggleButton|text=Einklappen|name=example-box}} |
<div class="mw-collapsible" id="mw-customcollapsible-example-box"> | <div class="mw-collapsible" id="mw-customcollapsible-example-box"> | ||
This text will be shown/hidden by a press of the button. | This text will be shown/hidden by a press of the button. | ||
Line 15: | Line 15: | ||
</noinclude> | </noinclude> | ||
+ | <includeonly> | ||
<span class="mw-customtoggle-ansReq"> | <span class="mw-customtoggle-ansReq"> | ||
[ | [ | ||
<span style="text-decoration: underline; color: blue; cursor: pointer;"> | <span style="text-decoration: underline; color: blue; cursor: pointer;"> | ||
− | {{ | + | {{{text|{{#switch:{{SUBPAGENAME}}|es=Mostrar/ocultar|fr= Afficher/Masquer|Show/Hide}}}}} |
</span> | </span> | ||
] | ] | ||
</span> | </span> | ||
+ | </includeonly> |
Revision as of 23:50, 8 November 2020
This template is used to create a custom toggle button for a collapsable box. You need to add the text of the button and a name for the toggle button. This name needs to be used also for the collapsible box in the id-Property.
For example like that:
{{CustomToggleButton|text=Show/Hide text|name=example-box}}
<div class="mw-collapsible" id="mw-customcollapsible-example-box">
<div class="mw-collapsible" id="mw-customcollapsible-example-box">
- This text will be shown/hidden by a press of the button.
</div>
- This text will be shown/hidden by a press of the button.
[
Einklappen
]
This text will be shown/hidden by a press of the button.