Template:MP Heading: Difference between revisions
Jump to navigation
Jump to search
imported>Sekoia (historical) (added style= option) |
m (simplify style) |
||
(One intermediate revision by the same user not shown) | |||
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;"> | |||
<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;" | |||
<onlyinclude><h2 style="padding: 0.2em | |||
|alert=background-color: #FF2400; color: #ffffff; | |alert=background-color: #FF2400; color: #ffffff; | ||
|#default=background-color: #283c71; color: #ffffff; | |#default=background-color: #283c71; color: #ffffff; | ||
}}">{{{1|Heading}}}</h2></onlyinclude> | }}">{{{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] [ ] 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}}