Template:Level infobox: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
(Wikified. Use conditionals to eliminate empty rows appearing.)
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:300px; background:#ffffff; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;"><tr><td colspan="2"><div id="infoboxinternal">
<includeonly>{| border=0 cellspacing=0 cellpadding=4 style="float:right; clear:right; width:250px; background:#F0F0F0; border-collapse:collapse; border:1px solid #999999; color:#000000; font-size:smaller; line-height:1.5;"
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:300px; background:#ffffff; border-collapse:collapse;">
|-
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:#F0F0F0;"><td colspan="2" style="padding:0; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:#F0F0F0; vertical-align:top;"><td>'''Previous''':</td><td class="infoboxcell" style="width:100%;">
{{#if:{{{prev|}}}|
{{{prev}}}
{{!}} style="width:20%; border-bottom:1px solid #999999;" {{!}}'''Prev:'''
</td></tr></table>
{{!}} style="border-bottom:1px solid #999999;" {{!}}{{{prev}}}}}
</td></tr>
|-
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"><td>'''Next''':</td><td class="infoboxcell" style="width:100%;">
{{#if:{{{next|}}}|
{{{next}}}
{{!}} style="border-bottom:1px solid #999999;" {{!}} '''Next:'''
</td></tr></table>
{{!}} style="border-bottom:1px solid #999999;" {{!}} {{{next}}}}}
</td></tr>
|-
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"><td>'''Game''':</td><td class="infoboxcell" style="width:100%;">
{{#if:{{{game|}}}|
{{{game}}}
{{!}} style="border-bottom:1px solid #999999;" {{!}} '''Game:'''
</td></tr></table>
{{!}} style="border-bottom:1px solid #999999;" {{!}} {{{game}}}}}
</td></tr>
|-
<tr style="text-align:center; color:#ffffff; background:{{{c1|#7995CA}}}; font-size:larger;"><th colspan="2">{{{name}}}</th></tr>
| colspan=2 style="background:#7995CA; text-align:center; font-size:150%; border-bottom:1px solid #999999;"|'''{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'''
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{c2|#B4C5E3}}};">{{{image|}}}</td></tr>
|-
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:#F0F0F0; vertical-align:top;"><td>'''Player''':</td><td class="infoboxcell" style="width:100%;">
{{#if:{{{image|}}}|
{{{player}}}
! colspan=2 style="background:#7995CA; text-align:center; border-bottom:1px solid #999999;"{{!}} {{{image}}}
</td></tr></table>
}}
</td></tr>
|-
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:#F0F0F0;"><td colspan="2" style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"><td>'''Date''':</td><td class="infoboxcell" style="width:100%;">
{{#if:{{{player|}}}|
{{{date}}}
{{!}} style="border-bottom:1px solid #999999;" {{!}} '''Player:'''
</td></tr></table>
{{!}} style="border-bottom:1px solid #999999;" {{!}} {{{player}}}}}
</td></tr>
|-
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:#F0F0F0;"><td colspan="2" style="padding:0; border-top: 1px solid #999999; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:#F0F0F0; vertical-align:top;"><td>'''Place''':</td><td class="infoboxcell" style="width:100%;">
{{#if:{{{date|}}}|
{{{place}}}
{{!}} style="border-bottom:1px solid #999999;" {{!}} '''Date:'''
</td></tr></table>
{{!}} style="border-bottom:1px solid #999999;" {{!}} {{{date}}}}}
</td></tr>
|-
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:{{{c3|#F0F0F0}}};"><td colspan="2" style="padding:0; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:{{{c3|#F0F0F0}}}; vertical-align:top;"><td>'''Objective''':</td><td class="infoboxcell" style="width:100%;">
{{#if:{{{place|}}}|
{{{Objective}}}
{{!}} style="border-bottom:1px solid #999999;" {{!}} '''Place:'''
</td></tr></table>
{{!}} style="border-bottom:1px solid #999999;" {{!}} {{{place}}}}}
</td></tr>
|-
<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:#F0F0F0;"><td colspan="2" style="padding:0; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:#F0F0F0; vertical-align:top;"><td>'''Enemies''':</td><td class="infoboxcell" style="width:100%;">
{{#if:{{{Objective|}}}|
{{{enemies}}}
{{!}} style="border-bottom:1px solid #999999;" {{!}} '''Objective:'''
</td></tr></table>
{{!}} style="border-bottom:1px solid #999999;" {{!}} {{{Objective}}}}}
{{#ifexist: {{PAGENAME}}/Walkthrough | <tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:#F0F0F0;"><td colspan="2" style="padding:0; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:#FFFFFF; vertical-align:top;"><td>[[Image:Legendary.jpg|60px|link={{PAGENAME}}/Walkthrough]]</td><td class="infoboxcell" style="width:100%;">
|-
Halopedia has a walkthrough guide to this level, {{PAGENAME}}. See [[{{PAGENAME}}/Walkthrough]].
{{#if:{{{enemies|}}}|
</td></tr></table> | <tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background:#F0F0F0;"><td colspan="2" style="padding:0; border-bottom: 1px solid #999999;"><table border="0" cellpadding="4" cellspacing="0" style="padding:0; margin: 0 0 0 0; width:100%; border-collapse:collapse;"><tr style="background:#FFFFFF; vertical-align:top;"><td>[[Image:Legendary.jpg|60px|link={{FULLURL:{{PAGENAME}}/Walkthrough|action=edit}}]]</td><td class="infoboxcell" style="width:100%;">
{{!}} style="border-bottom:1px solid #999999;" {{!}} '''Enemies:'''
Halopedia doesn't currently have a walkthrough for this level, could you [{{FULLURL:{{PAGENAME}}/Walkthrough|action=edit}} write it]?</td></tr></table>}}
{{!}} style="border-bottom:1px solid #999999;" {{!}} {{{enemies}}}}}
 
|-
</td></tr></table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:right; width:49%;"></td><td style="text-align:left; width:51%;">&nbsp;&nbsp;[[Template:Level Infobox|[Source]]]</td></tr></table><noinclude>
{{#if:{{{nowalk|}}}|
 
{{!}} style="background:#FFFFFF; border-bottom:1px solid #999999;" {{!}}[[File:Legendary.jpg|60px|link={{FULLURL:{{PAGENAME}}/Walkthrough|action=edit}}]]
 
{{!}} style="background:#FFFFFF; border-bottom:1px solid #999999;" {{!}}Halopedia doesn't currently have a walkthrough for this level, could you [{{FULLURL:{{PAGENAME}}/Walkthrough|action=edit}} write it]?
===Field list===
}}
*prev (collapsible)
|-
*conc (collapsible)
| colspan=2 style="text-align:center; background:#FFFFFF; border-bottom:1px solid #999; padding:0px;" | [[Template:Level Infobox|[Source]]]
*next (collapsible)
|}</includeonly><noinclude>
*name
==Usage==
*image
*conflict
*date
*place
*objective
*enemies
===Usage===
To use this template, paste the following code into the top of the article, filling all relevant fields:
To use this template, paste the following code into the top of the article, filling all relevant fields:
<pre><nowiki>
<pre><nowiki>
{{Level infobox
{{Level Infobox
|prev=
|prev=
|next=
|next=
Line 63: Line 56:
|image=
|image=
|player=
|player=
|date=  
|date=
|place=
|place=
|objective=
|Objective=
|enemies=
|enemies=
|nowalk=
}}</nowiki></pre>
===Optional Fields===
All fields are ''optional''. Fields not filled will not display a row. The following are notes on field usage:
*'''nowalk'''
**Displays a message at the bottom of the box noting a walkthrough for the level has yet to be written.
**Set to any non-empty value to display the message.
==Examples==
===No Walkthrough Notice===
<pre><nowiki>
{{Level Infobox
|prev=1
|next=2
|game=3
|name=4
|image=
|player=5
|date=6
|place=7
|Objective=8
|enemies=9
|nowalk=
}}</nowiki></pre>
{{Level Infobox
|prev=1
|next=2
|game=3
|name=4
|image=
|player=5
|date=6
|place=7
|Objective=8
|enemies=9
|nowalk=
}}
}}
</nowiki></pre>[[Category:Infoboxes|{{PAGENAME}}]]</noinclude>
===Walkthrough Notice===
<pre><nowiki>
{{Level Infobox
|prev=1
|next=2
|game=3
|name=4
|image=
|player=5
|date=6
|place=7
|Objective=8
|enemies=9
|nowalk=10
}}</nowiki></pre>
{{Level Infobox
|prev=1
|next=2
|game=3
|name=4
|image=
|player=5
|date=6
|place=7
|Objective=8
|enemies=9
|nowalk=10
}}[[Category:Infoboxes|{{PAGENAME}}]]</noinclude>

Revision as of 21:06, January 10, 2010

Usage

To use this template, paste the following code into the top of the article, filling all relevant fields:

{{Level Infobox
|prev=
|next=
|game=
|name=
|image=
|player=
|date=
|place=
|Objective=
|enemies=
|nowalk=
}}

Optional Fields

All fields are optional. Fields not filled will not display a row. The following are notes on field usage:

  • nowalk
    • Displays a message at the bottom of the box noting a walkthrough for the level has yet to be written.
    • Set to any non-empty value to display the message.

Examples

No Walkthrough Notice

{{Level Infobox
|prev=1
|next=2
|game=3
|name=4
|image=
|player=5
|date=6
|place=7
|Objective=8
|enemies=9
|nowalk=
}}

Template:Level Infobox

Walkthrough Notice

{{Level Infobox
|prev=1
|next=2
|game=3
|name=4
|image=
|player=5
|date=6
|place=7
|Objective=8
|enemies=9
|nowalk=10
}}

Template:Level Infobox