Difference between revisions of "Template:Header"
Jump to navigation
Jump to search
{{{HeaderContent}}}
Sirryan2002 (talk | contribs) (Created page with "<div style="background-color: white; box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;"> <div style="background: {{{PrimaryColor|#7F7F7F}}}; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><center>{{#if:{{{Image|}}}|[[File:{{{Image}}}|left]]|}}{{{HeaderContent}}}{{#if:{{{Image|}}}|[[File:{{{Image}}}|right]]|}}</center></div> {{#if:{{{SubContent|}}}|<div style="padding: 1em; background:{{{SecondaryColor|#999999}}}"><center>{{{S...") |
Sirryan2002 (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="background-color: white; box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;"> | <div style="background-color: white; box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 1em 0; padding: 1px;"> | ||
<div style="background: {{{PrimaryColor|#7F7F7F}}}; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><center>{{#if:{{{Image|}}}|[[File:{{{Image}}}|left]] | <div style="background: {{{PrimaryColor|#7F7F7F}}}; border-radius: .2em; color: #FFF; padding: .4em .8em .5em;"><center>{{#if:{{{Image|}}}|[[File:{{{Image}}}|left]][[File:{{{Image}}}|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|#999999}}}"><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> | ||
Line 14: | Line 14: | ||
|Category1 = Wip | |Category1 = Wip | ||
|Category2 = Slated for removal | |Category2 = Slated for removal | ||
|NoCategory = True //Useful for displaying an example of a template without applying the categories to the page | |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) | ||
}} | }} | ||
</pre> | </pre> |
Latest revision as of 22:16, 16 May 2022
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) }}