Jump to content

Template:TextBox: Difference between revisions

From Project Dione
Create
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="center">
{| 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;" |
<!-- Optional title -->
'''{{{title}}}'''<br />
{{#if:{{{title|}}}|'''{{{title}}}'''<br />}}
<!-- Body -->
{{{text|{{{1|}}}}}}
{{{text|{{{1|}}}}}}
|}
|}
</div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
Line 12: Line 12:
<pre>
<pre>
{{TextBox
{{TextBox
  | title = Optional heading
  | 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>

Latest revision as of 20:32, 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.}}