Template:Infobox: Difference between revisions

From Bibliotheca Anonoma
(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%; {{{titlestyle|}}}"{{!}}{{{title}}} }}<!-- Header -->{{#if:{{{above|}}}|<nowiki/> {{!}}- {{!}}colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bol...")
 
No edit summary
Line 1: Line 1:
{{{!}} class="infobox {{{bodyclass|}}}" cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"<!--
{{{!}} class="infobox {{{bodyclass|}}}" cellspacing="5" style="border:1px solid #aaa;background-color:#f9f9f9;color:black;margin:0.5em 0 0.5em 1em;padding:0.2em;float:right;width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; {{{bodystyle|}}}"<!--
  Caption
  Caption
-->{{#if:{{{title|}}}|<nowiki/>
-->{{#if:{{{title|}}}|<nowiki/>

Revision as of 21:25, 23 May 2023

Template:Clear

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
Flags.8.png
Section 1
Label A Data B
Label C Data C
Section 2
Label D Data D

Template:Clear