Template:Header: Difference between revisions
(Initial draft of a template version of MalonyJenkins' header code. Will need to create a second template to complete auto background color, tomorrowish.) |
(Background color now selectable. Template features auto-categorization, can be suppressed by using autocat=false, page version box can also be suppressed with showver=false. Not 'finished' yet but is usable, will work on doc after completion.) |
||
Line 1: | Line 1: | ||
<div align="center"><div style="text-align:center;background:#cc6666;width:30%;font-weight:bold;padding:5px>Template is not finished and | <noinclude><div align="center"><div style="text-align:center;background:#cc6666;width:30%;font-weight:bold;padding:5px>Template is not finished and may not be in a usable state.<br/>Please don't use until this warning is removed.</div></div> | ||
</noinclude> | |||
<div class="header" style="margin: 5px; align: right; background: #{{hc|{{{type|}}}}}; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #{{hc|{{{type|}}}|border}}"><!-- Code for Background Colour --> | |||
{{#if: {{{showver|}}}||<div style="float: right;background: #{{hc|{{{type|}}}}};border: 1px solid #{{hc|{{{type|}}}|border}}; margin: -30pt -10.5pt"> '''Page Updated @ {{{version|Unknown Version}}}''' </div>}}<!-- Code for Version Tag at top --> | |||
<div style="float: left;background: #{{hc|{{{type|}}}}};border: 1px solid #{{hc|{{{type|}}}|border}}; margin: -30pt -10.5pt"> '''Navigation''' - [[:Category:Main|Main Index]] -> {{#if:{{{1|}}}|[[:Category:{{{1}}}{{!}}{{{1}}}]] ->|}} {{#if:{{{2|}}}|[[:Category:{{{2}}}{{!}}{{{2}}}]] ->|}} {{#if:{{{3|}}}|[[:Category:{{{3}}}{{!}}{{{3}}}]] ->|}} {{#if:{{{4|}}}|[[:Category:{{{4}}}{{!}}{{{4}}}]] ->|}} {{#if:{{{5|}}}|[[:Category:{{{5}}}{{!}}{{{5}}}]] ->|}} {{#if:{{{6|}}}|[[:Category:{{{6}}}{{!}}{{{6}}}]] ->|}} [[{{PAGENAME}}]] </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space --> | |||
< | <includeonly>{{#if: {{{autocat|}}}| | | ||
[[Category:{{{version|Unknown Version}}}]] | [[Category:{{{version|Unknown Version}}}]] | ||
{{#if:{{{2|}}}|[[Category:{{{2}}}]]|}} | {{#if:{{{2|}}}|[[Category:{{{2}}}]]|}} | ||
Line 11: | Line 11: | ||
{{#if:{{{4|}}}|[[Category:{{{4}}}]]|}} | {{#if:{{{4|}}}|[[Category:{{{4}}}]]|}} | ||
{{#if:{{{5|}}}|[[Category:{{{5}}}]]|}} | {{#if:{{{5|}}}|[[Category:{{{5}}}]]|}} | ||
{{#if:{{{6|}}}|[[Category:{{{6}}}]]|}} | {{#if:{{{6|}}}|[[Category:{{{6}}}]]|}}}} | ||
</includeonly> | </includeonly> |
Revision as of 04:53, 4 February 2017
Template is not finished and may not be in a usable state.
Please don't use until this warning is removed.
Please don't use until this warning is removed.