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:{{{ | + | {{#switch:{{{2|{{{bg}}}}}} |
− | | | + | | 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 # | + | | 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| | + | {{User:Nemo/sandbox/templateannounce|this is a black announcement|bg=black}} |
− | {{User:Nemo/sandbox/templateannounce | + | {{User:Nemo/sandbox/templateannounce|this is a blue announcement|blue}} |
− | {{User:Nemo/sandbox/templateannounce | + | {{User:Nemo/sandbox/templateannounce|this is a green announcement|bg=green}} |
− | {{User:Nemo/sandbox/templateannounce | + | {{User:Nemo/sandbox/templateannounce|this is a yellow announcement|yellow}} |
− | {{User:Nemo/sandbox/templateannounce | + | {{User:Nemo/sandbox/templateannounce|this is a orange announcement|bg=orange}} |
− | {{User:Nemo/sandbox/templateannounce|this is | + | {{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