Difference between revisions of "Template:CollapsibleLevel2"

From The Star Wars Minute Wiki
Jump to navigation Jump to search
(8 intermediate revisions by 2 users not shown)
Line 2: Line 2:
To use this, do something like this:
To use this, do something like this:
{|
{|
|<pre>{{CollapsibleLevel2|My Fancy Heading|UniqueIndentifier}}
|<pre>{{CollapsibleLevel2|My Fancy Heading}}
* Pete
* Pete
* Alex
* Alex
Line 8: Line 8:
* The Thax
* The Thax
{{EndCollapsibleLevel2}}</pre>
{{EndCollapsibleLevel2}}</pre>
|{{CollapsibleLevel2|My Fancy Heading|UniqueIdentifier}}<br />
|{{CollapsibleLevel2|My Fancy Heading}}
* Pete<br />
* Alex<br />
* ToCo<br />
* The Thax<br />
{{EndCollapsibleLevel2}}
|}
 
The unique identifier cannot contains spaces. If it is skipped, the title is used:
{|
|<pre>{{CollapsibleLevel2|MyHeading}}
* Pete
* Pete
* Alex
* Alex
* ToCo
* ToCo
* The Thax
* The Thax
{{EndCollapsibleLevel2}}</pre>
|{{CollapsibleLevel2|MyHeading}}<br />
* Pete<br />
* Alex<br />
* ToCo<br />
* The Thax<br />
{{EndCollapsibleLevel2}}
{{EndCollapsibleLevel2}}
|}
|}


If the unique identifier is skipped and the title has spaces in, the link will not work and a separate "Expand" link will be added:
Next TODO: to work out why the "Edit" link doesn't work.


{|
|<pre>{{CollapsibleLevel2|Another Heading}}
* Pete
* Alex
* ToCo
* The Thax
{{EndCollapsibleLevel2}}</pre>
|{{CollapsibleLevel2|Another Heading}}<br />
* Pete<br />
* Alex<br />
* ToCo<br />
* The Thax<br />
{{EndCollapsibleLevel2}}
|}
</noinclude><includeonly>
</noinclude><includeonly>
==<span class="mw-customtoggle-{{{2|{{{1}}}}}}" style="cursor: pointer; color: blue; text-decoration: underline;">{{{1}}}</span>==
<h3><span class="mw-customtoggle-{{anchorencode:{{{2|{{{1}}}}}}}}" style="cursor: pointer; color: blue; text-decoration: underline;">{{{1}}}</span></h3>
<div id="mw-customcollapsible-{{{2|{{{1}}}}}}" class="mw-collapsible mw-collapsed"></includeonly>
<div id="mw-customcollapsible-{{anchorencode:{{{2|{{{1}}}}}}}}" class="mw-collapsible mw-collapsed"></includeonly>

Revision as of 07:25, 13 September 2019

To use this, do something like this:

{{CollapsibleLevel2|My Fancy Heading}}
* Pete
* Alex
* ToCo
* The Thax
{{EndCollapsibleLevel2}}

My Fancy Heading

  • Pete
  • Alex
  • ToCo
  • The Thax

Next TODO: to work out why the "Edit" link doesn't work.