Difference between revisions of "Template:Infobox"
(4 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 712: | Line 715: | ||
{{#if: {{{T101|}}} | | {{#if: {{{T101|}}} | | ||
{{!}} colspan=2 align=center {{!}} <font color=red>Handling error:</font> Too many parameters}} | {{!}} colspan=2 align=center {{!}} <font color=red>Handling error:</font> Too many parameters}} | ||
+ | |- | ||
+ | {{#if: {{{map|}}} | | ||
+ | {{!}} colspan=2 style="{{{map_tstyle|}}}" {{!}} {{{map_tag|'''Map'''}}} | ||
+ | {{!}}- | ||
+ | {{!}} colspan=2 style="text-align:center;{{{map_style|}}}" {{!}} {{{map|}}} }} | ||
|- | |- | ||
{{#if: {{{footer|}}} | | {{#if: {{{footer|}}} | | ||
Line 731: | Line 739: | ||
| C50 = Data | | C50 = Data | ||
| T101 = Title | | T101 = Title | ||
+ | | map= [[File:Placeholder.jpg|180px]] | ||
| footer = Footnotes | | footer = Footnotes | ||
}}<pre>{{Infobox | }}<pre>{{Infobox | ||
Line 742: | Line 751: | ||
| substyle = | | substyle = | ||
| subtext = | | subtext = | ||
− | | imgstyle | + | | imgstyle1 = |
− | | image | + | | image1 = |
− | | | + | | img_caption1 = |
+ | | imgstyle = | ||
+ | | image = | ||
+ | | img_caption = | ||
| hgcolor = | | hgcolor = | ||
| H1 = | | H1 = | ||
Line 752: | Line 764: | ||
| T2 = | | T2 = | ||
| C2 = | | C2 = | ||
+ | | map_tag = | ||
+ | | map = | ||
+ | | map_style = | ||
+ | | map_tstyle= | ||
| fstyle = | | fstyle = | ||
| footer = | | footer = | ||
}}</pre></noinclude> | }}</pre></noinclude> |
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 = }}