Template:Collapsible textbox: Difference between revisions
From WikiMSK
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<div class="mw-collapsible mw-collapsed mw-collapsible-container" style="width:100%; max-width:600px; overflow:auto; text-align: left; width:100%;"> | <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; background: #f2f2f2; padding: 10px 15px;" class="mw-collapsible-title">{{{title}}}</div> | <div style="font-weight:bold;line-height:1.6; background: #f2f2f2; padding: 10px 15px;" class="mw-collapsible-title">{{{title}}}</div> | ||
<div style="padding: 10px 15px; border: solid 1px #f2f2f2;" class="mw-collapsible-content"> | <div style="padding: 10px 15px; border: solid 1px #f2f2f2;" class="mw-collapsible-content"> | ||
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" /> | <templatestyles src="Collapsible_textbox/styles.css" /> |
Revision as of 14:15, 3 July 2021
{{{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 |