Template:Infobox: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
Roy Curtis (talk | contribs)
m comitting changes
GSK (talk | contribs)
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="{{box-sizing}} clear: right; margin: 8px 0px 8px 8px; width: {{{width|300px}}}; background: white; float: right; {{{css|}}}">
<div style="{{box-sizing}} clear: right; margin: 16px 0px 8px 8px; width: {{{width|300px}}}; background: white; float: right; {{{css|}}}">
   <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="{{bg linearfade|offset=50%|color={{{color|204,100%,90%}}}}} padding: 8px 2px; font-weight: bold; text-align: center; font-size: 16px;">{{{title|{{BASEPAGENAME}}}}}</div>
   <div style="text-align: center; background: hsl({{{color|204,100%,90%}}});">{{{imagearea|[[File:{{{image|Generic Image.png}}}|300px]]}}}</div>
   <div style="text-align: center; background: hsl({{{color|204,100%,90%}}});">{{{imagearea|[[File:{{{image|Default.jpg}}}|300px]]}}}</div>
   {| 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;"
   {| cellspacing="0px" cellpadding="0px" style="background: hsl({{{color|204,100%,90%}}}); width: 100%; border-collapse: collapse; border-radius: 0px 0px 16px 16px;"
   {{{taglinearea|{{!}}+ style="padding: 4px; background: hsl({{{color|204,100%,90%}}});" {{!}}{{{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|label|field|}}
       {{Infobox row|label=label2|field=field2}}
      {{Infobox row|label|field}}
       {{Infobox row|alternate=|label=label3|field=field3}}
       {{Infobox row|label|field|}}
       {{Infobox row|label|field}}
   }}}
   }}}
   {{{footerarea|{{!}}-
   {{{footerarea|{{!}}-
   {{!}} style="text-align: center; padding: 4px" colspan=2 {{!}} {{{footer|''Footer''}}} }}}
   {{!}} style="text-align: center; padding: 4px" colspan=2 {{!}} {{{footer|''Footer''}}} }}}
  |-
  | colspan=2 style="height: 8px;" |
   |}
   |}
</div><noinclude>
</div><noinclude>
Line 21: Line 24:
  |image=Blizzard.jpg
  |image=Blizzard.jpg
  |rows=
  |rows=
  {{Infobox row|alternate=|label=label|field={{{field1}}} }}
  {{Infobox row|label |{{{field1}}}|}}
  {{Infobox row|label=label2|field=
  {{Infobox row|label2|
   * Option 1
   * Option 1
   * Option 2}}
   * Option 2}}
  {{Infobox row|alternate=|label=label3|field={{{field3|default}}} }}
  {{Infobox row|label3|{{{field3|default}}}|}}
  }}</nowiki>
  }}</nowiki>


Line 35: Line 38:
  |image=SWCity.jpg
  |image=SWCity.jpg
  |rows=
  |rows=
  {{Infobox row|alternate=|label=label|field={{{field1}}} }}
  {{Infobox row|label |{{{field1}}}|}}
  {{Infobox row|label=label2|field=
  {{Infobox row|label2|
   * Option 1
   * Option 1
   * Option 2}}
   * Option 2}}
  {{Infobox row|alternate=|label=label3|field={{{field3|default}}} }}
  {{Infobox row|label3|{{{field3|default}}}|}}
  |footer=hello world!
  |footer=hello world!
  }}</nowiki>
  }}</nowiki>

Latest revision as of 00:23, 9 April 2023

Infobox
Tagline
Label

field

Label

field

Label

field

Label

field

Footer

An improved infobox core template.

Usage

With automatic title and image

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

With custom title, tagline, image and footer

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