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
m (Bot: Replace If template with #if parser function)
 
(37 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<table style="font-size:95%; line-height:1.5em; padding:0.25em; float:right; margin: 0 0 8px 15px; clear: right; border:1px solid #aaaaaa; background:#eee; text-align:center;{{{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].
--><tr><th style="background:#ffce7b; padding:0.3em; font-size:1.1em;">{{{Name}}}</th></tr><!--
</noinclude>

{| class="infobox" style="width:210px; float: right; clear: right; text-align:center; margin-top:1em; "
-->{{#if: {{{List0|}}}|<tr><th>{{{Group0}}}</th></tr>|}}<!--
|- style="font-size:90%; background:#DCF0FF"
-->{{#if: {{{List0|}}}|<tr><td>{{{List0}}}</td></tr>|}}<!--
| '''[[{{{Name}}}]]'''

|-
--><tr><th>{{{Group1}}}</th></tr><!--
{{if|{{{Image|}}}|{{!}}[[Image:{{{Image}}}{{!}}160px]]|}}
--><tr><td>{{{List1}}}</td></tr><!--
{{if|{{{Label|}}}|{{!}}<div style="padding-top: 7px; padding-bottom: 4px;">{{{Label}}}|}}</div>

{{if|{{{LabelId|}}}|
-->{{#if: {{{List2|}}}|<tr><th>{{{Group2}}}</th></tr>|}}<!--
{{!}}- style="padding-top: 0px;font-size: 75%; line-height: 150%;"
{{!}}{{{LabelId}}}|}}
-->{{#if: {{{List2|}}}|<tr><td>{{{List2}}}</td></tr>|}}<!--

{{if|{{{KeyItems|}}}|
-->{{#if: {{{List3|}}}|<tr><th>{{{Group3}}}</th></tr>|}}<!--
{{!}}- style="font-size: 90%; line-height: 150%;"
{{!}}{{{KeyItems}}}|}}
-->{{#if: {{{List3|}}}|<tr><td>{{{List3}}}</td></tr>|}}<!--

{| class="collapsible {{Eq| {{{Topic1|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
-->{{#if: {{{List4|}}}|<tr><th>{{{Group4}}}</th></tr>|}}<!--
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"|{{{Topic1}}}
-->{{#if: {{{List4|}}}|<tr><td>{{{List4}}}</td></tr>|}}<!--
|-style="font-size: 90%; line-height: 150%;"

|{{{Items1}}}
-->{{#if: {{{List5|}}}|<tr><th>{{{Group5}}}</th></tr>|}}<!--
|}{{if|{{{Topic2|}}}|{{{!}} class="collapsible {{Eq| {{{Topic2|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
-->{{#if: {{{List5|}}}|<tr><td>{{{List5}}}</td></tr>|}}<!--
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic2}}}

{{!}}-style="font-size: 90%; line-height: 150%;"
-->{{#if: {{{List6|}}}|<tr><th>{{{Group6}}}</th></tr>|}}<!--
{{!}}{{{Items2}}}
-->{{#if: {{{List6|}}}|<tr><td>{{{List6}}}</td></tr>|}}<!--
{{!}}}|}}{{if|{{{Topic3|}}}|{{{!}} class="collapsible {{Eq| {{{Topic3|}}}|{{{cTopic}}}| | collapsed}}" width="100%"

!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic3}}}
-->{{#if: {{{List7|}}}|<tr><th>{{{Group7}}}</th></tr>|}}<!--
{{!}}-style="font-size: 90%; line-height: 150%;"
-->{{#if: {{{List7|}}}|<tr><td>{{{List7}}}</td></tr>|}}<!--
{{!}}{{{Items3}}}

{{!}}}|}}{{if|{{{Topic4|}}}|{{{!}} class="collapsible {{Eq| {{{Topic4|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
-->{{#if: {{{List8|}}}|<tr><th>{{{Group8}}}</th></tr>|}}<!--
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic4}}}
-->{{#if: {{{List8|}}}|<tr><td>{{{List8}}}</td></tr>|}}<!--
{{!}}-style="font-size: 90%; line-height: 150%;"

{{!}}{{{Items4}}}
-->{{#if: {{{List9|}}}|<tr><th>{{{Group9}}}</th></tr>|}}<!--
{{!}}}|}}{{if|{{{Topic5|}}}|{{{!}} class="collapsible {{Eq| {{{Topic5|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
-->{{#if: {{{List9|}}}|<tr><td>{{{List9}}}</td></tr>|}}<!--
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic5}}}

{{!}}-style="font-size: 90%; line-height: 150%;"
-->{{#if: {{{List10|}}}|<tr><th>{{{Group10}}}</th></tr>|}}<!--
{{!}}{{{Items5}}}
-->{{#if: {{{List10|}}}|<tr><td>{{{List10}}}</td></tr>|}}<!--
{{!}}}|}}{{if|{{{Topic6|}}}|{{{!}} class="collapsible {{Eq| {{{Topic6|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
--></table>
!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%;"
{{!}}{{{Items8}}}
{{!}}}|}}
|{{Tnavbar|{{{Name}}}}}
|}

Latest revision as of 02:59, 9 June 2024

{{{Name}}}
{{{Group1}}}
{{{List1}}}