Template:Sidebar: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Uzume
m (minor logic issue with template view)
>Frietjes
(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<includeonly>|</includeonly>}}}|<caption class="{{{outertitleclass|}}}" style="padding-bottom: 0.2em; font-size: 125%; line-height: 1.2em; font-weight: bold; {{{outertitlestyle|}}}">{{{outertitle}}}</caption>
<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<includeonly>|</includeonly>}}}|
}}{{#if: {{{topimage|}}}|
<tr>
<tr>
<td class="{{{topimageclass|}}}" style="padding: 0.4em 0; {{{topimagestyle|}}}">{{{topimage}}}{{#if: {{{topcaption<includeonly>|</includeonly>}}}|
<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<includeonly>|</includeonly>}}}|
}}{{#if: {{{pretitle|}}}|
<tr>
<tr>
<td class="{{{pretitleclass|}}}" style="{{#if: {{{topimage<includeonly>|</includeonly>}}}|padding-top: 0.2em; |padding-top: 0.4em;}} line-height: 1.2em; {{{pretitlestyle|}}}">{{{pretitle}}}</td>
<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<includeonly>|</includeonly>}}}|
}}{{#if: {{{title|}}}|
<tr>
<tr>
<th class="{{{titleclass|}}}" style="padding: 0.2em 0.4em 0.2em; {{#if: {{{pretitle<includeonly>|</includeonly>}}}|padding-top: 0;}} font-size: 145%; line-height: 1.2em; {{{titlestyle|}}}">{{{title}}}</th>
<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<includeonly>|</includeonly>}}}|
}}{{#if: {{{image|}}}|
<tr>
<tr>
<td class="{{{imageclass|}}}" style="padding: 0.2em 0 0.4em; {{{imagestyle|}}}">{{{image}}}{{#if: {{{caption<includeonly>|</includeonly>}}}|
<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<includeonly>|</includeonly>}}}|
}}{{#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<includeonly>|</includeonly>}}}|
}}{{#if: {{{heading1|}}}|
<tr>
<tr>
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{#if: {{{image<includeonly>|</includeonly>}}}|padding-top: 0.4em;}} {{{headingstyle|}}};{{{heading1style|}}}">{{{heading1}}}</th>
<th class="{{{headingclass|}}}" style="padding-top: 0.2em; {{#if: {{{image|}}}|padding-top: 0.4em;}} {{{headingstyle|}}};{{{heading1style|}}}">{{{heading1}}}</th>
</tr>
</tr>
}}{{#if:
}}{{#if:
{{{content1<includeonly>|</includeonly>}}}|
{{{content1|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="{{#if: {{{heading1|{{{heading<includeonly>|</includeonly>}}}}}}||padding-top: 0.2em;}} padding-bottom: 0.2em; {{{contentstyle|}}};{{{content1style|}}}"><!-- newline required before contents# for bullets to work -->
<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<includeonly>|</includeonly>}}}|
}}{{#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<includeonly>|</includeonly>}}}|
{{{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<includeonly>|</includeonly>}}}|
}}{{#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<includeonly>|</includeonly>}}}|
{{{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<includeonly>|</includeonly>}}}|
{{{content4|}}}|
<tr>
<tr>
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content4style|}}}">
<td class="{{{contentclass|}}}" style="padding-bottom: 0.2em; {{{contentstyle|}}};{{{content4style|}}}">
{{{content4|<noinclude>................</noinclude>}}}</td>
{{{content4|}}}</td>
</tr>
</tr>
}}{{#if: {{{heading5|}}}|
}}{{#if: {{{heading5|}}}|
Line 362: Line 362:
{{{content34}}}</td>
{{{content34}}}</td>
</tr>
</tr>
}}{{#if: {{{heading35<includeonly>|</includeonly>}}}|
}}{{#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<includeonly>|</includeonly>}}}|
{{{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<includeonly>|</includeonly>}}}|
}}{{#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<includeonly>|</includeonly>}}}}}}
}}{{#switch: {{{navbar|{{{tnavbar|<noinclude>off</noinclude>}}}}}}
|none |off=
|none |off=
|#default=<tr>
|#default=<tr>

Revision as of 16:00, 2 March 2012