Difference between revisions of "User:Nemo/sandbox/templateannounce"

From Geohashing
imported>Nemo
(changed about)
imported>Nemo
m
 
(5 intermediate revisions by the same user not shown)
Line 10: Line 10:
 
A template for announcements of different colours...
 
A template for announcements of different colours...
  
{{User:Nemo/sandbox/templateannounce|this is a black announcement|bg=black}}
+
 
{{User:Nemo/sandbox/templateannounce|this is a blue announcement|blue}}
+
== Usage ==
{{User:Nemo/sandbox/templateannounce|this is a green announcement|bg=green}}
+
<nowiki>{{announce|This is a critical alert!|bg=colour}}</nowiki>
{{User:Nemo/sandbox/templateannounce|this is a yellow announcement|yellow}}
+
* For use in alerting people to something critically important.
{{User:Nemo/sandbox/templateannounce|this is a orange announcement|bg=orange}}
+
* The '''bg''' colour may be 'red/orange/yellow/green/blue/black, or may be omitted in which case it defaults to red.
{{User:Nemo/sandbox/templateannounce|this is a red announcement|red}}
+
 
{{User:Nemo/sandbox/templateannounce|this is a green announcement}}
+
== Examples ==
 +
<nowiki>{{User:Nemo/sandbox/templateannounce|this is a '''black''' announcement|bg=black}}</nowiki>
 +
{{User:Nemo/sandbox/templateannounce|this is a '''black''' announcement|bg=black}}
 +
<nowiki>{{User:Nemo/sandbox/templateannounce|this is a '''blue''' announcement|bg=blue}}</nowiki>
 +
{{User:Nemo/sandbox/templateannounce|this is a '''blue''' announcement|bg=blue}}
 +
etc...
 +
{{User:Nemo/sandbox/templateannounce|this is a '''green''' announcement|bg=green}}
 +
{{User:Nemo/sandbox/templateannounce|this is a '''yellow''' announcement|bg=yellow}}
 +
{{User:Nemo/sandbox/templateannounce|this is a '''orange''' announcement|bg=orange}}
 +
{{User:Nemo/sandbox/templateannounce|this is a '''red''' announcement|bg=red}}
 +
<nowiki>{{User:Nemo/sandbox/templateannounce|this is a default announcement}}</nowiki>
 +
{{User:Nemo/sandbox/templateannounce|this is a default announcement}}
  
 
<!-- To future editors... I believe this templace can be extended to use param4|fg for text colour, and 5|align for alignment. However, it should default to the original (June2008) style - fill width centered red.  
 
<!-- To future editors... I believe this templace can be extended to use param4|fg for text colour, and 5|align for alignment. However, it should default to the original (June2008) style - fill width centered red.  

Latest revision as of 11:34, 5 July 2008

A template for announcements of different colours...


Usage

{{announce|This is a critical alert!|bg=colour}}
  • For use in alerting people to something critically important.
  • The bg colour may be 'red/orange/yellow/green/blue/black, or may be omitted in which case it defaults to red.

Examples

{{User:Nemo/sandbox/templateannounce|this is a '''black''' announcement|bg=black}}
this is a black announcement
{{User:Nemo/sandbox/templateannounce|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
{{User:Nemo/sandbox/templateannounce|this is a default announcement}}
this is a default announcement