Difference between revisions of "Template:Infobox"

From Appropedia
Jump to navigation Jump to search
(Restructuring)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="infobox">{{#if:{{{form|}}}|
+
<div class="infobox {{{bodyclass|}}}" style="{{{bodystyle|}}}">{{#if:{{{form|}}}|
<div class="infobox-edit">[[File:Font Awesome 5 solid pencil-alt.svg|30px|link=Special:FormEdit/{{{form}}}|Edit the infobox]]</div>
+
<div class="infobox-edit">[[File:OOjs UI icon edit-ltr.svg|25px|link=Special:FormEdit/{{{form}}}/{{FULLPAGENAME}}|Edit the infobox]]</div>}}{{#if:{{{above|}}}|
}}{{#if:{{{above|}}}|
+
<div class="infobox-above {{{aboveclass|}}}" style="{{{abovestyle|}}}">{{{above}}}</div>}}
<div class="infobox-above">{{{above}}}</div>}}
+
<div class="infobox-title {{{titleclass|}}}" style="{{{titlestyle|}}}">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}</div>{{#if:{{{below|}}}|
<div class="infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}</div>{{#if:{{{below|}}}|
+
<div class="infobox-below {{{belowclass|}}}" style="{{{belowstyle|}}}">{{{below}}}</div>}}{{#if:{{{image|}}}|
<div class="infobox-below">{{{below}}}</div>}}{{#if:{{{image|}}}|
+
<div class="infobox-image {{{imageclass|}}}" style="{{{imagestyle|}}}">{{#ifexist:Media:{{{image}}}|[[File:{{{image}}}|{{#if:{{{image-size|}}}|{{{image-size}}}|300px}}]]|{{{image}}}}}{{#if:{{{caption|}}}|<div class="infobox-caption">{{{caption}}}</div>}}</div>}}
<div class="infobox-image">{{#ifexist:Media:{{{image}}}|[[File:{{{image}}}|{{#if:{{{image-size|}}}|{{{image-size}}}|200px}}]]|{{{image}}}}}}}{{#if:{{{caption|}}}|<div class="infobox-caption">{{{caption}}}</div>}}</div>
+
<table class="infobox-table">{{Infobox/row
<table class="infobox-data">{{Infobox/row
 
 
  |header={{{header0|}}} |headerstyle={{{headerstyle|}}}
 
  |header={{{header0|}}} |headerstyle={{{headerstyle|}}}
 
  |label={{{label0|}}}  |labelstyle={{{labelstyle|}}}
 
  |label={{{label0|}}}  |labelstyle={{{labelstyle|}}}

Latest revision as of 13:55, 3 November 2020

Infobox

Template documentation[edit]

This template is as a metatemplate: a template used for constructing other templates. It is not meant for use directly in content pages.

Basic usage[edit source]

This is an advanced template. Before using or modifying it, you should be familiar with templates in general. Then look at how it's used on existing infoboxes and follow the examples.

See also[edit source]