Mr. Johnson (talk | contribs) No edit summary |
Mr. Johnson (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
| clear = "clear:both;" | | clear = "clear:both;" | ||
|#default= ""}}> | |#default= ""}}> | ||
<div style="border:20px solid black"> | <div style="border:20px solid black">{{{1|{{Error|{{Template|Box}} has mandatory parameters}}}}} | ||
{{#if:{{{2|}}}|| {{Edit|{{FULLPAGENAME}}/{{{1}}}}}}}{{{2|{{:{{FULLPAGENAME}}/{{{1}}}}}}}} | {{#if:{{{2|}}}|| {{Edit|{{FULLPAGENAME}}/{{{1}}}}}}}{{{2|{{:{{FULLPAGENAME}}/{{{1}}}}}}}} | ||
</div></div></onlyinclude></includeonly> | </div></div></onlyinclude></includeonly> |
Revision as of 21:44, 17 November 2023
Template:Redbox
Template:Redbox
is used to create styled text and image boxes.
Usage
It accepts one mandatory string parameter and one optional string parameter.
1
is 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 accepts two optional named parameters:
width
acceptsXpx
orX%
, and controls the width of the box. If undefined, the box has10%
margins left and right.float
acceptsleft
,right
, orclear
.- If
left
orright
, the box is floated to the selected side of the screen and the margins and padding are setup coorespondingly.
- If
Return
{{{Redbox|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.
{{Redbox|Sample}}
returns: Sample
[ edit ]
This page intentionally left blank... or something.
No examples are included for float
, as they don't appear correctly inside Template:Return
.
The documentation above was transcluded from Template:Redbox/Documentation. [ edit ]