Difference between revisions of "Template:Main Page Box"

From Learn Na'vi Wiki
Jump to navigation Jump to search
m (doc)
Line 41: Line 41:
  
 
|- style="background-color:#e3f3fc;"
 
|- style="background-color:#e3f3fc;"
| <pre><nowiki>{{{{PAGENAME}}
+
| <pre><nowiki>{{Main Page Box
 
| position = left
 
| position = left
 
| h = 3
 
| h = 3
Line 48: Line 48:
 
some lines<br />of text
 
some lines<br />of text
 
}}</nowiki></pre> ||
 
}}</nowiki></pre> ||
{{{{PAGENAME}}
+
{{Main Page Box
 
| position = left
 
| position = left
 
| h = 3
 
| h = 3
Line 58: Line 58:
  
 
|- style="background-color:#e3f3fc;"
 
|- style="background-color:#e3f3fc;"
| <pre><nowiki>{{{{PAGENAME}}
+
| <pre><nowiki>{{Main Page Box
 
| position = full
 
| position = full
 
| h = 1
 
| h = 1
Line 67: Line 67:
 
* the position and size of the title
 
* the position and size of the title
 
}}</nowiki></pre> ||
 
}}</nowiki></pre> ||
{{{{PAGENAME}}
+
{{Main Page Box
 
| position = full
 
| position = full
 
| h = 1
 
| h = 1
Line 78: Line 78:
  
 
|- style="background-color:#e3f3fc;"
 
|- style="background-color:#e3f3fc;"
| <pre><nowiki>{{{{PAGENAME}}
+
| <pre>{{Main Page Box
 
| position = right
 
| position = right
 
| h = 3
 
| h = 3
Line 85: Line 85:
 
some lines<br />of text
 
some lines<br />of text
 
* "left" box results in right margin
 
* "left" box results in right margin
}}</nowiki></pre> ||
+
}}</pre> ||
{{{{PAGENAME}}
+
{{Main Page Box
 
| position = right
 
| position = right
 
| h = 3
 
| h = 3

Revision as of 18:38, 10 September 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
  • 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 full 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
{{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


{{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:

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


{{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