Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

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

From EVE University Wiki
Created page with "<noinclude> Simple Box used in other Templates '''Parameters''' #. ''background'' = background colour in Hex #. ''color'' = Text Colour #. ''border'' = css border property #..."
 
Rayanth (talk | contribs)
m Rayanth moved page User:Krevlorn severasse/template/box to User:Krevlorn Severasse/template/box: Automatically moved page while merging the account "Krevlorn severasse" to "Krevlorn Severasse"
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Simple Box used in other Templates
Box with preset themes.


'''Parameters'''
==Parameters==


#. ''background'' = background colour in Hex
#. ''background'' = background colour in Hex
Line 9: Line 9:
#. ''width''  = box width  
#. ''width''  = box width  
#. ''imagewidth'' = picture width for left hand box
#. ''imagewidth'' = picture width for left hand box
#. param 1 = content for left hand box
#. ''style'' = preset styles
#. param 2 = content for heading
## info = black
#. param 3 = content for body
## boldinfo = blue
## warning = red
#. ''image'' = content for left hand box
#. ''header'' = content for heading
#. ''text'' = content for body
 
Themes can be added with
<nowiki>{{#switch: {{{style}}} | info = result | boldinfo = result | warning = result| #default = result}}</nowiki>


</noinclude>
</noinclude>
<table style="background: {{{background|#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 = #214768 | 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>
==Demo==
===Styles===
{{User:Krevlorn_severasse/template/box|style=warning|header=Warning box|text=This is a warning box created by setting style to warning.}}
{{User:Krevlorn_severasse/template/box|style=boldinfo|header=Strong info|text=This is a noticeable created by setting style to boldinfo}}
{{User:Krevlorn_severasse/template/box|style=info|header=Info|text=This is an info box created by setting style to info}}
{{User:Krevlorn_severasse/template/box|header=Basic|text=This is a default box, no theme has been set}}
===Custom===
{{User:Krevlorn_severasse/template/box|style=warning|header=Look out!|text=Don't trust that guy|image=[[image:TitusTallang.jpg|96px]]}}
</noinlcude

Latest revision as of 02:40, 20 November 2019

Box with preset themes.

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

Themes can be added with

{{#switch: {{{style}}} | info = result | boldinfo = result | warning = result| #default = result}}


{{{header}}}
{{{text}}}


Demo

Styles

User:Krevlorn severasse/template/box User:Krevlorn severasse/template/box User:Krevlorn severasse/template/box User:Krevlorn severasse/template/box

Custom

User:Krevlorn severasse/template/box </noinlcude