The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.
Template:Collapse top: Difference between revisions
(copy-past from poe1 wiki) |
(this box are not perfect, and it is weird that they don't behave like in the poe1 wiki. let say that this is fine ; but could be improve, to always be the same size as the clickable thing above.) |
||
Line 2: | Line 2: | ||
<span style="position:absolute;right:5px;"><span style="font-size:14px;font-weight:400">[Expand]</span> ▾</span></div></div> | <span style="position:absolute;right:5px;"><span style="font-size:14px;font-weight:400">[Expand]</span> ▾</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;"> | ||
<div class="mw-collapsible-content" style=" position:relative;width:{{{width| | <div class="mw-collapsible-content" style=" position:relative;width:{{{width|106.84}}}%; left:8px; border: 1px solid #342214; padding:{{{padding-content|0 1em}}}; background:{{{bg-content|transparent}}}; text-align:left; box-sizing:content-box;"> | ||
<noinclude> | <noinclude> | ||
Lorem ipsum | Lorem ipsum |
Latest revision as of 23:51, 1 January 2025
Usage
The {{collapse top}}
template, and its paired template {{collapse bottom}}
, are used for placing a collapse box around certain content (like resolved talk page discussions) that is no longer considered necessary information for the space.
Note: It is not intended to hide or collapse content in articles. Content in articles can be seperated using things like {{Blockquote top}}
and {{Blockquote bottom}}
, or {{Code}}
. It is moreso a tool to simplify long talkpages with previously complicated or long topics. See Wikipedia's Manual of Style
Example
Place {{collapse top}}
, and {{collapse bottom}}
, around the text to be collapsed. For example:
{{collapse top|This is the title text|OptionalIDToMakeThatEachColapsibleCollapseAndExpandSeparately}} Sample contents text {{collapse bottom}}
produces:
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.