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)
 
(40 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].
</noinclude>


--><tr><th style="background:#ffce7b; padding:0.3em; font-size:1.1em;">{{{Name}}}</th></tr><!--
{| class="infobox" style="width:210px; float: right; clear: right; text-align:center; margin-top:1em; "

|- style="font-size:90%; background:#DCF0FF"
-->{{#if: {{{List0|}}}|<tr><th>{{{Group0}}}</th></tr>|}}<!--
| '''[[{{{Name}}}]]'''
-->{{#if: {{{List0|}}}|<tr><td>{{{List0}}}</td></tr>|}}<!--
|-

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

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

{{!}}- style="font-size: 90%; line-height: 150%;"
{{!}}{{{KeyItems}}}|}}
-->{{#if: {{{List3|}}}|<tr><th>{{{Group3}}}</th></tr>|}}<!--
{| class="collapsible {{#ifeq: {{{Topic1|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
-->{{#if: {{{List3|}}}|<tr><td>{{{List3}}}</td></tr>|}}<!--

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

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

{{!}}{{{Items2}}}
-->{{#if: {{{List6|}}}|<tr><th>{{{Group6}}}</th></tr>|}}<!--
{{!}}}|}}{{#if:{{{Topic3|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic3|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
-->{{#if: {{{List6|}}}|<tr><td>{{{List6}}}</td></tr>|}}<!--
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic3}}}

{{!}}-style="font-size: 90%; line-height: 150%;"
-->{{#if: {{{List7|}}}|<tr><th>{{{Group7}}}</th></tr>|}}<!--
{{!}}{{{Items3}}}
-->{{#if: {{{List7|}}}|<tr><td>{{{List7}}}</td></tr>|}}<!--
{{!}}}|}}{{#if:{{{Topic4|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic4|}}}|{{{cTopic}}}| | collapsed}}" width="100%"

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

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

{{!}}{{{Items5}}}
-->{{#if: {{{List10|}}}|<tr><th>{{{Group10}}}</th></tr>|}}<!--
{{!}}}|}}{{#if:{{{Topic6|}}}|{{{!}} class="collapsible {{#ifeq: {{{Topic6|}}}|{{{cTopic}}}| | collapsed}}" width="100%"
-->{{#if: {{{List10|}}}|<tr><td>{{{List10}}}</td></tr>|}}<!--
!style=" text-align: left; background: #DCF0FF; font-size: 90%;"{{!}}{{{Topic6}}}
--></table>
{{!}}-style="font-size: 90%; line-height: 150%;"
{{!}}{{{Items6}}}
{{!}}}|}}{{#if:{{{Topic7|}}}|{{{!}} class="collapsible {{#ifeq: {{{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}}}
{{!}}}|}}
{{!}}-style=" text-align: center; font-size: 90%;"
|{{Tnavbar|{{{Name}}}}}
|}

Latest revision as of 02:59, 9 June 2024

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