Diferencia entre revisiones de «Template:Infobox/doc»

(Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> =Usage= ==Parameters== There are some general 'styling' parameters,...")
 
Línea 37: Línea 37:
* classN
* classN


=Example=
==Examples==
{{Infobox|title=TITLE
{{Infobox|title=TITLE Infobox 1
|above=ABOVE
|above=ABOVE
|subheader=SUBHEADER
|subheader=SUBHEADER
Línea 46: Línea 46:
|label1=LABEL_1
|label1=LABEL_1
|data1=DATA_1
|data1=DATA_1
}}
{{Infobox
|name        = Infobox/doc
|bodystyle    =
|titlestyle  =
|abovestyle = background:#cfc;
|subheaderstyle =
|title        = Test Infobox 2
|above        = Above text
|subheader    = Subheader above image
|subheader2  = Second subheader
|imagestyle  =
|captionstyle =
|  image      = [[File:MDMA.png|thumbnail|MDMA]]
|caption      = Caption displayed below example.png
|headerstyle  = background:#ccf;
|labelstyle  = background:#ddf;
|datastyle    =
|header1 = Header defined alone
| label1 =
|  data1 =
|header2 =
| label2 = Label defined alone does not display (needs data, or is suppressed)
|  data2 =
|header3 =
| label3 =
|  data3 = Data defined alone
|header4 = All three defined (header, label, data, all with same number)
| label4 = does not display (same number as a header)
|  data4 = does not display (same number as a header)
|header5 =
| label5 = Label and data defined (label)
|  data5 = Label and data defined (data)
|belowstyle = background:#ddf;
|below      = Below text
}}
}}



Revisión del 17:52 13 abr 2014


Usage

Parameters

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

  • bodyclass
  • bodystyle

Title

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

Image

  • image
  • imageclass
  • imagestyle
  • caption
  • captionstyle

Rows

For all rows

  • headerstyle
  • labelstyle
  • datastyle

For specific rows

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

  • headerN
  • labelN
  • dataN
  • classN

Examples

TITLE Infobox 1
ABOVE
SUBHEADER
File:Some image.jpg

IMAGE_CAPTION

HEADER_1
LABEL_1 DATA_1



Test Infobox 2
Above text
Subheader above image
MDMA

Caption displayed below example.png

Header defined alone
Data defined alone
All three defined (header, label, data, all with same number)
does not display (same number as a header) does not display (same number as a header)
Label and data defined (label) Label and data defined (data)
Below text