Tag: Undo |
m (attempt 2) |
||
Line 1: | Line 1: | ||
<includeonly>{{#tag:{{#if:{{{tag|}}}|{{{tag}}}|h2}}|{{{1|{{{title|Section Title}}}}}} | <includeonly>{{#tag:{{#if:{{{tag|}}}|{{{tag}}}|h2}}|{{{1|{{{title|Section Title}}}}}} | ||
|class="front-page-heading front-page-heading__text"|style="{{#if: {{{bgcolor|}}} | background:{{{bgcolor|}}};}} {{#if: {{{bordercolor|}}} | border-color:{{{bordercolor|}}};}} {{#if: {{{color|}}} | color:{{{color|}}};}} text-align:center; box-sizing: border-box; font-weight:bold; padding:1px; width:100%;"}}</includeonly><!-- | |class="front-page-heading front-page-heading__text"|style="{{#if: {{{bgcolor|}}} | background:{{{bgcolor|}}};}} {{#if: {{{bordercolor|}}} | border-color:{{{bordercolor|}}};}} {{#if: {{{color|}}} | color:{{{color|}}};}} text-align:center; box-sizing: border-box; font-weight:bold; padding:1px; width:100%; border: 5px solid var(--footer-text) !important;"}}</includeonly><!-- | ||
--><noinclude>{{documentation}} | --><noinclude>{{documentation}} | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Revision as of 22:35, 7 July 2024
Documentation (for the above template, sometimes hidden or invisible)
This is a basic template to make a fancy section title for e.g. a wiki landing page or portal.
- Syntax
{{PortalHeading |title= |color= |bgcolor= |bordercolor= |tag= }}
- title
- Header text.
- bgcolor
- Background color; default
#EAD5ED
- color
- Title text and border color; default
#1A1A1A
- bordercolor
- Color to make the box border; default
#1A1A1A
- tag
- Heading tag; default
h2
Visit Template:PortalHeading/doc to edit this text! (How does this work?)