Template:Collapsible Toggle: Difference between revisions
From HorizonXI Wiki
(Created page with "<includeonly><onlyinclude><span class="mw-customtoggle-{{{identifier}}}" style="margin-left: 1rem; font-size: 0.8rem;">[toggle]</span></onlyinclude></includeonly>") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude><span class="mw-customtoggle-{{{identifier}}}" style=" | <includeonly><onlyinclude><span class="mw-customtoggle-{{{identifier}}}" style="cursor: pointer;">[<span style="color: #3366cc;">{{{text|toggle}}}</span>]</span></onlyinclude></includeonly> | ||
==Usage== | |||
Functions together with [[:Template:Collapsible Content]]. | |||
parameters | |||
* identifier: necessary to have the same identifier as the Collapsible-Content that is supposed to be toggled. | |||
* text: optional. will display ''toggle'' instead. | |||
===Example=== | |||
<pre> | |||
Here is the {{Collapsible Toggle|identifier=toggle1}} for the element below. | |||
This one: {{Collapsible Content|identifier=toggle1|Its a list with | |||
* one | |||
* two | |||
* three | |||
elements.}} | |||
And this is below the collapsible content. | |||
</pre> | |||
Here is the {{Collapsible Toggle|identifier=toggle1}} for the element below. | |||
This one: {{Collapsible Content|identifier=toggle1|Its a list with | |||
* one | |||
* two | |||
* three | |||
elements.}} | |||
And this is below the collapsible content. |
Revision as of 16:50, 27 November 2023
Usage
Functions together with Template:Collapsible Content.
parameters
- identifier: necessary to have the same identifier as the Collapsible-Content that is supposed to be toggled.
- text: optional. will display toggle instead.
Example
Here is the {{Collapsible Toggle|identifier=toggle1}} for the element below. This one: {{Collapsible Content|identifier=toggle1|Its a list with * one * two * three elements.}} And this is below the collapsible content.
Here is the [toggle] for the element below.
This one:
Its a list with
- one
- two
- three
And this is below the collapsible content.