Template:Label: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
(Use color templates.)
Line 1: Line 1:
<div class="label plainlinks" style="width: 90%; margin: auto; text-align: center; border: .5em solid; padding: 1em; border-color: #C13832; background-color: #EEEEEE;">{{#if:{{{icon|}}}|<div style="float: left;">[[File:{{{icon}}}]]</div>}}
<div class="label plainlinks" style="width: 90%; margin: auto; text-align: center; border: .5em solid; padding: 1em; border-color: {{Mozilla color/red}}; background-color: {{Mozilla color/sand}};">{{#if:{{{icon|}}}|<div style="float: left;">[[File:{{{icon}}}]]</div>}}


'''{{{label}}}'''{{#if:{{{description|}}}|<br />{{{description}}}}}</div>
'''{{{label}}}'''{{#if:{{{description|}}}|<br />{{{description}}}}}</div>

Revision as of 22:15, 12 August 2014


The Label Template is the basic alert template. It takes at least one and up to three parameters.

Label
This is the first parameter. This defines the label.
{{label=Label for a type of page.}}
Description
Here you can add more information about the label.
{{description=A little bit more information for this type of page.}}
Icon
If you wish to add an icon to the label. This is optional.
{{icon=Link_to_icon.png}}

With all three parameters the format looks like this

{{label=Label for a type of page.|description=More info|icon=Link_to_icon.png}}