Difference between revisions of "Template:Main Page Box"
Jump to navigation
Jump to search
(Created page with '<includeonly><div style="background-color: #d9e5ff;margin-bottom: 1em; {{#switch: {{{position}}} | center = | left = margin-right: 0.5em; | right = margin-left: 0.5em; | def…') |
|||
Line 1: | Line 1: | ||
− | <includeonly><div style=" | + | <includeonly><div style="margin-bottom: 1em; |
{{#switch: {{{position}}} | {{#switch: {{{position}}} | ||
| center = | | center = | ||
Line 6: | Line 6: | ||
| default | | default | ||
}}"> | }}"> | ||
− | <h{{{h}}} style="border: 1px solid #4080ff;margin: 0 !important;padding: 0.3em;{{#ifeq:{{{h}}}|1|text-align: center;|}}">{{{hline}}}</h{{{h}}}> | + | <h{{{h}}} style="background-color: #d9e5ff;border: 1px solid #4080ff;margin: 0 !important;padding: 0.3em;{{#ifeq:{{{h}}}|1|text-align: center;|}}">{{{hline}}}</h{{{h}}}> |
− | <div style="border: 1px solid #4080ff;border-width: 0 1px 1px !important;padding: 0.3em; | + | <div style="background-color: #e5eeff;border: 1px solid #4080ff;border-width: 0 1px 1px !important;padding: 0.3em; |
"> | "> | ||
{{{content}}} | {{{content}}} |
Revision as of 16:30, 5 March 2010
This is a shiny Template for creating the Main Page Boxes.
There are exactly four parameters:
Parameter | possible Values | Results |
---|---|---|
position = |
left, right, full |
|
h = |
1, 3 |
|
hline = |
one line of text |
|
content = |
some more text |
|
This is how it works:
sample code | Result |
---|---|
{{Main Page Box | position = left | h = 3 | hline = Title: | content = some lines<br />of text }} |
Title:some lines
|
{{Main Page Box | position = center | h = 1 | hline = Big Title: | content = compare: * the margin to the table border * the position and size of the title }} |
Big Title:compare:
|
{{Main Page Box | position = right | h = 3 | hline = Title: | content = some lines<br />of text * "left" box results in right margin }} |
Title:some lines
|