Difference between revisions of "Template:GifUnpack/doc"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
Its relationship to the collapsible element is detected by using an ID attribute with the prefix <code>mw-customcollapsible</code> and a corresponding class attribute with prefix <code>mw-customtoggle</code> for the collapsible element and the togglelink respectively. | Its relationship to the collapsible element is detected by using an ID attribute with the prefix <code>mw-customcollapsible</code> and a corresponding class attribute with prefix <code>mw-customtoggle</code> for the collapsible element and the togglelink respectively. | ||
<span class="mw-customtoggle-myDivision">Toggle link</span> | <span class="mw-customtoggle-myDivision">Toggle link</span> | ||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-myDivision">Toggled text</div> | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-myDivision">Toggled text</div> | ||
== See Also == | == See Also == |
Revision as of 20:47, 1 March 2022
- - -
There is a documentation subpage housing the metadata about parent template: GifUnpack.
animated gif from archive dot org
Collapsible
If you don't want the script to put the default toggle link (whether or not with a custom label) in your element, you can make one of your own. This could reside anywhere inside or outside the collapsible element.
Its relationship to the collapsible element is detected by using an ID attribute with the prefix mw-customcollapsible
and a corresponding class attribute with prefix mw-customtoggle
for the collapsible element and the togglelink respectively.
Toggle link
Toggled text