Template:Infobox: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
(from my own code on ActiveWiki)
 
m (comitting changes)
Line 1: Line 1:
<div style="{{Infobox css}}{{{css|}}}">
<div style="{{box-sizing}} clear: right; margin: 8px 0px 8px 8px; width: {{{width|300px}}}; background: white; float: right; {{{css|}}}">
   <div style="{{bg linear|top|100, 50%, 50%}} padding: 6px; font-weight: bold; text-align: center;font-size: 120%;">{{{title|{{BASEPAGENAME}}}}}</div>
   <div style="{{bg linearfade|color={{{color|204,100%,90%}}}}} padding: 8px; font-weight: bold; text-align: center; font-size: large;">{{{title|{{BASEPAGENAME}}}}}</div>
   <div style="text-align: center;">{{{imagearea|[[File:{{{image|Generic Image.png}}}|300px]]}}}</div>
   <div style="text-align: center; background: hsl({{{color|204,100%,90%}}});">{{{imagearea|[[File:{{{image|Generic Image.png}}}|300px]]}}}</div>
   {| cellspacing="0px" cellpadding="0px" style="width: 100%; border-collapse:collapse;"
   {| cellspacing="0px" cellpadding="0px" style="background: hsl({{{color|204,100%,90%}}}); width: 100%; border-collapse: collapse; border-radius: 0px 0px 16px 16px; padding-bottom: 16px;"
   {{{taglinearea|{{!}}+ style="padding: 4px; background: #D8E4FF;" {{!}}{{{tagline|''Tagline''}}} }}}
   {{{taglinearea|{{!}}+ style="padding: 4px; background: hsl({{{color|204,100%,90%}}});" {{!}}{{{tagline|''Tagline''}}} }}}
   {{{rows|
   {{{rows|
       {{Infobox row|alternate=|label=label|field=field}}
       {{Infobox row|alternate=|label=label|field=field}}

Revision as of 22:00, 26 August 2013

Infobox
Generic Image.png
Tagline
???

???

???

???

???

???

Footer

An improved infobox core template.

Usage

With automatic title and image

 {{Infobox
 |image=Blizzard.jpg
 |rows=
 {{Infobox row|alternate=|label=label|field={{{field1}}} }}
 {{Infobox row|label=label2|field=
   * Option 1
   * Option 2}}
 {{Infobox row|alternate=|label=label3|field={{{field3|default}}} }}
 }}

With custom title, tagline, image and footer

 {{Infobox
 |title=Title
 |tagline=Some tagline
 |image=SWCity.jpg
 |rows=
 {{Infobox row|alternate=|label=label|field={{{field1}}} }}
 {{Infobox row|label=label2|field=
   * Option 1
   * Option 2}}
 {{Infobox row|alternate=|label=label3|field={{{field3|default}}} }}
 |footer=hello world!
 }}