Template:Header: Difference between revisions

m
Protected "Template:Header" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
No edit summary
m (Protected "Template:Header" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><br clear=all>
<includeonly>{{br|{{{3|}}}}}
{| border=0 cellspacing=0 cellpadding=0 width=100%
{| border=0 cellspacing=0 cellpadding=0 style="max-width: 100%"
|-
|-
|<h2 style="margin:0; padding-bottom:0; font-size:x-large; font-weight:bold;">{{{2}}}</h2>
|<h2 style="margin:0; font-size:180%; font-weight:bold; border-bottom: none;">{{{2}}}</h2>
|-
|-
!style="background:{{{1}}};" height=10|
!style="background:{{{1}}}; width:9000px" height=10|
|}</includeonly><noinclude>Makes thick lined headers.
|}</includeonly><noinclude>__NOTOC__
===Makes thick lined headers.===
<pre>{{header|Line color|Header Title}}</pre>
<pre>{{header|Line color|Header Title}}</pre>


Line 17: Line 18:
{{header|#5C5CAD|Welcome to StarBase 118}}
{{header|#5C5CAD|Welcome to StarBase 118}}


By default, the header will not cause a complete line break next to a floating object such as an image:
[[File:Trip.jpg|thumb|Hi, Cap'n!]]
{{header|maroon|Notice how Trip is right next to this header?}}
This is useful when you don't want a massive gap between sections of your page because of a sidebar/nav or whatever that's floating next to your text.
<br clear=all>
===But what happens if you DO want a clean line break?===
If you add an extra "clear" parameter to the header, it will force a full line break before the header.
<pre>{{header|maroon|Now this header is below the image!|clear}}</pre>
[[File:Trip.jpg|thumb|That's a neat trick, Cap'n!]]
{{header|maroon|Now this header is below the image!|clear}}
===How about headers that don't go all the way across the page?===
If you want to limit the width of your header, use [[Template:HeaderX]] to get something like this:
{{headerX|steelblue|400px Header|400}}
Happy Wiki Editing! –[[User:Rich|Rich]]<sup>[[User talk:Rich|(talk page)]]</sup> ''aka Lt.Cmdr. Rahman''
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>