Difference between revisions of "Template:Colorbox"

From Earlham CS Department
Jump to navigation Jump to search
(Created page with "<div style="background-color:{{{color|#000}}};border:1px solid {{{border|#888}}};border-left-width:5px;font-style:italic;text-align:left; padding:{{{padding|1em}}} {{{padding|...")
 
Line 1: Line 1:
<div style="background-color:{{{color|#000}}};border:1px solid {{{border|#888}}};border-left-width:5px;font-style:italic;text-align:left; padding:{{{padding|1em}}} {{{padding|1em}}} {{{padding|1em}}} 1em; overflow:hidden;color:{{{text|#fff}}}">{{{1}}}</div><noinclude>
+
<span style="color:{{{1|black}}}; font-size:{{{size|100}}}%; line-height:initial;">{{#if:{{{2|}}}|{{#if:{{{3|}}}|[[{{{3}}}|{{#switch:{{lc:{{{2}}}}}
 +
  | c|circle|r|round = ?
 +
  | d|diamond = ?
 +
  | tu|up|uptriangle = ?
 +
  | td|dn|downtriangle = ?
 +
  | tl|lt|lefttriangle = ?
 +
  | tr|rt|righttriangle = ?
 +
  | #default = ?
 +
}}]]|{{#switch:{{lc:{{{2}}}}}
 +
  | c|circle|r|round = ?
 +
  | d|diamond = ?
 +
  | tu|up|uptriangle = ?
 +
  | td|dn|downtriangle = ?
 +
  | tl|lt|lefttriangle = ?
 +
  | tr|rt|righttriangle = ?
 +
  | #default = ?
 +
}}}}|?}}</span>

Revision as of 13:36, 16 December 2015

{{#if:|{{#if:|[[{{{3}}}|{{#switch:{{{2}}}

 | c|circle|r|round = ?
 | d|diamond = ?
 | tu|up|uptriangle = ?
 | td|dn|downtriangle = ?
 | tl|lt|lefttriangle = ?
 | tr|rt|righttriangle = ?
 | #default = ?

}}]]|{{#switch:{{{2}}}

 | c|circle|r|round = ?
 | d|diamond = ?
 | tu|up|uptriangle = ?
 | td|dn|downtriangle = ?
 | tl|lt|lefttriangle = ?
 | tr|rt|righttriangle = ?
 | #default = ?

}}}}|?}}