Module:Basic infobox/doc

From Pandorabox
< Module:Basic infobox
Revision as of 18:15, 23 June 2021 by Ywang (talk | contribs) (Created page with "This is a simple module that generates infoboxes. == Usage == The <code>above</code> field is the content of the header column at the top of the infobox. Each row is indexed...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Basic infobox

This is a simple module that generates infoboxes.

Usage

The above field is the content of the header column at the top of the infobox.

Each row is indexed by a number and can have the following elements:

  • headern: used for header rows
  • labeln: optional label for data rows
  • datan: data for the row (ignored for header rows; hides row when absent or empty otherwise)

Row indices do not have to be continuous.

Styles can be defined with e.g. abovestyle and labelstylen.

Example

{{#invoke:basic infobox|main
| above = [[Module:Basic infobox]]<br/>''Simple infobox generator''
| data1 = [[File:Placeholder.png|frameless|upright=1.0]]
| header2 =  
| headerstyle2 = font-size:0.5em
| label3 = Type
| data3 = Module
| label4 = Status
| data4 = Testing
| datastyle4 = background-color:orange
| header10 = Discussion page
| data11 = [[Module talk:Basic infobox]]
}}

Generates:

Module:Basic infobox
Simple infobox generator
Placeholder.png
 
TypeModule
StatusTesting
Discussion page
Module talk:Basic infobox