Difference between revisions of "Template:Main Page Box"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
<includeonly><div class="mpb{{#switch: {{{position}}} | <includeonly><div class="mpb{{#switch: {{{position}}} | ||
− | | | + | | full = |
| left =-left | | left =-left | ||
| right =-right | | right =-right | ||
Line 22: | 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 59: | Line 59: | ||
|- style="background-color:#e3f3fc;" | |- style="background-color:#e3f3fc;" | ||
| <pre><nowiki>{{{{PAGENAME}} | | <pre><nowiki>{{{{PAGENAME}} | ||
− | | position = | + | | position = full |
| h = 1 | | h = 1 | ||
| hline = Big Title: | | hline = Big Title: | ||
Line 68: | Line 68: | ||
}}</nowiki></pre> || | }}</nowiki></pre> || | ||
{{{{PAGENAME}} | {{{{PAGENAME}} | ||
− | | position = | + | | position = full |
| h = 1 | | h = 1 | ||
| hline = Big Title: | | hline = Big Title: |
Revision as of 14:38, 9 May 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 |
---|---|
{{{{PAGENAME}} | position = left | h = 3 | hline = Title: | content = some lines<br />of text }} |
Title:some lines
|
{{{{PAGENAME}} | 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:
|
{{{{PAGENAME}} | position = right | h = 3 | hline = Title: | content = some lines<br />of text * "left" box results in right margin }} |
Title:some lines
|