Template:Label: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
<div class="label plainlinks" style="width: 80%; margin: auto; border: 1px solid; padding: 1em; border-color: #999999; background-color: #EEEEEE;">{{#if:{{{icon|}}}|<div style="float: left;">[[File:{{{icon}}}]]</div>}}<strong>{{{label}}}</strong>{{#if:{{{description|}}}|<br />{{{description}}}}}</div>
<div class="label plainlinks" style="width: 90%; margin: auto; border: .5em solid; padding: 1em; border-color: #C13832; background-color: #EEEEEE;">{{#if:{{{icon|}}}|<div style="float: left;">[[File:{{{icon}}}]]</div>}}
 
'''{{{label}}}'''
{{#if:{{{description|}}}|<br />{{{description}}}}}</div>
 
<noinclude>
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.
 
<pre>
{{label=Label for a type of page.}}
</pre>
 
;Description :Here you can add more information about the label.
 
<pre>
{{description=A little bit more information for this type of page.}}
</pre>
 
;Icon :If you wish to add an icon to the label
 
<pre>
{{icon=Link_to_icom.png}}
</pre>
 
</noinclude>

Revision as of 15:25, 8 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
{{icon=Link_to_icom.png}}