Template:Infobox: Difference between revisions

From Pixar Cars Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#switch: {{{1|}}}
{{#switch: {{{1|}}}
  | start = <div class="infobox-wrapper"><div class="infobox-inner-wrapper">
  | start = <div class="infobox-wrapper"><div class="infobox-inner-wrapper">
{{!C}} class="infobox" id="{{{id|}}}" cellspacing="{{{cellspacing|}}}"
{{!C}} class="infobox" id="{{{id|}}}" cellspacing="{{{cellspacing|0}}}"
  | title = ! id="{{{id|}}}" colspan="{{{colspan|}}}" {{{other|}}} {{!}} {{{text|}}}
  | title = ! id="infobox-title {{{id|}}}" colspan="{{{colspan|2}}}" {{{other|}}} {{!}} {{{text|}}}
  | image = {{#if: {{{image|}}} |{{!}}-
  | image = {{#if: {{{image|}}} |{{!}}-
{{!}} class="infobox-image-cell" colspan="2" style="text-align:center" {{!}} {{#if:{{{image_style|}}}|<div style="{{{image_style|}}}">|}}[[File:{{{image|}}}{{#if:{{{image_size|}}}|{{!}}{{{image_size|}}}|}}]]{{#if:{{{caption|}}}|<br/><span class="caption" style="font-size:11px">{{{caption|}}}</span>|}}{{#if:{{{image_style|}}}|</div>|}}|}}
{{!}} class="infobox-image-cell" colspan="2" style="text-align:center" {{!}} {{#if:{{{image_style|}}}|<div style="{{{image_style|}}}">|}}[[File:{{{image|}}}{{#if:{{{image_size|}}}|{{!}}{{{image_size|}}}|}}]]{{#if:{{{caption|}}}|<br/><span class="caption" style="font-size:11px">{{{caption|}}}</span>|}}{{#if:{{{image_style|}}}|</div>|}}|}}

Revision as of 12:42, 20 June 2024

This is the infobox builder, designed for ease-of-use and to help maintain consistency between different templates. Heavily inspired by Destinypedia's setup and approach.

Syntax
start
title
image
section
row
end

Components


Name
Section title
Test1 Test2