Template:MP Heading: Difference between revisions
Jump to navigation
Jump to search
imported>Sekoia (added style= option) |
m (em sted px for layout) |
||
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: 100%; font-weight: bold; text-align: left; {{#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}} |
Revision as of 09:32, 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}}