More actions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
< | <templatestyles src="Template:Maintenance/styles.css" /> | ||
<div class=" | |||
<div class="maintenance-template {{#if:{{{color|}}}|maintenance-template--{{{color}}}}}"> | |||
<div class="maintenance-header"> | |||
{{#if:{{{icon|}}}|<div class="maintenance-icon">[[File:{{{icon}}}|24px|link=]]</div>}} | |||
<div class="maintenance-title">{{{label}}}</div> | |||
</div> | |||
<div class="maintenance-body"> | |||
{{{content}}} | |||
</div> | |||
</div> | </div> | ||
<includeonly> | <includeonly> | ||
{{{category|}}} | {{{category|}}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{ | == Documentation == | ||
This template is used to display a maintenance message with a customizable label, icon, and content. | |||
=== Parameters === | |||
* `label` - The title or label for the maintenance message. | |||
* `content` - The main text of the message. | |||
* `color` - Optional. Adds a color theme (e.g., `yellow`, `red`, `green`). | |||
* `icon` - Optional. Specifies the file name of an icon to display. | |||
* `category` - Optional. Adds a category to the page. | |||
=== Usage === | |||
<pre> | |||
{{Maintenance | |||
| label = Incomplete | |||
| content = This article is under construction. | |||
| color = yellow | |||
| icon = Material icon - Construction.svg | |||
| category = [[Category:Under Construction]] | |||
}} | |||
</pre> | |||
</noinclude> | </noinclude> |
Latest revision as of 03:17, 14 December 2024
<templatestyles src="Template:Maintenance/styles.css" />
{{#if:|
}}
{{{label}}}
{{{content}}}
Documentation[edit source]
This template is used to display a maintenance message with a customizable label, icon, and content.
Parameters[edit source]
- `label` - The title or label for the maintenance message.
- `content` - The main text of the message.
- `color` - Optional. Adds a color theme (e.g., `yellow`, `red`, `green`).
- `icon` - Optional. Specifies the file name of an icon to display.
- `category` - Optional. Adds a category to the page.
Usage[edit source]
{{Maintenance | label = Incomplete | content = This article is under construction. | color = yellow | icon = Material icon - Construction.svg | category = [[Category:Under Construction]] }}