Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
RodRedlineM1 (talk | contribs) |
RodRedlineM1 (talk | contribs) |
||
Line 4: | Line 4: | ||
| title = ! id="infobox-title {{{id|}}}" colspan="{{{colspan|2}}}" style="{{{style|}}}" {{{other|}}} {{!}} {{{text|}}} | | title = ! id="infobox-title {{{id|}}}" colspan="{{{colspan|2}}}" style="{{{style|}}}" {{{other|}}} {{!}} {{{text|}}} | ||
| image = {{#if: {{{image|}}} |{{!}}- | | image = {{#if: {{{image|}}} |{{!}}- | ||
{{!}} class="infobox-image-cell" colspan="2" style="text-align:center; {{{style|}}}" {{!}} {{#if:{{{image_style|}}}|<div style="{{{image_style|}}}">|}}[[File:{{{image|}}}{{#if:{{{image_size|}}}| | {{!}} class="infobox-image-cell" colspan="2" style="text-align:center; {{{style|}}}" {{!}} {{#if:{{{image_style|}}}|<div style="{{{image_style|}}}">|}}[[File:{{{image|}}}{{!}}{{#if:{{{image_size|}}}|{{{image_size|}}}|280px}}]]{{#if:{{{caption|}}}|<br/><span class="caption" style="font-size:11px">{{{caption|}}}</span>|}}{{#if:{{{image_style|}}}|</div>|}}|}} | ||
| end = {{Table_end}}</div></div> | | end = {{Table_end}}</div></div> | ||
| section = {{#if:{{{entries|}}}|{{!}}- class="infobox-section" id="{{{id|}}}" | | section = {{#if:{{{entries|}}}|{{!}}- class="infobox-section" id="{{{id|}}}" |
Revision as of 07:37, 29 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 | |
---|---|
{{{1|}}} value | Associated code |
start
|
<div class="infobox-wrapper" style="{{{outer_style|}}}"><div class="infobox-inner-wrapper" style="{{{inner_style|}}}"> {{!C}} class="infobox" id="{{{id|}}}" style="{{{style|}}}" cellspacing="{{{cellspacing|0}}}" |
title
|
! id="infobox-title {{{id|}}}" colspan="{{{colspan|2}}}" style="{{{style|}}}" {{{other|}}} {{!}} {{{text|}}} |
image
|
{{#if: {{{image|}}} |{{!}}- {{!}} class="infobox-image-cell" colspan="2" style="text-align:center; {{{style|}}}" {{!}} {{#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>|}}|}} |
section
|
{{#if:{{{entries|}}}|{{!}}- class="infobox-section" id="{{{id|}}}" {{!}} colspan="2" style="padding:0 !important" {{!}} {{!C}} class="mw-collapsible mw-collapsed" style="width:100%;" cellspacing="0" ! colspan="2" style="text-align: center;line-height: 1.5;padding: 5px;{{#if:{{{style|}}}|{{{style|}}}|}}" {{{other|}}} {{!}} {{{name|}}} {{!}}- {{{entries|}}} {{!}}- {{Table_end}} |}} |
row
|
{{Code|row}} {{#if:{{{data|}}}|{{!}}- {{Infobox/Row|row|data={{{data|}}}|label={{{label|}}}}}|}} |
end
|
|}</div></div> |
{{Infobox|{{{1}}}|situational value 1|situational value 2|etc.}}