Template:Infobox: Difference between revisions
From Bibliotheca Anonoma
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
-->{{#if:{{{title|}}}|<nowiki/> | -->{{#if:{{{title|}}}|<nowiki/> | ||
{{!}}+ | {{!}}+ | ||
! colspan="2" class="{{{titleclass|}}}" style="text-align: | ! colspan="2" class="{{{titleclass|}}}" style="text-align:center; font-size: 125%; {{{titlestyle|}}}"{{!}}{{{title}}} }}<!-- | ||
Header | Header | ||
-->{{#if:{{{above|}}}|<nowiki/> | -->{{#if:{{{above|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}}colspan="2" class="{{{aboveclass|}}}" style="text-align: | {{!}}colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}"{{!}}{{{above}}} }}<!-- | ||
Subheader | Subheader | ||
-->{{#if:{{{subheader|}}}|<nowiki/> | -->{{#if:{{{subheader|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}}colspan="2" class="{{{subheaderclass|}}}" style="text-align: | {{!}}colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}"{{!}}{{{subheader}}} }}<!-- | ||
Image | Image | ||
-->{{#if:{{{image|}}}|<nowiki/> | -->{{#if:{{{image|}}}|<nowiki/> | ||
Line 20: | Line 20: | ||
-->{{#if:{{{header1|}}}|<nowiki/> | -->{{#if:{{{header1|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
! colspan="2" style="text-align: | ! colspan="2" style="text-align:center; {{{headerstyle|}}}"{{!}}{{{header1|}}} }}<!-- | ||
-->{{#if:{{{label1|}}}|{{#if:{{{data1|}}}|<nowiki/> | -->{{#if:{{{label1|}}}|{{#if:{{{data1|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
Line 26: | Line 26: | ||
{{!}} class="{{{class1|}}}" style="{{{datastyle|}}}"{{!}}{{{data1|}}} }}| {{#if:{{{data1|}}}|<nowiki/> | {{!}} class="{{{class1|}}}" style="{{{datastyle|}}}"{{!}}{{{data1|}}} }}| {{#if:{{{data1|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}}colspan="2" class="{{{class1|}}}" style="text-align: | {{!}}colspan="2" class="{{{class1|}}}" style="text-align:center; {{{datastyle|}}}"{{!}}{{{data1|}}} }} }}<!-- | ||
Row 2 | Row 2 | ||
-->{{#if:{{{header2|}}}|<nowiki/> | -->{{#if:{{{header2|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
! colspan="2" style="text-align: | ! colspan="2" style="text-align:center; {{{headerstyle|}}}"{{!}}{{{header2|}}} }}<!-- | ||
-->{{#if:{{{label2|}}}|{{#if:{{{data2|}}}|<nowiki/> | -->{{#if:{{{label2|}}}|{{#if:{{{data2|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
Line 36: | Line 36: | ||
{{!}} class="{{{class2|}}}" style="{{{datastyle|}}}"{{!}}{{{data2|}}} }}| {{#if:{{{data2|}}}|<nowiki/> | {{!}} class="{{{class2|}}}" style="{{{datastyle|}}}"{{!}}{{{data2|}}} }}| {{#if:{{{data2|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}}colspan="2" class="{{{class2|}}}" style="text-align: | {{!}}colspan="2" class="{{{class2|}}}" style="text-align:center; {{{datastyle|}}}"{{!}}{{{data2|}}} }} }}<!-- | ||
Row 3 | Row 3 | ||
-->{{#if:{{{header3|}}}|<nowiki/> | -->{{#if:{{{header3|}}}|<nowiki/> |
Latest revision as of 21:50, 23 May 2023
Usage
These usage notes will not be included in articles bearing this template.
This template is a metatemplate used to construct other templates. Each row on the table can contain either a header, or a label/data pair, or just a data cell. These are mutually exclusive states so if you define a row with both a header and a label/data pair, the label/data pair is ignored.
To insert an image somewhere other than at the top of the infobox, or to insert freeform data, use a row with only a data field. The format for using this template is as follows:
{{infobox | title = /int/ - International | image = [[File:Flags.8.png]] |header3 = Section 1 |label5 = Label A |data5 = Data B |label7 = Label C |data7 = Data C |header10 = Section 2 |label12 = Label D |data12 = Data D }}
- Displays:
/int/ - International | |
---|---|
Section 1 | |
Label A | Data B |
Label C | Data C |
Section 2 | |
Label D | Data D |