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

From Geohashing
imported>Nemo
imported>Nemo
(changed about)
Line 1: Line 1:
 
<includeonly><div style='font-size:90%; margin:2px 10% 2px; padding: 2px;
 
<includeonly><div style='font-size:90%; margin:2px 10% 2px; padding: 2px;
{{#switch:{{{1}}}
+
{{#switch:{{{2|{{{bg}}}}}}
| red= border: 1px solid #f66; background: #fdd;'>
+
| black= border: 1px solid #000; background: #eee;
| orange= border: 1px solid #d90; background: #fda'>
+
| blue= border: 1px solid #99f; background: #ddf;
| yellow= border: 1px solid #cc0; background: #ffc'>
+
| green= border: 1px solid #3c3; background: #dfd;
| green= border: 1px solid #3c3; background: #dfd'>
+
| yellow= border: 1px solid #cc0; background: #ffc;
| blue= border: 1px solid #99f; background: #ddf'>
+
| orange= border: 1px solid #d90; background: #fda;
| border: 1px solid #999; background: #eee'>
+
| border: 1px solid #f66; background: #fdd;
}} {{{1|{{{text}}}}}} </div></includeonly><noinclude>
+
}} '> {{{1|{{{text}}}}}} </div></includeonly><noinclude>
 
A template for announcements of different colours...
 
A template for announcements of different colours...
  
{{User:Nemo/sandbox/templateannounce|red|this is a red announcement}}
+
{{User:Nemo/sandbox/templateannounce|this is a black announcement|bg=black}}
{{User:Nemo/sandbox/templateannounce|orange|this is a orange announcement}}
+
{{User:Nemo/sandbox/templateannounce|this is a blue announcement|blue}}
{{User:Nemo/sandbox/templateannounce|yellow|this is a yellow announcement}}
+
{{User:Nemo/sandbox/templateannounce|this is a green announcement|bg=green}}
{{User:Nemo/sandbox/templateannounce|green|this is a greed announcement}}
+
{{User:Nemo/sandbox/templateannounce|this is a yellow announcement|yellow}}
{{User:Nemo/sandbox/templateannounce|blue|this is a blue announcement}}
+
{{User:Nemo/sandbox/templateannounce|this is a orange announcement|bg=orange}}
{{User:Nemo/sandbox/templateannounce|this is an uncoloured announcement}}
+
{{User:Nemo/sandbox/templateannounce|this is a red announcement|red}}
 +
{{User:Nemo/sandbox/templateannounce|this is a green 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.
 +
 +
Alignment for [[Template:Expedition Images]] and [[Implementations]] pages which also have announce-like colour blocks. Note that this should all be in discussion ;)
 +
 +
Why am I not doing the rest?
 +
[a] apathy
 +
[b] not convinced it SHOULD be done
 +
[c] PROFIT! (no, doesn't really work does it?) :)
 +
 +
--Nemo
 +
 +
-->
 
</noinclude>
 
</noinclude>

Revision as of 10:50, 5 July 2008

A template for announcements of different colours...

this is a black announcement
this is a blue announcement
this is a green announcement
this is a yellow announcement
this is a orange announcement
this is a red announcement
this is a green announcement