×
Create a new article
Write your page title here:
We currently have 3,036 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,036Articles

Template:PortalHeading: Difference between revisions

(Created page with "<{{#if:{{{tag|}}}|{{{tag}}}|h2}} style="background:{{#if:{{{bgcolor|}}}|{{{bgcolor}}}|#EAD5ED}}; text-align:center; border:5px solid {{#if:{{{color|}}}|{{{color}}}|#1A1A1A}};...")
 
mNo edit summary
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<{{#if:{{{tag|}}}|{{{tag}}}|h2}} style="background:{{#if:{{{bgcolor|}}}|{{{bgcolor}}}|#EAD5ED}}; text-align:center; border:5px solid {{#if:{{{color|}}}|{{{color}}}|#1A1A1A}}; color:{{#if:{{{color|}}}|{{{color}}}|#1A1A1A}}; box-sizing: border-box; font-weight:bold; padding:1px; width:100%;">{{{title|Section Title}}}</{{#if:{{{tag|}}}|{{{tag}}}|h2}}>
<includeonly>{{#tag:{{#if:{{{tag|}}}|{{{tag}}}|h2}}|{{{1|{{{title|Section Title}}}}}}
<noinclude>{{Documentation}}</noinclude>
|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-bottom-width: 5px;"}}</includeonly><!--
--><noinclude>{{documentation}}
[[Category:Formatting templates]]
</noinclude>

Latest revision as of 10:42, 6 September 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