Template:Collapsible textbox: Difference between revisions
From WikiMSK
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class=" | <div class="mw-collapsible mw-collapsed mw-collapsible-container" style="width:100%; max-width:{{{width|600px}}}; overflow:auto; text-align: left; width:100%;"> | ||
<div style="font-weight:bold;line-height:1.6;">{{{title}}}</div> | <div style="font-weight:bold;line-height:1.6; background: #f2f2f2; padding: 10px 15px;" class="mw-collapsible-title">{{{title}}}</div> | ||
<div class="mw-collapsible-content"> | <div style="padding: 10px 15px; border: solid 1px #f2f2f2;" class="mw-collapsible-content"> | ||
{{{text}}} | {{{text}}} | ||
</div></div> | </div></div> | ||
<noinclude> | <noinclude> | ||
[[Category: | [[Category:Article Boxes]] | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 18: | Line 18: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"width": { | |||
"label": "Width" | |||
} | } | ||
}, | }, | ||
Line 23: | Line 26: | ||
"paramOrder": [ | "paramOrder": [ | ||
"title", | "title", | ||
"text" | "text", | ||
"width" | |||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> | ||
<templatestyles src="Collapsible_textbox/styles.css" /> |
Latest revision as of 20:30, 1 May 2022
{{{title}}}
{{{text}}}
This template adds a collapsible textbox
Parameter | Description | Type | Status | |
---|---|---|---|---|
Box Title | title | no description | String | required |
Box Text | text | no description | String | required |
Width | width | no description | Unknown | optional |