Template:MP Heading: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
m (em sted px for layout)
m (simplify style)
 
Line 1: Line 1:
<div role="region" aria-labelledby="mp-heading-{{anchorencode:{{{1|Heading}}}}}" style="margin-top: 0.7em; border: 1px solid #aaaaaa; padding: 0.5em;">
<div role="region" aria-labelledby="mp-heading-{{anchorencode:{{{1|Heading}}}}}" style="margin-top: 0.7em; border: 1px solid #aaaaaa; padding: 0.5em;">
<onlyinclude><h2 id="mp-heading-{{anchorencode:{{{1|Heading}}}}}" style="padding: 0.2em 0.5em; margin: -0.5em -0.5em 0.5em; font-size: 100%; font-weight: bold; text-align: left; {{#switch: {{{style|}}}
<onlyinclude><h2 id="mp-heading-{{anchorencode:{{{1|Heading}}}}}" style="padding: 0.2em 0.5em; margin: -0.5em -0.5em 0.5em; font-size: inherit; font-weight: bold; {{#switch: {{{style|}}}
|alert=background-color: #FF2400; color: #ffffff;
|alert=background-color: #FF2400; color: #ffffff;
|#default=background-color: #283c71; color: #ffffff;
|#default=background-color: #283c71; color: #ffffff;

Latest revision as of 19:52, 15 April 2022

Heading

Text text text. Text text text. Text text text. Text text text.

[edit] [purge] Documentation

Usage

This is used to create heading lines on the Main Page. (Note that in the above example, only the "Heading" part is generated by this template.)

This accepts a single parameter, the heading text:

{{MP Heading|Heading Text}}