Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Header: Difference between revisions

Template page
No edit summary
No edit summary
 
Line 1: Line 1:
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
<div style="box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;">
<div style="background: {{{PrimaryColor}}}; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><center>{{#if:{{{Image|}}}|[[File:{{{Image}}}|64px|left]][[File:{{{Image}}}|64px|right]]|}}{{{HeaderContent}}}</center></div>
<div style="background: {{{PrimaryColor}}}; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><center>{{#if:{{{Image|}}}|[[File:{{{Image}}}|64px|left]][[File:{{{Image}}}|64px|right]]|}}{{{HeaderContent}}}</center></div>
{{#if:{{{SubContent|}}}|<div style="padding: 1em; background:{{{SecondaryColor|#999999}}}"><center>{{{SubContent}}}</center></div>|}}
{{#if:{{{SubContent|}}}|<div style="padding: 1em; background:{{{SecondaryColor}}}"><center>{{{SubContent}}}</center></div>|}}
</div><includeonly>{{#if:{{{NoCategory|}}}||{{#if:{{{Category1|}}}|[[Category:{{{Category1}}}]]|}}{{#if:{{{Category2|}}}|[[Category:{{{Category2}}}]]|}}}}</includeonly><noinclude>
</div><includeonly>{{#if:{{{NoCategory|}}}||{{#if:{{{Category1|}}}|[[Category:{{{Category1}}}]]|}}{{#if:{{{Category2|}}}|[[Category:{{{Category2}}}]]|}}}}</includeonly><noinclude>



Latest revision as of 04:24, 9 September 2023

{{{HeaderContent}}}

Example Usage

{{Header
 |PrimaryColor = #C90000
 |SecondaryColor = #C900004e
 |HeaderContent = Test Maintenance Category
 |Image = Burger.png
 |SubContent = Test Template Sub Text
 |Category1 = Wip
 |Category2 = Slated for removal
 |NoCategory = True  //Useful for displaying an example of a template without applying the categories to the page (Leave blank/do not declare this variable if you want it to be false)
}}
Test Maintenance Category
Test Template Sub Text