Template:MP Heading: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia (historical)
(Created page with "{| style="width: 100%; border-spacing: 0 8px; margin: 0;" cellpadding="8" |- | style="border: 1px solid #aaaaaa;" | <onlyinclude><h2 style="padding:0.2em 8px; margin:-8px -8px 8p...")
 
m (simplify style)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="width: 100%; border-spacing: 0 8px; margin: 0;" cellpadding="8"
<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: inherit; font-weight: bold; {{#switch: {{{style|}}}
| style="border: 1px solid #aaaaaa;" |
|alert=background-color: #FF2400; color: #ffffff;
<onlyinclude><h2 style="padding:0.2em 8px; margin:-8px -8px 8px -8px; background-color: #283c71; color:#ffffff; font-size:100%; font-weight:bold; text-align:left;">{{{1|Heading}}}</h2></onlyinclude>
|#default=background-color: #283c71; color: #ffffff;
}}">{{{1|Heading}}}</h2></onlyinclude>
Text text text. Text text text. Text text text. Text text text.
Text text text. Text text text. Text text text. Text text text.
|}
</div>
{{documentation}}
{{documentation}}

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}}