User:Ochristi/Construction/Main Page Box

From Learn Na'vi Wiki
< User:Ochristi‎ | Construction
Revision as of 06:20, 14 March 2010 by Ochristi (talk | contribs) (Created page with '<includeonly><div style="-moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; margin-bottom: 1em; padding: 2px; border:1px solid #4080FF; background-color: #F…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a shiny Template for creating the Main Page Boxes.

There are exactly four parameters:

Parameter possible Values Results
position =
left, right, full
  • 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 center option has no margin to a side
h =
1, 3
  • 1 is just for the big headline h1 size and centered
  • 3 is for the smaller ones
hline =
one line of text
  • this goes to the content of the head line
content =
some more text
  • this goes to the main content of the box

This is how it works:

sample code Result
{{User:Ochristi/Construction/Main Page Box
| position = left
| h = 3
| hline = Title:
| content =
some lines<br />of text
}}

Title:

some lines
of text

  • "left" box results in right margin


{{User:Ochristi/Construction/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:

  • the margin to the table border
  • the position and size of the title


{{User:Ochristi/Construction/Main Page Box
| position = right
| h = 3
| hline = Title:
| content =
some lines<br />of text
* "left" box results in right margin
}}

Title:

some lines
of text

  • "left" box results in right margin