Mr. Johnson (talk | contribs) No edit summary |
Mr. Johnson (talk | contribs) No edit summary Tag: Reverted |
||
Line 7: | Line 7: | ||
<div class="whitebox-1e" style="">{{#if:{{{2|}}}||{{Edit|{{FULLPAGENAME}}/{{{1}}}}}}}</div> | <div class="whitebox-1e" style="">{{#if:{{{2|}}}||{{Edit|{{FULLPAGENAME}}/{{{1}}}}}}}</div> | ||
<div class="whitebox-1f" style=""></div> | <div class="whitebox-1f" style=""></div> | ||
<div class="whitebox-2a"> | <div class="whitebox-2a"></div> | ||
<div class="whitebox-2b" style=""></div> | <div class="whitebox-2b" style=""></div> | ||
<div class="whitebox-2c" style=""></div> | <div class="whitebox-2c" style=""></div> |
Revision as of 23:34, 24 November 2023
Template:Whitebox
Template:Whitebox
is used to create formatted text 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 page in the Stub namespace with a name matching the header of the article. It also usesTemplate:Edit
to add a link to directly edit the stub article.
It also accepts two optional named parameters:
width
acceptsXpx
orX%
, and controls the width of the box to a minimum of 300px.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
clear
, the box is arranged clear of all content, above and below.
- If
Return
{{{Whitebox|Lorem Ipsum|{{Lorem Ipsum|2}}}}
returns: Lorem Ipsum
{{Whitebox|Sample}}
returns: Sample
[ edit ]
float
, as they don't appear correctly inside Template:Return
.The documentation above was transcluded from Template:Whitebox/Documentation. [ edit ]