Difference between revisions of "Template:Box-L"

From Wikispooks
Jump to navigation Jump to search
(Created page with "<noinclude> This to place a text block that floats to the Left. It has three parameters for text: #Header #Text #Footer Copy and past the following to use the template, then repl...")
 
(Fix)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>[[category:Box Templates]]'''This template places a text block that floats to the left.''' It has three parameters for text:
This to place a text block that floats to the Left. It has three parameters for text:
 
 
#Header
 
#Header
 
#Text
 
#Text
 
#Footer
 
#Footer
 
Copy and past the following to use the template, then replace 'HEADER', 'TEXT' and 'FOOTER' with the text to be highlighted:
 
Copy and past the following to use the template, then replace 'HEADER', 'TEXT' and 'FOOTER' with the text to be highlighted:
:<Code><nowiki>{{Box-R|HEADER|TEST|FOOTER}}</nowiki></code>
+
:<Code><nowiki>{{Box-L|HEADER|TEXT|FOOTER}}</nowiki></code>
 
The result will be as shown below with your text replacing the curly-braced parameter.
 
The result will be as shown below with your text replacing the curly-braced parameter.
  
Line 11: Line 10:
 
</noinclude>
 
</noinclude>
  
<div style="float:left; background:#fff; width: 25em; border-style: solid; border-width: 1px;  margin: 1em; z-index: 10; padding: 0.4em; margin-left:0px;">
+
<div style="float:left; background:#fff; width: 25em; border-style: solid; border-width:1px;  border-color:#9a9a9a; margin: 1em; z-index: 10; padding: 0.4em; margin-left:0px;">
{| style="width:100%; background:#f4f4ec; border:1px solid #ccc;"
+
{| style="width:100%; background:#f9f9f9; border:1px solid #ccc;"
| style="font-size:100%; padding:2px 0; margin:0px; text-align:center; color:#000;" |  
+
| style="font-size:110%; padding:2px 0; margin:0px; text-align:center; color:#000;" |  
 
{{{1}}}
 
{{{1}}}
 
|}
 
|}
 
{{{2}}}
 
{{{2}}}
{| style="width:100%; background:#f4f4ec; margin-top:1.2em; border:1px solid #ccc;"
+
{| style="width:100%; background:#f9f9f9; margin-top:1.2em; border:1px solid #ccc;"
| style="font-size:120%; padding:2px 0; margin:0; text-align:center; color:#000;" |  
+
| style="font-size:1o0%; padding:2px 0; margin:0; text-align:center; color:#000;" |  
 
{{{3}}}
 
{{{3}}}
 
|}
 
|}
 
</div>
 
</div>

Latest revision as of 15:03, 6 December 2013

This template places a text block that floats to the left. It has three parameters for text:

  1. Header
  2. Text
  3. Footer

Copy and past the following to use the template, then replace 'HEADER', 'TEXT' and 'FOOTER' with the text to be highlighted:

{{Box-L|HEADER|TEXT|FOOTER}}

The result will be as shown below with your text replacing the curly-braced parameter.

NOTE: If the header or footer (ie parameters 1 or 3) are left blank, the result will be a coloured line with no text.


{{{1}}}

{{{2}}}

{{{3}}}