Difference between revisions of "Template:Announce"
From Geohashing
imported>Tjtrumpet2323 m |
imported>Tjtrumpet2323 m (→Usage notes) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <div style='font-size:90%; margin:2px 10% 2px; padding: 2px; border: 1px solid #f66; background: #fdd;'> | + | <includeonly><div style='font-size:90%; margin:2px 10% 2px; padding: 2px; |
− | + | {{#switch:{{{2|{{{bg}}}}}} | |
− | </div><noinclude> | + | | black= border: 1px solid #000; background: #eee; |
+ | | blue= border: 1px solid #99f; background: #ddf; | ||
+ | | green= border: 1px solid #3c3; background: #dfd; | ||
+ | | yellow= border: 1px solid #cc0; background: #ffc; | ||
+ | | orange= border: 1px solid #d90; background: #fda; | ||
+ | | border: 1px solid #f66; background: #fdd; | ||
+ | }} '> {{{1|{{{text}}}}}} </div></includeonly><noinclude> | ||
+ | |||
+ | <nowiki>{{announce|This is a critical alert!|bg=colour}}</nowiki> | ||
+ | * For use in alerting people to something important. | ||
+ | |||
+ | == Usage notes == | ||
+ | * The background colour (<code>bg</code>) may be any of 'red/orange/yellow/green/blue/black', or may be omitted (in which case it defaults to red). | ||
+ | |||
+ | == Examples == | ||
+ | {{Template:Announce/example}} | ||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 13:29, 30 September 2008
{{announce|This is a critical alert!|bg=colour}}
- For use in alerting people to something important.
Usage notes
- The background colour (
bg
) may be any of 'red/orange/yellow/green/blue/black', or may be omitted (in which case it defaults to red).
Examples
{{Announce|this is a '''black''' announcement|bg=black}}
this is a black announcement
{{Announce|this is a '''blue''' announcement|bg=blue}}
this is a blue announcement
etc...
this is a green announcement
this is a yellow announcement
this is a orange announcement
this is a red announcement
{{Announce|this is a default announcement}}
this is a default announcement