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

Revision as of 15:51, 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