Template:SmallNavBox: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
No edit summary
No edit summary
Line 2: Line 2:
Unfortunately, this template will not work because Parser Functions extension is not installed. The #if functions do not work. The idea was to create infoboxes for some subjects like on wikipedia [http://en.wikipedia.org/wiki/Wikipedia:Infobox_templates Infobox templates].
Unfortunately, this template will not work because Parser Functions extension is not installed. The #if functions do not work. The idea was to create infoboxes for some subjects like on wikipedia [http://en.wikipedia.org/wiki/Wikipedia:Infobox_templates Infobox templates].
</noinclude>
</noinclude>

{| class="infobox" style="width:210px; float: right; clear: right; text-align:center; margin-top:1em; "
{| class="infobox" style="width:210px; float: right; clear: right; text-align:center; margin-top:1em; "
|- style="font-size:90%; background:#DCF0FF"
|- style="font-size:90%; background:#DCF0FF"
| '''[[{{{Name}}}]]'''
| '''[[{{{Name}}}]]'''
|-
|-
{{#if:{{{Image|}}}|{{!}}[[Image:{{{Image}}}{{!}}160px]]|}}
{{if{{{Image|}}}|{{!}}[[Image:{{{Image}}}{{!}}160px]]|}}
{{#if:{{{Label|}}}|{{!}}<div style="padding-top: 7px; padding-bottom: 4px;">{{{Label}}}|}}</div>
{{if{{{Label|}}}|{{!}}<div style="padding-top: 7px; padding-bottom: 4px;">{{{Label}}}|}}</div>
{{#if:{{{LabelId|}}}|
{{if{{{LabelId|}}}|
{{!}}- style="padding-top: 0px;font-size: 75%; line-height: 150%;"
{{!}}- style="padding-top: 0px;font-size: 75%; line-height: 150%;"
{{!}}{{{LabelId}}}|}}
{{!}}{{{LabelId}}}|}}
{{#if:{{{KeyItems|}}}|
{{if{{{KeyItems|}}}|
{{!}}- style="font-size: 90%; line-height: 150%;"
{{!}}- style="font-size: 90%; line-height: 150%;"
{{!}}{{{KeyItems}}}|}}
{{!}}{{{KeyItems}}}|}}
{| class="collapsible {{#ifeq: {{{Topic1|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
{| class="collapsible {{Eq {{{Topic1|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"|{{{Topic1}}}
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"|{{{Topic1}}}
|-style="font-size: 90%; line-height: 150%;"
|-style="font-size: 90%; line-height: 150%;"
|{{{Items1}}}
|{{{Items1}}}
|}{{#if:{{{Topic2|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic2|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
|}{{if{{{Topic2|}}}|{{{!}} class="collapsible {{Eq {{{Topic2|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic2}}}
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic2}}}
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}{{{Items2}}}
{{!}}{{{Items2}}}
{{!}}}|}}{{#if:{{{Topic3|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic3|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
{{!}}}|}}{{if{{{Topic3|}}}|{{{!}} class="collapsible {{Eq {{{Topic3|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic3}}}
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic3}}}
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}{{{Items3}}}
{{!}}{{{Items3}}}
{{!}}}|}}{{#if:{{{Topic4|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic4|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
{{!}}}|}}{{if{{{Topic4|}}}|{{{!}} class="collapsible {{Eq {{{Topic4|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic4}}}
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic4}}}
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}{{{Items4}}}
{{!}}{{{Items4}}}
{{!}}}|}}{{#if:{{{Topic5|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic5|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
{{!}}}|}}{{if{{{Topic5|}}}|{{{!}} class="collapsible {{Eq {{{Topic5|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic5}}}
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic5}}}
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}{{{Items5}}}
{{!}}{{{Items5}}}
{{!}}}|}}{{#if:{{{Topic6|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic6|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
{{!}}}|}}{{if{{{Topic6|}}}|{{{!}} class="collapsible {{Eq {{{Topic6|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic6}}}
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic6}}}
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}{{{Items6}}}
{{!}}{{{Items6}}}
{{!}}}|}}{{#if:{{{Topic7|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic7|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
{{!}}}|}}{{if{{{Topic7|}}}|{{{!}} class="collapsible {{Eq {{{Topic7|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic7}}}
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic7}}}
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}{{{Items7}}}
{{!}}{{{Items7}}}
{{!}}}|}}{{#if:{{{Topic8|}}}|{{{!}} class="collapsible {{#if: {{{Topic8|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
{{!}}}|}}{{if{{{Topic8|}}}|{{{!}} class="collapsible {{if {{{Topic8|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic8}}}
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic8}}}
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}-style="font-size: 90%; line-height: 150%;"

Revision as of 15:46, 2 July 2008

Unfortunately, this template will not work because Parser Functions extension is not installed. The #if functions do not work. The idea was to create infoboxes for some subjects like on wikipedia Infobox templates.

Template:IfTemplate:If

Template:If Template:If

[[{{{Name}}}]]
{{{Topic1}}}
{{{Items1}}}

Template:IfTemplate:IfTemplate:IfTemplate:IfTemplate:IfTemplate:IfTemplate:If Template:Tnavbar