FANDOM


ProtectedTab

Infobox templates can be created or modified using module templates, rather than coding them directly. Place these templates within the infobox template page in place of their corresponding code segments, filling all fields as instructed.

Module Templates

The templates, in the order they would normally be called, are: (usage instruction on each page)
Template:InfoboxStart
Template:InfoboxImage
Template:InfoboxHeader
Template:InfoboxSubheader (may be repeated)
Template:InfoboxField (may be repeated)
Template:InfoboxEnd

Examples

A typical modular infobox code will look like this.

{{InfoboxStart|Module_Demo|{{{fontsize|}}}|{{{width|}}}|{{{theme|}}}|{{{BG3|}}}|{{{alltxtclr|}}}|797979}}
{{InfoboxImage|{{{imageBG|}}}|{{{BG1|}}}|{{{image|}}}}}
{{InfoboxHeader|{{{headerfont|}}}|{{{theme|}}}|{{{BG1|}}}|242424|{{{name|}}}|{{{hdrtxtclr|}}}}}
{{InfoboxSubheader|{{{hideb|}}}|{{{subhdrfont|}}}|{{{theme|}}}|{{{BG2|}}}|414141|{{{sbhdrtxtclr|}}}|Biographical Information}}
{{InfoboxField|{{{birth|}}}|{{{fldtxtclr|}}}|Date of Birth}}
{{InfoboxField|{{{death|}}}|{{{fldtxtclr|}}}|Date of Death}}
{{InfoboxSubheader|{{{hidep|}}}|{{{subhdrfont|}}}|{{{theme|}}}|{{{BG2|}}}|414141|{{{sbhdrtxtclr|}}}|Physical Description}}
{{InfoboxField|{{{eyes|}}}|{{{fldtxtclr|}}}|Eye Color}}
{{InfoboxField|{{{hair|}}}|{{{fldtxtclr|}}}|Hair Color}}
{{InfoboxEnd|{{{headerfont|}}}|{{{theme|}}}|{{{BG1|}}}|242424|Module Demo}}


The inclusion code (the code included on a page to add the infobox) will be the same as for a standard infobox. The order of the parameters is irrelevant, however, as a general rule display options (colors, width, etc.) should come first, while fields and hide parameters should follow in the order they and their corresponding subheaders will appear.

{{Module_Demo
|width=
|theme=
|imageBG=
|BG1=
|BG2=
|BG3=
|alltxtclr=
|hdrtxtclr=
|sbhdrtxtclr=
|fldtxtclr=
|fontsize=
|headerfont=
|subhdrfont=
|image=
|name=
|hideb=
|birth=
|death=
|hidep=
|eyes=
|hair=}}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.