Template:Collapsible textbox: Difference between revisions
From WikiMSK
No edit summary |
No edit summary |
||
(10 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;">{{{ | <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}}} | ||
</div></div> | </div></div> | ||
<noinclude> | <noinclude> | ||
[[Category: | [[Category:Article Boxes]] | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"title": { | |||
"label": "Box Title", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"text": { | |||
"label": "Box Text", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"width": { | |||
"label": "Width" | |||
} | |||
}, | |||
"description": "This template adds a collapsible textbox", | |||
"paramOrder": [ | |||
"title", | |||
"text", | |||
"width" | |||
] | |||
} | |||
</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 |