Difference between revisions of "Template:Ambox"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(swap {{{issue}}} and {{{text}}} to make non-included template clearer)
m (alternative class= names)
Line 5: Line 5:
 
  |imageright = {{{imageright|}}}
 
  |imageright = {{{imageright|}}}
 
  |smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
 
  |smallimageright = {{#if:{{{smallimageright|}}}|{{{smallimageright}}}|{{{imageright|}}}}}
  |class = ambox-{{#switch:{{{type|}}}
+
  |class = ambox-{{#switch:{{lc:{{{type|}}}}}
   |speedy = speedy
+
   |speedy|xred = speedy
   |delete = delete
+
   |delete|red = delete
   |content = content
+
   |content|orange|warn|warning = content
   |style = style
+
   |style|yellow = style
   |move = move
+
   |move|purple = move
   |protection = protection
+
   |protection|grey = protection
   |notice|#default = notice
+
   |notice|blue|#default = notice
 
  }} {{{class|}}}
 
  }} {{{class|}}}
 
  |style = {{{style|}}}
 
  |style = {{{style|}}}

Revision as of 00:37, 6 December 2013