Difference between revisions of "User:Krevlorn Severasse/template/box"

From EVE University Wiki
Jump to: navigation, search
Line 13: Line 13:
 
## boldinfo = blue
 
## boldinfo = blue
 
## warning = red
 
## warning = red
#. param 1 = content for left hand box
+
#. ''image'' = content for left hand box
#. param 2 = content for heading
+
#. ''header'' = content for heading
#. param 3 = content for body
+
#. ''text'' = content for body
  
 
{{#switch: {{{style}}} | info = result | boldinfo = result | warning = result| #default = #000000}}
 
{{#switch: {{{style}}} | info = result | boldinfo = result | warning = result| #default = #000000}}
Line 21: Line 21:
  
 
</noinclude>
 
</noinclude>
<table style="background: {{{background|{{#switch: {{{style}}} | info = #301400 | boldinfo = result | warning = #910b0b| #default = #000000}}}}}; color: {{{color|#ffffff}}}; border: {{{border|1px solid #582806}}}; border-radius: 4px; padding: 8px 35px 8px 14px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: center; margin-bottom: 1em" width="{{{width|100%}}}"><tr><td width="{{{imagewidth|60px}}}">{{{1|[[image:E-UNI_Emblem.png|96px|link=https://wiki.eveuniversity.org]]|}}}</td><td>
+
<table style="background: {{{background|{{#switch: {{{style}}} | info = #301400 | boldinfo = result | warning = #910b0b| #default = #000000}}}}}; color: {{{color|#ffffff}}}; border: {{{border|1px solid #582806}}}; border-radius: 4px; padding: 8px 35px 8px 14px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; text-align: center; margin-bottom: 1em" width="{{{width|100%}}}"><tr><td width="{{{imagewidth|60px}}}">{{{image|[[image:E-UNI_Emblem.png|96px|link=https://wiki.eveuniversity.org]]|}}}</td><td>
<div style="margin-bottom: 0.3em;"><strong>{{{2}}}</strong></div>
+
<div style="margin-bottom: 0.3em;"><strong>{{{header}}}</strong></div>
<div style="margin: 0 auto; max-width: 800px">{{{3}}}</div>
+
<div style="margin: 0 auto; max-width: 800px">{{{text}}}</div>
 
</td></tr></table>
 
</td></tr></table>
  
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Revision as of 16:29, 24 February 2017

Simple Box used in other Templates

Parameters

  1. . background = background colour in Hex
  2. . color = Text Colour
  3. . border = css border property
  4. . width = box width
  5. . imagewidth = picture width for left hand box
  6. . style = preset styles
    1. info = black
    2. boldinfo = blue
    3. warning = red
  7. . image = content for left hand box
  8. . header = content for heading
  9. . text = content for body
  1. 000000


E-UNI Emblem.png
{{{header}}}
{{{text}}}