Difference between revisions of "Template:Infobox"

From Appropedia
Jump to navigation Jump to search
m
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|25px|link=Special:FormEdit/{{{form}}}/{{FULLPAGENAME}}|Edit the infobox]]</div>
 
<div class="infobox-edit">[[File:Font Awesome 5 solid pencil-alt.svg|25px|link=Special:FormEdit/{{{form}}}/{{FULLPAGENAME}}|Edit the infobox]]</div>
 
}}{{#if:{{{above|}}}|
 
}}{{#if:{{{above|}}}|
<div class="infobox-above">{{{above}}}</div>}}
+
<div class="infobox-above {{{aboveclass|}}}" style="{{{abovestyle|}}}">{{{above}}}</div>}}
<div class="infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}</div>{{#if:{{{below|}}}|
+
<div class="infobox-title {{{titleclass|}}}" style="{{{titlestyle|}}}">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}</div>{{#if:{{{below|}}}|
<div class="infobox-below">{{{below}}}</div>}}{{#if:{{{image|}}}|
+
<div class="infobox-below {{{belowclass|}}}" style="{{{belowstyle|}}}">{{{below}}}</div>}}{{#if:{{{image|}}}|
<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>
+
<div class="infobox-image {{{imageclass|}}}" style="{{{imagestyle|}}}">{{#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-table">{{Infobox/row
 
  |header={{{header0|}}} |headerstyle={{{headerstyle|}}}
 
  |header={{{header0|}}} |headerstyle={{{headerstyle|}}}

Revision as of 13:22, 21 October 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

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