< Template:Box
Revision as of 15:51, 11 November 2022 by Arcology Expert Program (talk | contribs)
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. If not supplied, the contents is transcluded from a subpage of the article, using the header as the subpage name. It also adds a link to directly view the subpage.
It also accepts two optional named parameters:
widthacceptsXpxorX%, and controls the width of the box. If undefined, the box has10%margins left and right.floatacceptsleftorright. If defined, the box is floated to the selected side of the screen and the margins and padding are setup coorespondingly.color(default:blue) controls the color of the background. The valid options are:
red
green
blue
yellow
purple
cyan
gray
white
Return
{{{Box|color=green|Lorem Ipsum|{{Lorem Ipsum|2}}}} returns:
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.
{{Box|Sample}} returns:
