Template:DKC level infobox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(Some pages are using the "world" parameter...)
(Bringing this into line with the main {{levelbox}} and merging {{DKCGBClevelbox}})
Line 1: Line 1:
{| class="infobox" cellpadding=3 cellspacing=2 align=right width=220px style="font-family: arial, sans-serif; padding: 4px; margin: 0 0 1.5em 1.5em; font-size: 11px; background-color: #f7f8ff; border:1px solid #88a; color:black"
<includeonly>{|class="infobox" cellpadding=3 cellspacing=2 width=220 style="margin:{{#ifeq:{{{align}}}|left|0 1em 1em 0|0 0 1em 1em}};font-size:11px;background-color:#f7f8ff;border:1px solid #88a;float:{{#ifeq:{{{align}}}|left|left|right}};clear:{{#ifeq:{{{align}}}|left|left|right}}"
| align="center" colspan="2" bgcolor="#bbccea" style="font-size:120%;" | '''Level'''
| align="center" colspan="2" bgcolor="#bbccea" style="font-size:120%;" | '''Level'''
|-
|-
| align="center" colspan="2" bgcolor="#ccddfa" style="font-size:125%" | {{{title|{{PAGENAME}}}}}
| align="center" colspan="2" bgcolor="#ccddfa" style="font-size:125%" | {{{title|{{PAGENAME}}}}}
|-
|-
|align="center" colspan="2" | {{{image|[[Image:Nocoverart.png|center]]<br>[[Special:Upload|<small>Upload one!</small>]]}}}
|align=center colspan=2|{{{image|}}}
|- style=background:#bcf
|-style=vertical-align:top
|'''World-Level'''
{{#if:{{{code|}}}|{{!}} '''World-Level''' {{!}}{{!}} {{{code|}}}}}
| style="width:12em" | {{{code|}}}
|-style=vertical-align:top
|- style="vertical-align: top;"
{{#if:{{{world|}}}|{{!}} '''World''' {{!}}{{!}} {{{world|}}}}}
{{#if:{{{world|}}}|{{!}} '''World''' {{!}}{{!}} {{{world|}}}}}
|- style="vertical-align: top;"
|-style=vertical-align:top
| '''Game'''
|'''Game'''
| {{{game|}}}
|style=width:12em|{{{game|}}}
|- style=background:#bcf
|-style=vertical-align:top
|- style="vertical-align: top;"
{{#if:{{{objective|}}}|{{!}} '''Objectives''' {{!}}{{!}} {{{objective|}}}}}
|-style=vertical-align:top
{{#if:{{{boss|}}}|{{!}} '''Boss''' {{!}}{{!}} {{{boss|}}}}}
|-style=vertical-align:top
{{#if:{{{song|}}}|{{!}} '''Music''' {{!}}{{!}} {{{song|}}}}}
|-style=vertical-align:top
{{#if:{{{notes|}}}|{{!}} '''Notes''' {{!}}{{!}} {{{notes|}}}}}
{{#if:{{{notes|}}}|{{!}} '''Notes''' {{!}}{{!}} {{{notes|}}}}}
|- style="vertical-align: top;"
{{#if:{{{before|{{{after|}}}}}}|{{!}}-style="background:#bcf" cellspacing=0
{{#if:{{{song|}}}|{{!}} '''Music''' {{!}}{{!}} {{{song|}}}}}
{{!}}colspan=2 align=center{{!}}{{#if:{{{before|}}}|'''{{{before}}}'''|<<}} <span style="font-size:97%">[[:Category:Levels|List of Levels]] (SNES)</span> {{#if:{{{after|}}}|'''{{{after}}}'''|>>}} {{#if:{{{secret|}}}|'''{{{secret}}}'''}}|}}
|- style="background:#bcf" cellspacing=0
{{#if:{{{before2|{{{after2|}}}}}}|{{!}}-style="background:#bcf" cellspacing=0
| colspan=2 align="center" | '''{{{before|<<}}}''' <span style="font-size:97%">[[Level|List of Levels]] (SNES)</span> '''{{{after|>>}}}''' '''{{{secret|**}}}'''<br>'''{{{before2|<<}}}''' <span style="font-size:97%">[[Level|List of Levels]] (GBA)</span> '''{{{after2|>>}}}''' '''{{{secret2|**}}}'''
{{!}}colspan=2 align=center{{!}}{{#if:{{{before2|}}}|'''{{{before2}}}'''|<<}} <span style="font-size:97%">[[:Category:Levels|List of Levels]] (GBA)</span> {{#if:{{{after2|}}}|'''{{{after2}}}'''|>>}} {{#if:{{{secret2|}}}|'''{{{secret2}}}'''}}|}}
|}<noinclude><br clear="all">[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
{{#if:{{{beforeGBC|{{{afterGBC|}}}}}}|{{!}}-style="background:#bcf" cellspacing=0
{{!}}colspan=2 align=center{{!}}{{#if:{{{beforeGBC|}}}|'''{{{beforeGBC}}}'''|<<}} <span style="font-size:97%">[[:Category:Levels|List of Levels]] (GBC)</span> {{#if:{{{afterGBC|}}}|'''{{{afterGBC}}}'''|>>}} {{#if:{{{secretGBC|}}}|'''{{{secretGBC}}}'''}}|}}
|}</includeonly><noinclude>{{br}}[[Category:Infobox templates|{{PAGENAME}}]]
==Usage==
<pre>
{{DKClevelbox
|title=
|image=
|code=[world/level]
|game=
|boss=
|music=
|notes=
|before=[[SNES level before|<<]]
|after=[[SNES level after|>>]]
|before2=[[GBA level before|<<]]
|after2=[[GBA level after|>>]]
|beforeGBC=[[GBC level before|<<]]
|afterGBC=[[GBC level after|>>]]
}}
</pre></noinclude>

Revision as of 12:13, April 1, 2018

Usage

{{DKClevelbox
|title=
|image=
|code=[world/level]
|game=
|boss=
|music=
|notes=
|before=[[SNES level before|<<]]
|after=[[SNES level after|>>]]
|before2=[[GBA level before|<<]]
|after2=[[GBA level after|>>]]
|beforeGBC=[[GBC level before|<<]]
|afterGBC=[[GBC level after|>>]]
}}