Template:Collapse top: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
mNo edit summary
m (minor background color adjustment, to be a bit more visible.)
 
Line 1: Line 1:
<div class="mw-customtoggle-{{{2|CollapsibleB}}}" style="cursor:pointer; position:relative;  width:{{{width|90}}}%; left:8px; background: linear-gradient(#4f321c, #342214); display:inline-block; border-radius: 2px; padding:0px 0px; line-height:24px; color:#dcd1ad; font-size:15px; font-weight:bold"><div align="{{{align|center}}}"> {{{1|<noinclude>Extended content</noinclude>}}} <span style="position:absolute;left:5px;">&#9662;</span>
<div class="mw-customtoggle-{{{2|CollapsibleB}}}" style="cursor:pointer; position:relative;  width:{{{width|90}}}%; left:8px; background: linear-gradient(#593a22, #392414); display:inline-block; border-radius: 2px; padding:0px 0px; line-height:24px; color:#dcd1ad; font-size:15px; font-weight:bold"><div align="{{{align|center}}}"> {{{1|<noinclude>Extended content</noinclude>}}} <span style="position:absolute;left:5px;">&#9662;</span>
<span style="position:absolute;right:5px;"><span style="font-size:14px;font-weight:400">[Expand]</span> &#9662;</span></div></div>
<span style="position:absolute;right:5px;"><span style="font-size:14px;font-weight:400">[Expand]</span> &#9662;</span></div></div>
<div id="mw-customcollapsible-{{{2|CollapsibleB}}}" class="mw-collapsible {{#if:{{{expand|}}}||mw-collapsed}}" style="display:flow-root;">
<div id="mw-customcollapsible-{{{2|CollapsibleB}}}" class="mw-collapsible {{#if:{{{expand|}}}||mw-collapsed}}" style="display:flow-root;">

Latest revision as of 08:35, 16 May 2022

Extended content [Expand]

Lorem ipsum

Template documentation[view] [edit] [history] [purge]


Shortcut

The {{collapse top}} template (or {{cot}}), and its paired template {{collapse bottom}} (or {{cob}}), are used for placing a collapse box around a talk page discussion, especially when the content contains complex wikimarkup such as tables. For very simple content, the one-piece template {{collapse}} can be used instead.

Usage

Place {{collapse top}} (or {{cot}}), and {{collapse bottom}} (or {{cob}}), around the text to be collapsed. For example:

{{collapse top|This is the title text|OptionalIDToMakeThatEachColapsibleCollapseAndExpandSeparately}}
Sample contents text
{{collapse bottom}}

produces:

This is the title text [Expand]

Sample contents text