Template:Label: Difference between revisions

Jump to navigation Jump to search
Added Template:Documentation, deleted informational text (to be included on the new documentation sub-page).
(Use color templates.)
(Added Template:Documentation, deleted informational text (to be included on the new documentation sub-page).)
Line 1: Line 1:
<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>}}
<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><noinclude>
 
{{documentation}}
<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. This is optional.
 
<pre>
{{icon=Link_to_icon.png}}
</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>
3,860

edits

Navigation menu