Template:Label: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:
</pre>
</pre>


;Icon :If you wish to add an icon to the label
;Icon :If you wish to add an icon to the label. This is optional.


<pre>
<pre>
{{icon=Link_to_icom.png}}
{{icon=Link_to_icon.png}}
</pre>
</pre>


With all three parameters the format looks like this
<pre>
{{label=Label for a type of page.|description=More info|icon=Link_to_icon.png}}
</pre>
</noinclude>
</noinclude>

Revision as of 15:33, 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. 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}}