Template:TLP drawer en: Difference between revisions

update source code as previously developed in Template:TLP drawer test
No edit summary
(update source code as previously developed in Template:TLP drawer test)
Line 1: Line 1:
<div class="{{#if:{{{sub-propositions|}}}|mw-collapsible mw-collapsed tlp-drawer|tlp-drawer}}">
<div class="tlp-drawer">
<div>{{Individual-TLP-paragraph-{{{lang|}}}-{{{proposition|}}}}}</div>
<div>{{#if:{{{sub-propositions|}}}|<span class="tlp-button"><nowiki>[</nowiki><html><span onclick="TLPExpand('</html>{{{proposition}}}<html>')" style="cursor: pointer; color: #4c4c4c;"></html><span id="tlp-button-text-{{{proposition}}}">Expand</span></span><nowiki>]</nowiki></span>|}}{{Individual-TLP-paragraph-{{{lang|}}}-{{{proposition|}}}}}</div>
{{#if:{{{sub-propositions|}}}|<div class="mw-collapsible-content">{{{sub-propositions|}}}</div>|}}
{{#if:{{{sub-propositions|}}}|<div id="tlp-children-{{{proposition}}}" style="display: none;">{{{sub-propositions|}}}</div>|}}
</div>
</div>