More actions
No edit summary Tag: Reverted |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Template:Maintenance/styles.css" /> | |||
<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> | |||
<includeonly> | <includeonly> | ||
{{{category|}}} | |||
</includeonly> | |||
<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 | {{Maintenance | ||
| label = Incomplete | |||
| content = This article is under construction. | |||
| color = yellow | | color = yellow | ||
| icon = Material icon - Construction.svg | | icon = Material icon - Construction.svg | ||
| category = [[Category:Under Construction]] | |||
| category = [[Category: | |||
}} | }} | ||
</ | </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]] }}