Difference between revisions of "Template:GifUnpack/doc"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
<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> | ||
== Count == | |||
<pre class="jjrPre"><nowiki>{{#count:string|substring}}</nowiki></pre> | |||
outputs {{#count:string|substring}} | |||
<pre class="jjrPre"><nowiki>{{#count:string.gif|.}}</nowiki></pre> | |||
outputs {{#count:string.gif|.}} | |||
== See Also == | == See Also == | ||
* {{Purge}} | * {{Purge}} | ||
* https://www.mediawiki.org/wiki/Manual:Collapsible_elements | |||
* [[Template:Filmjr]] | |||
== Template Data == | == Template Data == | ||
<templatedata> | |||
{ | |||
"params": { | |||
"id": {}, | |||
"a": {} | |||
} | |||
} | |||
</templatedata> | |||
[[Category:Filmjr Helper Tpls]] |
Latest revision as of 17:48, 2 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
Count
{{#count:string|substring}}
outputs 0
{{#count:string.gif|.}}
outputs 1
See Also
Template Data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id | no description | Unknown | optional |
a | a | no description | Unknown | optional |