Jump to content

Template:SimpleInfobox: Difference between revisions

From Micro Pedia
Created page with "{{{!}} class="infobox {{{bodyclass|}}}" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"<!-- Caption -->{{#if:{{{title|}}}|<nowiki/> {{!}}+ {{!}}colspan="2" class="{{{titleclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{titlestyle|}}}"{{!}}{{{title}}} }}<!-- Header -->{{#if:{{{above|}}}|<nowiki/> {{!}}- {{!}}colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size:..."
 
Steven Buber (talk | contribs)
m 1 revision imported
 
(No difference)

Latest revision as of 17:11, 5 January 2025

Usage[edit]

Parameters[edit]

There are some general 'styling' parameters, some 'title' and subtitle parameters, some 'image' parameters', and then parameters for each of the 80 possible 'rows'

Style[edit]

  • bodyclass
  • bodystyle

Title[edit]

  • title
  • titleclass
  • titlestyle
  • above
  • aboveclass
  • abovestyle
  • subheader
  • subheaderclass
  • subheaderstyle

Image[edit]

  • image
  • imageclass
  • imagestyle
  • caption
  • captionstyle

Rows[edit]

For all rows[edit]
  • headerstyle
  • labelstyle
  • datastyle
For specific rows[edit]

For each of the 80 possible rows, replace the 'N' below with the number (e.g. 'header3', 'header80')

  • headerN
  • labelN
  • dataN
  • classN

Example[edit]

Code Output
{{SimpleInfobox|title=TITLE
|above=ABOVE
|subheader=SUBHEADER
|image=[[Image:Example.jpg]]
|caption=IMAGE_CAPTION
|header1=HEADER_1
|label1=LABEL_1
|data1=DATA_1
}}
TITLE
ABOVE
SUBHEADER

IMAGE_CAPTION

HEADER_1
LABEL_1 DATA_1