Difference between revisions of "Template:Mainpage H2"

From The Lion King Wiki
Jump to: navigation, search
m (Protected "Template:Mainpage H2" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><h2 style="background:#b61f1f; border:none; margin:0; padding:5px; font:normal 18px 'Trebuchet MS', Trebuchet, Tahoma, Verdana, sans-serif; color:#fff; text-align:center;">{{{1}}}</h2></includeonly><noinclude>
+
<includeonly><h2 style="background:#b61f1f; border:none; margin:0; padding:5px; font:normal 18px 'Trebuchet MS', Trebuchet, Tahoma, Verdana, sans-serif; color:#fff; text-align:center;">{{{1}}}{{#if: {{{2|}}} | [[Image:{{{2}}}|right|48px|link=]]}}</h2></includeonly><noinclude>
 
{{/doc}}
 
{{/doc}}
  
[[Category:Formatting templates|F]]</noinclude>
+
[[Category:Formatting templates|M]]</noinclude>

Latest revision as of 22:16, 4 April 2011

Template-info.png Documentation

This template is for the colored second headings on the Main Page, but it can be used elsewhere.

Usage

This template has one required parameter and a second optional parameter.

Examples

{{Mainpage H2|This is a Heading}}
Will Output:

This is a Heading

{{Mainpage H2|This is a Heading|Cub Nala Clipart.png}}
Will Output:

This is a Heading
Cub Nala Clipart.png

The above documentation is transcluded from Template:Mainpage H2/doc. (edit | history)