Template:Cl: Difference between revisions

From 2d4chan
Jump to navigation Jump to search
1d4chan>NotBrandX
mNo edit summary
m (5 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  <nowiki>Use:
  <nowiki>Use:
  {{Cl|UniqueListName (nospaces, unique to the page)
  {{Cl|UniqueListName (nospaces, unique to the page)
  |* list item
  |Term
  |** sublist item
  |item
  ** sublist item
 
  ** sublist item
item
 
item
  }}</nowiki>
  }}</nowiki>
</noinclude>
</noinclude>
{{#addscript: src=/collapsible|pos=head|type=js}}
{{#addscript: src=/collapsible|pos=head|type=js}}
{{{2}}}&nbsp;<span id="{{{1}}}Link" class="toggleLink" style="font-size: 86%; font-weight: bold;"></span>
<dl><span id="{{{1}}}InitialState" style="display:none;">0</span>
<span id="{{{1}}}InitialState" style="display:none;">0</span>
<span id="{{{1}}}CollapseText" style="display:none;">[Collapse]</span>
<span id="{{{1}}}CollapseText" style="display:none;">[Collapse]</span>
<span id="{{{1}}}ExpandText" style="display:none;">[Expand]</span>
<span id="{{{1}}}ExpandText" style="display:none;">[Expand]</span>
<div style="margin-top: 0em; margin-bottom: 0em;" id="{{{1}}}">
<dt>{{{2}}}&nbsp;<span id="{{{1}}}Link" class="toggleLink" style="font-size: 86%; font-weight: bold;"></span>
<dd id="{{{1}}}">
{{{3}}}
{{{3}}}
</div>
</dl>

Latest revision as of 13:10, 24 June 2023

Collapsable List template is a hack of Collapsable Gallery template, which was, in turn, stolen from Encyclopaeophiles Dramatica.

Doesn't work yet, still tinkering

Use:
 {{Cl|UniqueListName (nospaces, unique to the page)
 |Term
 |item

 item

 item
 }}

{{#addscript: src=/collapsible|pos=head|type=js}}

{{{2}}} 
{{{3}}}