Template:Infobox: Difference between revisions

From FusionGirl Wiki
Jump to navigationJump to search
No edit summary
(Update Template:Infobox — clean version with docs)
Line 1: Line 1:
{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
{{#invoke:Infobox|infobox}}<noinclude>
{{documentation}}
== Usage ==
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
<pre>
{{Infobox
| title  = Page Title
| image  = Example.png
| caption = An example image
| header1 = Section
| label1  = Property
| data1  = Value
| label2  = Another
| data2  = Value
| below  = [[Category:Things]]
}}
</pre>
 
=== Parameters ===
{| class="wikitable"
|-
! Parameter !! Description
|-
| '''title''' / '''name''' || Infobox title (defaults to page name)
|-
| '''above''' || Text displayed above the image
|-
| '''subheader''' / '''subheader1–10''' || Subtitle row(s)
|-
| '''image''' / '''image1–5''' || Image (filename, <code><nowiki>[[File:...]]</nowiki></code>, or HTML)
|-
| '''caption''' / '''caption1–5''' || Image caption
|-
| '''header''N''''' || Full-width section header (coloured)
|-
| '''label''N''''' || Left-column label (paired with data''N'')
|-
| '''data''N''''' || Right-column data
|-
| '''below''' || Bottom row (often categories or "See also" links)
|-
| '''bodystyle''' || Inline CSS for the whole table
|-
| '''titlestyle''' || Inline CSS for the title row
|-
| '''headerstyle''' || Inline CSS for section headers
|-
| '''labelstyle''' || Inline CSS for labels
|-
| '''datastyle''' || Inline CSS for data cells
|}
 
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 17:48, 13 March 2026

Script error: No such module "Infobox".

Usage

{{Infobox
| title   = Page Title
| image   = Example.png
| caption = An example image
| header1 = Section
| label1  = Property
| data1   = Value
| label2  = Another
| data2   = Value
| below   = [[Category:Things]]
}}

Parameters

Parameter Description
title / name Infobox title (defaults to page name)
above Text displayed above the image
subheader / subheader1–10 Subtitle row(s)
image / image1–5 Image (filename, [[File:...]], or HTML)
caption / caption1–5 Image caption
headerN Full-width section header (coloured)
labelN Left-column label (paired with dataN)
dataN Right-column data
below Bottom row (often categories or "See also" links)
bodystyle Inline CSS for the whole table
titlestyle Inline CSS for the title row
headerstyle Inline CSS for section headers
labelstyle Inline CSS for labels
datastyle Inline CSS for data cells