Difference between revisions of "Template:Main Page Box"
Jump to navigation
Jump to search
m |
(added category) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><div | + | <includeonly><div class="mpb{{#switch: {{{position}}} |
− | {{#switch: {{{position}}} | + | | full = |
− | | | + | | left =-left |
− | | left = | + | | right =-right |
− | | right = | ||
| default | | default | ||
}}"> | }}"> | ||
− | <h{{{h}}} | + | <h{{{h}}} class="mpb-h{{{h}}}">{{{hline}}}</h{{{h}}}> |
− | <div | + | <div> |
{{{content}}} | {{{content}}} | ||
</div> | </div> | ||
Line 23: | Line 22: | ||
* the '''left''' causes the box to have a '''0.3em''' margin to the right | * the '''left''' causes the box to have a '''0.3em''' margin to the right | ||
* the '''right''' generates a '''0.3em''' margin to the left | * the '''right''' generates a '''0.3em''' margin to the left | ||
− | * the ''' | + | * the '''full''' option has '''no margin''' to a side |
|- style="background-color:#e3f3fc;" | |- style="background-color:#e3f3fc;" | ||
| <pre>h =</pre> || <pre>1, 3</pre> || | | <pre>h =</pre> || <pre>1, 3</pre> || | ||
Line 42: | Line 41: | ||
|- style="background-color:#e3f3fc;" | |- style="background-color:#e3f3fc;" | ||
− | | <pre><nowiki>{{ | + | | <pre><nowiki>{{Main Page Box |
| position = left | | position = left | ||
| h = 3 | | h = 3 | ||
Line 49: | Line 48: | ||
some lines<br />of text | some lines<br />of text | ||
}}</nowiki></pre> || | }}</nowiki></pre> || | ||
− | {{ | + | {{Main Page Box |
| position = left | | position = left | ||
| h = 3 | | h = 3 | ||
Line 59: | Line 58: | ||
|- style="background-color:#e3f3fc;" | |- style="background-color:#e3f3fc;" | ||
− | | <pre><nowiki>{{ | + | | <pre><nowiki>{{Main Page Box |
− | | position = | + | | position = full |
| h = 1 | | h = 1 | ||
| hline = Big Title: | | hline = Big Title: | ||
Line 68: | Line 67: | ||
* the position and size of the title | * the position and size of the title | ||
}}</nowiki></pre> || | }}</nowiki></pre> || | ||
− | {{ | + | {{Main Page Box |
− | | position = | + | | position = full |
| h = 1 | | h = 1 | ||
| hline = Big Title: | | hline = Big Title: | ||
Line 79: | Line 78: | ||
|- style="background-color:#e3f3fc;" | |- style="background-color:#e3f3fc;" | ||
− | | <pre | + | | <pre>{{Main Page Box |
| position = right | | position = right | ||
| h = 3 | | h = 3 | ||
Line 86: | Line 85: | ||
some lines<br />of text | some lines<br />of text | ||
* "left" box results in right margin | * "left" box results in right margin | ||
− | }} | + | }}</pre> || |
− | {{ | + | {{Main Page Box |
| position = right | | position = right | ||
| h = 3 | | h = 3 | ||
Line 97: | Line 96: | ||
|} | |} | ||
__NOTOC__ __NOEDITSECTION__ | __NOTOC__ __NOEDITSECTION__ | ||
+ | [[Category:Template]] | ||
</noinclude> | </noinclude> |
Latest revision as of 23:51, 25 January 2011
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 = full | 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
|