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



YumeWiki
3,065Articles

Template:PortalHeading: Difference between revisions

(automatically use namespace-specific colours if left unspecified. also title can be first anon param)
(remove includeonly tags)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<{{#if:{{{tag|}}}|{{{tag}}}|h2}} style="
{{#tag:{{#if:{{{tag|}}}|{{{tag}}}|h2}}|{{{1|{{{title|Section Title}}}}}}
background:{{#if: {{{bgcolor|}}}
|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;"}}<noinclude>
<!--    -->|      {{{bgcolor}}}
{{documentation}}
<!--    -->| {{#switch: {{NAMESPACENUMBER}}
<!--      -->|3000|3001=#320F13
<!--       -->|3002|3003=#43353A
<!--      -->|3004|3005=#111111
<!--      -->|3006|3007=#000000
<!--      -->|3008|3009=#423341
<!--      -->|3010|3011=#000000
<!--      -->|3012|3013=#5C462A
<!--      -->|3014|3015=#6F027C
<!--      -->|3016|3017=#180C29
<!--      -->|3018|3019=#161124
<!--      -->|3020|3021=#AC2847
<!--      -->|3022|3023=#000000
<!--      -->|3026|3027=#000000
<!--      -->|3028|3029=#2E3131
<!--      -->|3030|3031=#291F37
<!--      -->|3032|3033=#797CD9
<!--      -->|3034|3035=#210F1A
<!--      -->|3036|3037=#000000
<!--      -->|3038|3039=#1F303D
<!--      -->|3040|3041=#A5A9FC
<!--      -->|#510B17
<!--        -->}}
<!--    -->}};
border:5px solid {{#if: {{{bordercolor|}}}  
<!--          -->|     {{{bordercolor}}}
<!--          -->|  {{#if: {{{color|}}}  
<!--            -->|      {{{color}}}
<!--            -->|  {{#switch: {{NAMESPACENUMBER}}
<!--                -->|3000|3001=#B393A3
<!--                -->|3002|3003=#59474E
<!--                -->|3004|3005=#BDBDBD
<!--                -->|3006|3007=#178152
<!--                -->|3008|3009=#939393
<!--                -->|3010|3011=#009966
<!--                -->|3012|3013=#C2BA4C
<!--                -->|3014|3015=#49007C
<!--                -->|3016|3017=#E8D4B1
<!--                -->|3018|3019=#69A6CA
<!--                -->|3020|3021=#FA6E79
<!--                -->|3022|3023=#FF14C0
<!--                -->|3026|3027=#F7E7AD
<!--                -->|3028|3029=#7C878A
<!--                -->|3030|3031=#5334BA
<!--                -->|3032|3033=#FFFFFF
<!--                -->|3034|3035=#AD8B72
<!--                -->|3036|3037=#FF3E56
<!--                -->|3038|3039=#7E7D78
<!--                -->|3040|3041=#8080FF
<!--                -->|#8C516B
<!--                -->}}
<!--            -->}}
<!--          -->}};
color: {{#if: {{{color|}}}  
<!---->|     {{{color}}}
<!---->| {{#switch: {{NAMESPACENUMBER}}
<!--  -->|3000|3001=#B393A3
<!--  -->|3002|3003=#59474E
<!--  -->|3004|3005=#BDBDBD
<!--  -->|3006|3007=#B1E4BF
<!--  -->|3008|3009=#A793A5
<!--  -->|3010|3011=#009966
<!--  -->|3012|3013=#C2BA4C
<!--  -->|3014|3015=#FFFFFF
<!--  -->|3016|3017=#E8D4B1
<!--  -->|3018|3019=#FFFFFF
<!--  -->|3020|3021=#FFD1D5
<!--  -->|3022|3023=#FF14C0
<!--  -->|3026|3027=#D6B6B5
<!--  -->|3028|3029=#7C878A
<!--  -->|3030|3031=#5334BA
<!--  -->|3032|3033=#FFFFFF
<!--  -->|3034|3035=#FFE7AD
<!--  -->|3036|3037=#FFFFFF
<!--  -->|3038|3039=#33FF00
<!--  -->|3040|3041=#EBEBEB
<!--  -->|#B582BD
<!--  -->}}
<!---->}};
text-align:center; box-sizing: border-box; font-weight:bold; padding:1px; width:100%;">{{{1|{{{title|Section Title}}}}}}</{{#if:{{{tag|}}}|{{{tag}}}|h2}}><!--
--><noinclude>
{{Documentation}}
[[Category:Formatting templates]]
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Latest revision as of 15:24, 13 December 2024

Section Title

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