Template:TextBox: Difference between revisions
Appearance
Create |
mNo edit summary |
||
Line 2: | Line 2: | ||
{| style="border:1px solid #a2a9b1; background-color:{{{bg|#f8f9fa}}}; margin:0.5em 0; width:{{{width|100%}}};" | {| style="border:1px solid #a2a9b1; background-color:{{{bg|#f8f9fa}}}; margin:0.5em 0; width:{{{width|100%}}};" | ||
| style="padding:0.6em;" | | | style="padding:0.6em;" | | ||
'''{{{title}}}'''<br /> | |||
{{{text|{{{1|}}}}}} | {{{text|{{{1|}}}}}} | ||
|} | |} | ||
Line 12: | Line 10: | ||
<pre> | <pre> | ||
{{TextBox | {{TextBox | ||
| title = | | title = Required heading | ||
| text = Your content goes here. | | text = Your content goes here. | ||
| bg = #fff (optional background) | | bg = #fff (optional background) | ||
| width = 100% (optional width) | | width = 100% (optional width) | ||
}} | }} | ||
or | |||
{{TextBox|This is the content in parameter 1.}} | <!-- or the short form --> | ||
{{TextBox|title=Required heading|This is the content in parameter 1.}} | |||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Revision as of 20:17, 4 September 2025
Usage
{{TextBox | title = Required heading | text = Your content goes here. | bg = #fff (optional background) | width = 100% (optional width) }} <!-- or the short form --> {{TextBox|title=Required heading|This is the content in parameter 1.}}