Difference between revisions of "Template:infobox"
m (Tnavbar --> Navbar) |
(code rework, and support two additional parameters, per talk page discussion) |
||
Line 5: | Line 5: | ||
Header | Header | ||
-->{{#if:{{{above|}}}|<tr><td colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}">{{{above}}}</td></tr>}}<!-- | -->{{#if:{{{above|}}}|<tr><td colspan="2" class="{{{aboveclass|}}}" style="text-align:center; font-size: 125%; font-weight: bold; {{{abovestyle|}}}">{{{above}}}</td></tr>}}<!-- | ||
− | + | Subheader 1 | |
− | + | -->{{#if:{{{subheader|{{{subheader1|}}}}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader|{{{subheader1|}}}}}}</td></tr>}}<!-- | |
− | + | Subheader 2 | |
− | + | -->{{#if:{{{subheader2|}}}|<tr><td colspan="2" class="{{{subheaderclass|}}}" style="text-align:center; {{{subheaderstyle|}}}">{{{subheader2}}}</td></tr>}}<!-- | |
+ | Image 1 | ||
+ | -->{{#if:{{{image|{{{image1|}}}}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"> {{{image|{{{image1|}}}}}} {{#if:{{{caption|{{{caption1|}}}}}}|<br /> | ||
+ | <span style="{{{captionstyle|}}}">{{{caption|{{{caption1|}}}}}}</span> }}</td></tr>}}<!-- | ||
+ | Image 2 | ||
+ | -->{{#if:{{{image2|}}}|<tr><td colspan="2" class="{{{imageclass|}}}" style="text-align:center; {{{imagestyle|}}}"> | ||
Below | Below | ||
-->{{#if:{{{below|}}}|<tr><td colspan="2" style="text-align:center; {{{belowstyle|}}}">{{{below|}}}</td></tr>}}<!-- | -->{{#if:{{{below|}}}|<tr><td colspan="2" style="text-align:center; {{{belowstyle|}}}">{{{below|}}}</td></tr>}}<!-- | ||
Navbar | Navbar | ||
− | -->{{#if:{{{name|}}}|<tr><td style="text-align:right;" colspan="2">{{ | + | -->{{#if:{{{name|}}}|<tr><td style="text-align:right;" colspan="2">{{navbar|{{{name}}}|noedit={{{noedit|0}}}}}</td></tr>}} |
− | </table><noinclude> | + | </table> |
+ | <noinclude> | ||
{{pp-template|small=yes}} | {{pp-template|small=yes}} | ||
− | |||
{{documentation}} | {{documentation}} | ||
− | |||
</noinclude> | </noinclude> |