FANDOM


 
(One intermediate revision by one user not shown)
Line 2: Line 2:
 
Places a standard 'info box' for detailing a specific item on a wiki page. Based on new 2015 [[Help:PortableInfoboxes|portable infoboxes]] ([[Help:PortableInfoboxes/CSS|CSS]] and [[Help:PortableInfoboxes/Tags|Tags]]).
 
Places a standard 'info box' for detailing a specific item on a wiki page. Based on new 2015 [[Help:PortableInfoboxes|portable infoboxes]] ([[Help:PortableInfoboxes/CSS|CSS]] and [[Help:PortableInfoboxes/Tags|Tags]]).
   
Currently handles up to 20 rows... eventually should handle up to 30.
+
Currently handles up to 30 rows... eventually could be more.
   
 
;Notes
 
;Notes
Line 72: Line 72:
 
-->{{#vardefine:tWIDTH|{{#if:{{{width|}}}|{{{width|}}}}}}}<!-- trim
 
-->{{#vardefine:tWIDTH|{{#if:{{{width|}}}|{{{width|}}}}}}}<!-- trim
   
--><infobox><!--
+
--><infobox theme="pi_metabox" theme-source="picustombox"><!--
 
Caption (may not work with new portable infoboxes code)
 
Caption (may not work with new portable infoboxes code)
 
-->
 
-->
Line 264: Line 264:
 
or show just Dataonly20
 
or show just Dataonly20
 
--><data source="dataonly20" class="{{{class20|}}}" />
 
--><data source="dataonly20" class="{{{class20|}}}" />
  +
<!--
  +
  +
Header/Label/Data group #21
  +
Show only Header21
  +
--><header>{{#if:{{{header21|}}}|<center>{{{header21|}}}</center>}}</header><!--
  +
or show Label21/Data21
  +
--><data source="data21" class="{{{class21|}}}"><label>{{#if:{{{label21|}}}|{{{label21|}}}}}</label></data><!--
  +
or show just Dataonly21
  +
--><data source="dataonly21" class="{{{class21|}}}" />
  +
<!--
  +
  +
Header/Label/Data group #22
  +
Show only Header22
  +
--><header>{{#if:{{{header22|}}}|<center>{{{header22|}}}</center>}}</header><!--
  +
or show Label22/Data22
  +
--><data source="data22" class="{{{class22|}}}"><label>{{#if:{{{label22|}}}|{{{label22|}}}}}</label></data><!--
  +
or show just Dataonly22
  +
--><data source="dataonly22" class="{{{class22|}}}" />
  +
<!--
  +
  +
Header/Label/Data group #23
  +
Show only Header23
  +
--><header>{{#if:{{{header23|}}}|<center>{{{header23|}}}</center>}}</header><!--
  +
or show Label23/Data23
  +
--><data source="data23" class="{{{class23|}}}"><label>{{#if:{{{label23|}}}|{{{label23|}}}}}</label></data><!--
  +
or show just Dataonly23
  +
--><data source="dataonly23" class="{{{class23|}}}" />
  +
<!--
  +
  +
Header/Label/Data group #24
  +
Show only Header24
  +
--><header>{{#if:{{{header24|}}}|<center>{{{header24|}}}</center>}}</header><!--
  +
or show Label24/Data24
  +
--><data source="data24" class="{{{class24|}}}"><label>{{#if:{{{label24|}}}|{{{label24|}}}}}</label></data><!--
  +
or show just Dataonly24
  +
--><data source="dataonly24" class="{{{class24|}}}" />
  +
<!--
  +
  +
Header/Label/Data group #25
  +
Show only Header25
  +
--><header>{{#if:{{{header25|}}}|<center>{{{header25|}}}</center>}}</header><!--
  +
or show Label25/Data25
  +
--><data source="data25" class="{{{class25|}}}"><label>{{#if:{{{label25|}}}|{{{label25|}}}}}</label></data><!--
  +
or show just Dataonly25
  +
--><data source="dataonly25" class="{{{class25|}}}" />
  +
<!--
  +
  +
Header/Label/Data group #26
  +
Show only Header26
  +
--><header>{{#if:{{{header26|}}}|<center>{{{header26|}}}</center>}}</header><!--
  +
or show Label26/Data26
  +
--><data source="data26" class="{{{class26|}}}"><label>{{#if:{{{label26|}}}|{{{label26|}}}}}</label></data><!--
  +
or show just Dataonly26
  +
--><data source="dataonly26" class="{{{class26|}}}" />
  +
<!--
  +
  +
Header/Label/Data group #27
  +
Show only Header27
  +
--><header>{{#if:{{{header27|}}}|<center>{{{header27|}}}</center>}}</header><!--
  +
or show Label27/Data27
  +
--><data source="data27" class="{{{class27|}}}"><label>{{#if:{{{label27|}}}|{{{label27|}}}}}</label></data><!--
  +
or show just Dataonly27
  +
--><data source="dataonly27" class="{{{class27|}}}" />
  +
<!--
  +
  +
Header/Label/Data group #28
  +
Show only Header28
  +
--><header>{{#if:{{{header28|}}}|<center>{{{header28|}}}</center>}}</header><!--
  +
or show Label28/Data28
  +
--><data source="data28" class="{{{class28|}}}"><label>{{#if:{{{label28|}}}|{{{label28|}}}}}</label></data><!--
  +
or show just Dataonly28
  +
--><data source="dataonly28" class="{{{class28|}}}" />
  +
<!--
  +
  +
Header/Label/Data group #29
  +
Show only Header29
  +
--><header>{{#if:{{{header29|}}}|<center>{{{header29|}}}</center>}}</header><!--
  +
or show Label29/Data29
  +
--><data source="data29" class="{{{class29|}}}"><label>{{#if:{{{label29|}}}|{{{label29|}}}}}</label></data><!--
  +
or show just Dataonly29
  +
--><data source="dataonly29" class="{{{class29|}}}" />
  +
<!--
  +
  +
Header/Label/Data group #29
  +
Show only Header29
  +
--><header>{{#if:{{{header29|}}}|<center>{{{header29|}}}</center>}}</header><!--
  +
or show Label29/Data29
  +
--><data source="data29" class="{{{class29|}}}"><label>{{#if:{{{label29|}}}|{{{label29|}}}}}</label></data><!--
  +
or show just Dataonly29
  +
--><data source="dataonly29" class="{{{class29|}}}" />
 
<!--
 
<!--
   

Latest revision as of 03:59, September 23, 2015

Places a standard 'info box' for detailing a specific item on a wiki page. Based on new 2015 portable infoboxes (CSS and Tags).

Currently handles up to 30 rows... eventually could be more.

Notes
  • Looks like inline styles don't work. Frowney


Examples
{{Infobox/Draft
|name=Name of infobox
|image=Noimage.jpg
|header1=First header
|data1=First data
|label2=Second label (label2)
|data2=Second data (data2)
|header3=Third header (header3)
|label3=Third label
|data3=Third data
|dataonly3=Third data (dataonly3)
|data4=Fourth data (data4)
}}


{{Infobox/Draft
|name=Infobox with no image
|header1=First header
|data1=First data
}}


Used as meta-template

Template
Community content is available under CC-BY-SA unless otherwise noted.