No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>[[Category:Box Template]]</includeonly> | ||
{{Template|Box}} is used to create formatted text boxes. | |||
==Usage== | |||
I accepts one {{Parameter|mandatory|string}} and one {{Parameter|optional|string}}. | |||
* {{Code|1}} is the name of the article and the header for the text box. | |||
* {{Code|2}}, if supplied, is the contents of the text box. | |||
It also accepts one {{Parameter|optional|named}}: | |||
* {{Code|color}} (default: {{Code|red}}) controls the color of the background. | |||
==Return== | |||
{{Box|color=red|Lorem Ipsum|{{Lorem Ipsum|2}}}} | {{Box|color=red|Lorem Ipsum|{{Lorem Ipsum|2}}}} | ||
Revision as of 17:43, 23 October 2022
Template:Box is used to create formatted text boxes.
Usage
I accepts one mandatory string parameter and one optional string parameter.
1is the name of the article and the header for the text box.2, if supplied, is the contents of the text box.
It also accepts one optional named parameter:
color(default:red) controls the color of the background.
Return
Lorem Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis quis metus nunc. Fusce est libero, interdum vel iaculis et, blandit quis odio. Integer ac magna nunc. In quis libero purus. Praesent mattis eget justo in efficitur. Aenean tempor congue dictum. Mauris hendrerit nunc a auctor dictum.
Lorem Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis quis metus nunc. Fusce est libero, interdum vel iaculis et, blandit quis odio. Integer ac magna nunc. In quis libero purus. Praesent mattis eget justo in efficitur. Aenean tempor congue dictum. Mauris hendrerit nunc a auctor dictum.
Lorem Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis quis metus nunc. Fusce est libero, interdum vel iaculis et, blandit quis odio. Integer ac magna nunc. In quis libero purus. Praesent mattis eget justo in efficitur. Aenean tempor congue dictum. Mauris hendrerit nunc a auctor dictum.
