Difference between revisions of "Template:Infobox"

From Valve Cut Content
Jump to: navigation, search
(direct MediaWiki import)
 
(image 4)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|}}}" cellspacing="3" style="{{#ifeq:{{{subbox|}}}|yes
 
{{#ifeq:{{{child|}}}|yes||<table class="infobox {{{bodyclass|}}}" cellspacing="3" style="{{#ifeq:{{{subbox|}}}|yes
  |padding:0; border:none; border-spacing:3px; margin:-3px; width:auto; min-width:100%; font-size:100%; clear:none; float:none; background-color:transparent;
+
  |padding:0; border:none; border-spacing:3px; margin:-3px; width:auto; min-width:100%; font-size:100%; clear:none; float:none; background-color:transparent; <!-- IF: Subbox -->
  |border-spacing: 3px; width:22em;
+
  |border-spacing: 3px; width:22em; float:right; <!-- IF: independent infobox -->
 
}} {{{bodystyle|}}}"><!--
 
}} {{{bodystyle|}}}"><!--
 
  Caption
 
  Caption
Line 42: Line 42:
 
  |class={{{imageclass|}}}
 
  |class={{{imageclass|}}}
 
  |rowclass={{{imagerowclass3|}}}
 
  |rowclass={{{imagerowclass3|}}}
 +
}} }}<!--
 +
New for VCC Wiki: Image 4
 +
-->{{#if:{{{image4|}}}|{{Infobox/row
 +
|data={{{image4}}}{{#if:{{{caption4|}}}|<br /><span style="{{{captionstyle|}}}">{{{caption4}}}</span>}}
 +
|datastyle={{{imagestyle|}}}
 +
|class={{{imageclass|}}}
 +
|rowclass={{{imagerowclass4|}}}
 
}} }}<!--
 
}} }}<!--
 
-->{{Infobox/row
 
-->{{Infobox/row

Latest revision as of 21:09, 27 November 2018

This is attempt 1 of backporting templates, implementing the composite Mediawiki infobox setup prior to its Lua implementation.

Original Source: https://en.wikipedia.org/w/index.php?title=Template:Infobox&action=edit&oldid=558281256

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Infobox/doc to edit this documentation. (How does this work?)
Template:Infobox/doc