Difference between revisions of "Template:Box"
From LFS Manual
Jump to navigationJump to search (Created page with "<div style="border: 1px solid {{#if:{{{2|}}}|{{{2}}}|#c8ccd1}}; background-color: {{#if:{{{3|}}}|{{{3}}}|#FAFAFA}};">{{{1}}}</div><noinclude> {{box|test}} {{box|test|red}} {{b...") |
m |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <div style="border: 1px solid {{# | + | <includeonly><div style="border: 1px solid {{{border|#c8ccd1}}}; text-align: {{{textalign|left}}}; background-color: {{{bg|#FAFAFA}}}; padding: {{{padding|0}}}; {{#if:{{{style|}}}|{{{style}}}}}">{{{1}}}</div></includeonly><noinclude> |
| − | {{ | + | {{Documentation}} |
| − | |||
| − | |||
Latest revision as of 11:15, 3 December 2023
Template documentation
Basic usage
| Markup | Renders as |
|---|---|
{{box|box content}}
|
box content
|
Border color
| Markup | Renders as |
|---|---|
{{box|border=red|box content}}
|
box content
|
Background color
| Markup | Renders as |
|---|---|
{{box|bg=yellow|box content}}
|
box content
|
Text alignment
| Markup | Renders as |
|---|---|
{{box|textalign=center|box content}}
|
box content
|
Padding
| Markup | Renders as |
|---|---|
{{box|padding=8px|box content}}
|
box content
|
Custom style
| Markup | Renders as |
|---|---|
{{box|style=outline: 1px solid|box content}}
|
box content
|
All at once
| Markup | Renders as |
|---|---|
{{box|box content|border=red|bg=yellow|padding=8px}}
|
box content
|