Difference between revisions of "Template:Main Page Box"
Jump to navigation
Jump to search
(optical update) |
m |
||
Line 6: | Line 6: | ||
| default | | default | ||
}}"> | }}"> | ||
− | <h{{{h}}} style="-moz-border-radius: 4px 4px 0 0; -webkit-border-radius: 4px 4px | + | <h{{{h}}} style="-moz-border-radius: 4px 4px 0 0; -webkit-border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; border-radius: 4px 4px 0 0; background-color: #d9e5ff; border: 1px solid #BFD3FF; margin: 0 !important;{{#ifeq:{{{h}}}|1|text-align: center;padding: 6px;|padding: 4px;}}">{{{hline}}}</h{{{h}}}> |
<div style="padding: 4px;"> | <div style="padding: 4px;"> | ||
{{{content}}} | {{{content}}} | ||
Line 16: | Line 16: | ||
== There are exactly four parameters: == | == There are exactly four parameters: == | ||
− | {| style="background-color:#89D1FC | + | {| style="background-color:#89D1FC;" |
|- style="background-color:#e3f3fc;" | |- style="background-color:#e3f3fc;" | ||
! Parameter !! possible Values !! Results | ! Parameter !! possible Values !! Results | ||
Line 37: | Line 37: | ||
== This is how it works: == | == This is how it works: == | ||
− | {| style="background-color:#89D1FC | + | {| style="background-color:#89D1FC;" |
|- style="background-color:#e3f3fc;" | |- style="background-color:#e3f3fc;" | ||
! sample code !! Result | ! sample code !! Result | ||
|- style="background-color:#e3f3fc;" | |- style="background-color:#e3f3fc;" | ||
− | | <pre><nowiki>{{ | + | | <pre><nowiki>{{{{PAGENAME}} |
| position = left | | position = left | ||
| h = 3 | | h = 3 | ||
Line 49: | Line 49: | ||
some lines<br />of text | some lines<br />of text | ||
}}</nowiki></pre> || | }}</nowiki></pre> || | ||
− | {{ | + | {{{{PAGENAME}} |
| position = left | | position = left | ||
| h = 3 | | h = 3 | ||
Line 59: | Line 59: | ||
|- style="background-color:#e3f3fc;" | |- style="background-color:#e3f3fc;" | ||
− | | <pre><nowiki>{{ | + | | <pre><nowiki>{{{{PAGENAME}} |
| position = center | | position = center | ||
| h = 1 | | h = 1 | ||
Line 68: | Line 68: | ||
* the position and size of the title | * the position and size of the title | ||
}}</nowiki></pre> || | }}</nowiki></pre> || | ||
− | {{ | + | {{{{PAGENAME}} |
| position = center | | position = center | ||
| h = 1 | | h = 1 | ||
Line 79: | Line 79: | ||
|- style="background-color:#e3f3fc;" | |- style="background-color:#e3f3fc;" | ||
− | | <pre><nowiki>{{ | + | | <pre><nowiki>{{{{PAGENAME}} |
| position = right | | position = right | ||
| h = 3 | | h = 3 | ||
Line 87: | Line 87: | ||
* "left" box results in right margin | * "left" box results in right margin | ||
}}</nowiki></pre> || | }}</nowiki></pre> || | ||
− | {{ | + | {{{{PAGENAME}} |
| position = right | | position = right | ||
| h = 3 | | h = 3 |
Revision as of 01:37, 29 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 |
---|---|
{{{{PAGENAME}} | position = left | h = 3 | hline = Title: | content = some lines<br />of text }} |
Title:some lines
|
{{{{PAGENAME}} | 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:
|
{{{{PAGENAME}} | position = right | h = 3 | hline = Title: | content = some lines<br />of text * "left" box results in right margin }} |
Title:some lines
|