Difference between revisions of "Template:Sidebar"
From The Broken Dagger Wiki
m (minor logic issue with template view) |
(moved example to documentation page) |
||
| Line 1: | Line 1: | ||
| − | <table class="vertical-navbox {{#if: {{{wraplinks|}}}|{{#ifeq: {{{wraplinks|}}}|true||nowraplinks}}|nowraplinks}} {{{bodyclass|{{{class|}}}}}}" cellspacing="{{#if:{{{cellspacing|}}}|{{{cellspacing}}}|5}}" style="float: right; clear: right; color: black; background: #f9f9f9; border: 1px solid #aaa; width:{{#if:{{{width|}}}|{{{width}}}|22em}}; margin: 0 0 1.0em 1.0em; padding: 0.2em; border-spacing: 0.4em 0; text-align: center; line-height: 1.4em; font-size: 88%; {{{bodystyle|{{{style|}}}}}}" cellpadding="{{#if:{{{cellpadding|}}}|{{{cellpadding}}}|0}}">{{#if: {{{outertitle | + | <table class="vertical-navbox {{#if: {{{wraplinks|}}}|{{#ifeq: {{{wraplinks|}}}|true||nowraplinks}}|nowraplinks}} {{{bodyclass|{{{class|}}}}}}" cellspacing="{{#if:{{{cellspacing|}}}|{{{cellspacing}}}|5}}" style="float: right; clear: right; color: black; background: #f9f9f9; border: 1px solid #aaa; width:{{#if:{{{width|}}}|{{{width}}}|22em}}; margin: 0 0 1.0em 1.0em; padding: 0.2em; border-spacing: 0.4em 0; text-align: center; line-height: 1.4em; font-size: 88%; {{{bodystyle|{{{style|}}}}}}" cellpadding="{{#if:{{{cellpadding|}}}|{{{cellpadding}}}|0}}">{{#if: {{{outertitle|}}}|<caption class="{{{outertitleclass|}}}" style="padding-bottom: 0.2em; font-size: 125%; line-height: 1.2em; font-weight: bold; {{{outertitlestyle|}}}">{{{outertitle}}}</caption> |
| − | }}{{#if: {{{topimage | + | }}{{#if: {{{topimage|}}}| |
<tr> | <tr> | ||
| − | <td class="{{{topimageclass|}}}" style="padding: 0.4em 0; {{{topimagestyle|}}}">{{{topimage}}}{{#if: {{{topcaption | + | <td class="{{{topimageclass|}}}" style="padding: 0.4em 0; {{{topimagestyle|}}}">{{{topimage}}}{{#if: {{{topcaption|}}}| |
<div style="padding-top: 0.2em; line-height: 1.2em; {{{topcaptionstyle|}}}">{{{topcaption}}}</div>}}</td> | <div style="padding-top: 0.2em; line-height: 1.2em; {{{topcaptionstyle|}}}">{{{topcaption}}}</div>}}</td> | ||
</tr> | </tr> | ||
| − | }}{{#if: {{{pretitle | + | }}{{#if: {{{pretitle|}}}| |
<tr> | <tr> | ||
| − | <td class="{{{pretitleclass|}}}" style="{{#if: {{{topimage | + | <td class="{{{pretitleclass|}}}" style="{{#if: {{{topimage|}}}|padding-top: 0.2em; |padding-top: 0.4em;}} line-height: 1.2em; {{{pretitlestyle|}}}">{{{pretitle}}}</td> |
</tr> | </tr> | ||
| − | }}{{#if: {{{title | + | }}{{#if: {{{title|}}}| |
<tr> | <tr> | ||
| − | <th class="{{{titleclass|}}}" style="padding: 0.2em 0.4em 0.2em; {{#if: {{{pretitle | + | <th class="{{{titleclass|}}}" style="padding: 0.2em 0.4em 0.2em; {{#if: {{{pretitle|}}}|padding-top: 0;}} font-size: 145%; line-height: 1.2em; {{{titlestyle|}}}">{{{title}}}</th> |
</tr> | </tr> | ||
| − | }}{{#if: {{{image | + | }}{{#if: {{{image|}}}| |
<tr> | <tr> | ||
| − | <td class="{{{imageclass|}}}" style="padding: 0.2em 0 0.4em; {{{imagestyle|}}}">{{{image}}}{{#if: {{{caption | + | <td class="{{{imageclass|}}}" style="padding: 0.2em 0 0.4em; {{{imagestyle|}}}">{{{image}}}{{#if: {{{caption|}}}| |
<div style="padding-top: 0.2em; line-height: 1.2em; {{{captionstyle|}}}">{{{caption}}}</div>}}</td> | <div style="padding-top: 0.2em; line-height: 1.2em; {{{captionstyle|}}}">{{{caption}}}</div>}}</td> | ||
</tr> | </tr> | ||
| − | }}{{#if: {{{above | + | }}{{#if: {{{above|}}}| |
<tr> | <tr> | ||
<td class="{{{aboveclass|}}}" style="padding: 0.3em 0.4em 0.3em; font-weight: bold; {{{abovestyle|}}}"><!-- newline required for bullets to work --> | <td class="{{{aboveclass|}}}" style="padding: 0.3em 0.4em 0.3em; font-weight: bold; {{{abovestyle|}}}"><!-- newline required for bullets to work --> | ||
{{{above}}}</td> | {{{above}}}</td> | ||
| − | }}{{#if: {{{heading1 | + | }}{{#if: {{{heading1|}}}| |
<tr> | <tr> | ||
| − | <th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{#if: {{{image | + | <th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{#if: {{{image|}}}|padding-top: 0.4em;}} {{{headingstyle|}}};{{{heading1style|}}}">{{{heading1}}}</th> |
</tr> | </tr> | ||
}}{{#if: | }}{{#if: | ||
| − | {{{content1 | + | {{{content1|}}}| |
<tr> | <tr> | ||
| − | <td class="{{{contentclass|}}}" style="{{#if: {{{heading1|{{{heading | + | <td class="{{{contentclass|}}}" style="{{#if: {{{heading1|{{{heading|}}}}}}||padding-top: 0.2em;}} padding-bottom: 0.2em; {{{contentstyle|}}};{{{content1style|}}}"><!-- newline required before contents# for bullets to work --> |
{{{content1}}}</td> | {{{content1}}}</td> | ||
</tr> | </tr> | ||
| − | }}{{#if: {{{heading2 | + | }}{{#if: {{{heading2|}}}| |
<tr> | <tr> | ||
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading2style|}}}">{{{heading2}}}</th> | <th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading2style|}}}">{{{heading2}}}</th> | ||
</tr> | </tr> | ||
}}{{#if: | }}{{#if: | ||
| − | {{{content2 | + | {{{content2|}}}| |
<tr> | <tr> | ||
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content2style|}}}"> | <td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content2style|}}}"> | ||
{{{content2}}}</td> | {{{content2}}}</td> | ||
</tr> | </tr> | ||
| − | }}{{#if: {{{heading3 | + | }}{{#if: {{{heading3|}}}| |
<tr> | <tr> | ||
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading3style|}}}">{{{heading3}}}</th> | <th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading3style|}}}">{{{heading3}}}</th> | ||
</tr> | </tr> | ||
}}{{#if: | }}{{#if: | ||
| − | {{{content3 | + | {{{content3|}}}| |
<tr> | <tr> | ||
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content3style|}}}"> | <td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content3style|}}}"> | ||
| Line 57: | Line 57: | ||
</tr> | </tr> | ||
}}{{#if: | }}{{#if: | ||
| − | {{{content4 | + | {{{content4|}}}| |
<tr> | <tr> | ||
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content4style|}}}"> | <td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content4style|}}}"> | ||
| − | {{{content4| | + | {{{content4|}}}</td> |
</tr> | </tr> | ||
}}{{#if: {{{heading5|}}}| | }}{{#if: {{{heading5|}}}| | ||
| Line 362: | Line 362: | ||
{{{content34}}}</td> | {{{content34}}}</td> | ||
</tr> | </tr> | ||
| − | }}{{#if: {{{heading35 | + | }}{{#if: {{{heading35|}}}| |
<tr> | <tr> | ||
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading35style|}}}">{{{heading35}}}</th> | <th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{{headingstyle|}}};{{{heading35style|}}}">{{{heading35}}}</th> | ||
</tr> | </tr> | ||
}}{{#if: | }}{{#if: | ||
| − | {{{content35 | + | {{{content35|}}}| |
<tr> | <tr> | ||
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content35style|}}}"> | <td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content35style|}}}"> | ||
{{{content35}}}</td> | {{{content35}}}</td> | ||
</tr> | </tr> | ||
| − | }}{{#if: {{{below | + | }}{{#if: {{{below|}}}| |
<tr> | <tr> | ||
<td class="{{{belowclass|}}}" style="padding: 0.3em 0.4em 0.3em; font-weight: bold; {{{belowstyle|}}}"> | <td class="{{{belowclass|}}}" style="padding: 0.3em 0.4em 0.3em; font-weight: bold; {{{belowstyle|}}}"> | ||
{{{below}}}</td> | {{{below}}}</td> | ||
</tr> | </tr> | ||
| − | }}{{#switch: {{{navbar|{{{tnavbar< | + | }}{{#switch: {{{navbar|{{{tnavbar|<noinclude>off</noinclude>}}}}}} |
|none |off= | |none |off= | ||
|#default=<tr> | |#default=<tr> | ||