Difference between revisions of "Template:Infobox"
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {| class=infobox style="padding-left:0.5em;padding-bottom:1em;width:20em;font-size:88%;float:right;background:{{{box_color|}}};{{{bodystyle|}}}" | + | {| class="infobox" style="padding-left:0.5em;padding-bottom:1em;width:20em;font-size:88%;float:right;background:{{{box_color|}}};{{{bodystyle|}}}" |
|- | |- | ||
{{#if: {{{title|}}} | | {{#if: {{{title|}}} | | ||
− | {{!}} colspan=2 bgcolor="{{{bgcolor|}}}" align | + | {{!}} colspan=2 bgcolor="{{{bgcolor|}}}" style="text-align:center;" {{!}} <div style="font-size:125%;background:{{{tcolor|}}}"><b>{{{title|}}}</b></div> {{#if: {{{name|}}}|{{{name|}}}{{#if: {{{subname|}}}|<br>{{{subname|}}} }} }} }} |
+ | |- | ||
+ | {{#if: {{{image1|}}} | | ||
+ | {{!}} colspan=2 style="text-align:center;{{{imgstyle1|}}}" {{!}} {{{image1|}}} {{#if: {{{img1_caption|}}}|<br>{{{img1_caption|}}} }} }} | ||
|- | |- | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
− | {{!}} colspan=2 style="text-align:center;{{{imgstyle|}}}" {{!}} {{{image|}}} {{#if: {{{ | + | {{!}} colspan=2 style="text-align:center;{{{imgstyle|}}}" {{!}} {{{image|}}} {{#if: {{{img_caption|}}}|<br>{{{img_caption|}}} }} }} |
|- | |- | ||
{{#if: {{{subtext|}}} | | {{#if: {{{subtext|}}} | | ||
Line 14: | Line 17: | ||
|- | |- | ||
{{#if: {{{C1|}}} | | {{#if: {{{C1|}}} | | ||
− | {{!}} width=" | + | {{!}} width="35%" {{!}}{{{T1|}}} |
− | {{!}} width=" | + | {{!}} width="65%" {{!}}{{{C1|}}} }} |
|- | |- | ||
{{#if: {{{H2|}}} | | {{#if: {{{H2|}}} | | ||
Line 748: | Line 751: | ||
| substyle = | | substyle = | ||
| subtext = | | subtext = | ||
− | | imgstyle | + | | imgstyle1 = |
− | | image | + | | image1 = |
− | | | + | | img_caption1 = |
+ | | imgstyle = | ||
+ | | image = | ||
+ | | img_caption = | ||
| hgcolor = | | hgcolor = | ||
| H1 = | | H1 = |
Latest revision as of 20:16, 4 August 2018
Template can handle up to 100 parameters
Title NameSubname | |
Header | |
---|---|
Title | Data |
Title | Data |
Handling error: Too many parameters | |
Map | |
Footnotes |
{{Infobox | box_color = | bodystyle = | bgcolor = | tcolor = | title = | name = | subname = | substyle = | subtext = | imgstyle1 = | image1 = | img_caption1 = | imgstyle = | image = | img_caption = | hgcolor = | H1 = | T1 = | C1 = | H2 = | T2 = | C2 = | map_tag = | map = | map_style = | map_tstyle= | fstyle = | footer = }}