Template:Infobox: Difference between revisions

From Pixar Cars Wiki
Jump to navigation Jump to search
Line 14: Line 14:
{{!}}-
{{!}}-
{{Table_end}} |}}
{{Table_end}} |}}
  | row | sub = {{#if:{{{data|}}}|{{!}}-
  | row = {{#if:{{{data|}}}|{{!}}-
{{Infobox/Row|sub|data={{{data|}}}|label={{{label|}}}}}|}}
{{Infobox/Row|row|data={{{data|}}}|label={{{label|}}}}}|}}
|}}<noinclude>
|}}<noinclude>
This is the infobox builder, designed for ease-of-use and to help maintain consistency between different templates. Heavily inspired by [https://destinypedia.com/Template:Infobox Destinypedia]'s setup and approach.
This is the infobox builder, designed for ease-of-use and to help maintain consistency between different templates. Heavily inspired by [https://destinypedia.com/Template:Infobox Destinypedia]'s setup and approach.
Line 43: Line 43:
{{Infobox|title|id=infobox-title|colspan=2|text=Name}}
{{Infobox|title|id=infobox-title|colspan=2|text=Name}}
{{Infobox|section|other={{#if: {{{boxcolor|}}} |class="infobox-{{{boxcolor|}}}"|}}|name=Section title|entries=
{{Infobox|section|other={{#if: {{{boxcolor|}}} |class="infobox-{{{boxcolor|}}}"|}}|name=Section title|entries=
{{Infobox|sub|data=Test2|label=Test1}}
{{Infobox|row|data=Test2|label=Test1}}
}}
}}
{{Infobox|end}}[[Category:Infobox templates| ]]
{{Infobox|end}}[[Category:Infobox templates| ]]
</noinclude>
</noinclude>

Revision as of 12:32, 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