Template:Level infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} ?class="infoboxlabel" style="[^\n"]+" {{!}}↵([^\n]+):↵{{!}} ?class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to "{{Infobox|entry|title=$2|content=$1}}")
mNo edit summary
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:260px; background:{{{BG|#7995CA}}}; color:{{{color1|#000}}}" cellspacing="0"
{{Infobox|start|bg=#7995CA}}
{{Infobox|entry|title=Prev|content={{{prev|}}}}}
{{Infobox|entry|title=Prev|content={{{prev|}}}}}
{{Infobox|entry|title=Concurrent|content={{{concurrent|}}}}}
{{Infobox|entry|title=Concurrent|content={{{concurrent|}}}}}
{{Infobox|entry|title=Next|content={{{next|}}}}}
{{Infobox|entry|title=Next|content={{{next|}}}}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color2|#fff}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
 
|-
{{Infobox|title|name={{{name|}}}}}
{{#if:{{{image|}}}|
{{Infobox|media|content={{{image|}}}|caption={{{caption|}}}|bg=#B4C5E3}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#B4C5E3}}}; border-bottom:1px solid {{{lineBG|#999}}}" {{!}} {{{image}}} {{#if:{{{caption|}}}|{{clear}}{{{caption}}}}}
 
}}
{{Infobox|entry|title={{{game-title|Game}}}|content={{{game|}}}}}
|-
{{Infobox|entry|title=Game|content={{{game|}}}}}
{{Infobox|entry|title={{{devname-title|[[Map file]] name {{Tooltip|(?)|This map's name in the game files.}}}}}|content={{{devname|}}}}}
{{Infobox|entry|title={{{devname-title|[[Map file]] name {{Tooltip|(?)|This map's name in the game files.}}}}}|content={{{devname|}}}}}
{{Infobox|entry|title={{{player-title|Player}}}|content={{{player|}}}}}
{{Infobox|entry|title={{{player-title|Player}}}|content={{{player|}}}}}
Line 17: Line 15:
{{Infobox|entry|title={{{partime-title|Par Time}}}|content={{{partime|}}}}}
{{Infobox|entry|title={{{partime-title|Par Time}}}|content={{{partime|}}}}}
{{Infobox|entry|title={{{parscore-title|Par Score}}}|content={{{parscore|}}}}}
{{Infobox|entry|title={{{parscore-title|Par Score}}}|content={{{parscore|}}}}}
{{#if:{{{hsa-gold|}}}|
 
{{!}} class="infoboxlabel" colspan="2" style="background:{{{fieldBG|transparent}}}; text-align:center; font-size:130%; color:{{{color1|#fff}}}" {{!}} [[Halo: Spartan Assault|''<span style="color:{{{color1|#fff}}}">Spartan Assault</span>'']] scores
{{Infobox|section|title=''[[Halo Wars]]'' medals|entries=
{{!}}-
{{Infobox|colspan|align=left|content={{#if:{{{hw-gold|}}}|<div style="display:table;margin:auto">[[File:HW Medal Gold.png|32px|link=]] {{{hw-gold}}}<br>[[File:HW Medal Silver.png|32px|link=]] {{{hw-silver|XXX}}}<br>[[File:HW Medal Bronze.png|32px|link=]] {{{hw-bronze|XXX}}}<br>[[File:HW Medal Tin.png|32px|link=]] {{{hw-tin|XXX}}}</div>}}}}
{{!}} class="infoboxcell" colspan="2" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; text-align:center" {{!}}
[[File:HSA Star Gold.png|32px|link=]]{{{hsa-gold|XXX}}} [[File:HSA Star Silver.png|32px|link=]]{{{hsa-silver|XXX}}} [[File:HSA Star Bronze.png|32px|link=]]{{{hsa-bronze|XXX}}}
}}
}}
|-
 
{{#if:{{{hss-gold|}}}|
{{Infobox|section|title=[[Halo: Spartan Assault|''Spartan Assault'']] scores|entries=
{{!}} class="infoboxlabel" colspan="2" style="background:{{{fieldBG|transparent}}}; text-align:center; font-size:130%; color:{{{color1|#fff}}}" {{!}} [[Halo: Spartan Strike|''<span style="color:{{{color1|#fff}}}">Spartan Strike</span>'']] scores
{{Infobox|colspan|content={{#if:{{{hsa-gold|}}}|[[File:HSA Star Gold.png|32px|link=]]{{{hsa-gold}}} • [[File:HSA Star Silver.png|32px|link=]]{{{hsa-silver|XXX}}} • [[File:HSA Star Bronze.png|32px|link=]]{{{hsa-bronze|XXX}}}}}}}
{{!}}-
{{!}} class="infoboxcell" colspan="2" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}; text-align:center" {{!}}
[[File:HSA Star Gold.png|32px|link=]]{{{hss-gold|XXX}}} • [[File:HSA Star Silver.png|32px|link=]]{{{hss-silver|XXX}}} • [[File:HSA Star Bronze.png|32px|link=]]{{{hss-bronze|XXX}}}
}}
}}
|-
 
{{#if:{{{nowalk|}}}||
{{Infobox|section|title=[[Halo: Spartan Strike|''Spartan Strike'']] scores|entries=
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}[[File:Main-Legendary.png|55px|link={{FULLURL:{{PAGENAME}}/Walkthrough|action=edit}}|center]]
{{Infobox|colspan|content={{#if:{{{hss-gold|}}}|[[File:HSA Star Gold.png|32px|link=]]{{{hss-gold}}} • [[File:HSA Star Silver.png|32px|link=]]{{{hss-silver|XXX}}} • [[File:HSA Star Bronze.png|32px|link=]]{{{hss-bronze|XXX}}}}}}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F0F0F0}}}; border-color:{{{lineBG|#999}}}" {{!}}
{{#ifexist:{{FULLPAGENAME}}/Walkthrough|{{SITENAME}} has a walkthrough guide for this level; see [[{{FULLPAGENAME}}/Walkthrough]].|{{SITENAME}} doesn't currently have a walkthrough for this level; could you [{{FULLURL:{{FULLPAGENAME}}/Walkthrough|action=edit}} write one]?}}
}}
}}
|-
{{Infobox|end}}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Campaign level {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}{{#if:{{{pagegamelabel|}}}|<nowiki/> - {{#acronym:all|{{{pagegamelabel}}}|title|{{{pagegamelabel}}}}}}}}}</includeonly><noinclude>{{clear}}


{{Infobox|entry|title=[[File:Main-Legendary.png|55px|center|link=]]|colon=|content={{#ifexist:{{FULLPAGENAME}}/Walkthrough|{{SITENAME}} has a walkthrough guide for this level; see [[{{FULLPAGENAME}}/Walkthrough]].|{{SITENAME}} doesn't currently have a walkthrough for this level; could you [{{FULLURL:{{FULLPAGENAME}}/Walkthrough|action=edit}} write one]?}}}}
{{Infobox|end}}<includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Campaign level}}}|label2={{#acronym:game|{{{pagegamelabel|}}}|title|{{{pagegamelabel|}}}}}}}</includeonly><noinclude>{{clear}}
==Usage==
==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:
Line 57: Line 49:
|parscore=
|parscore=
|partime=
|partime=
}}</pre>
}}
</pre>


===Special fields===
===Special fields===
;''Halo Wars''
:<code>hw-gold</code> corresponds to Gold medal, <code>hw-silver</code> corresponds to Silver medal, <code>hw-bronze</code> corresponds to Bronze medal, and <code>hw-tin</code> corresponds to Tin medal.
<pre>
|hw-gold=
|hw-silver=
|hw-bronze=
|hw-tin=
</pre>
;''Halo: Spartan Assault''
;''Halo: Spartan Assault''
:<code>hsa-gold</code> corresponds to Gold score, <code>hsa-silver</code> corresponds to Silver score, and <code>hsa-bronze</code> corresponds to Bronze score.
:<code>hsa-gold</code> corresponds to Gold score, <code>hsa-silver</code> corresponds to Silver score, and <code>hsa-bronze</code> corresponds to Bronze score.
Line 76: Line 79:
|hss-silver=
|hss-silver=
|hss-bronze=
|hss-bronze=
</pre>
===Optional fields===
All fields are ''optional''. Fields not filled will not display a row.
*nowalk
**Disables the walkthrough available/unavailable notice. Use for cutscenes.
**Set to any non-empty value to use.
<pre>
|imageBG=
|nameBG=
|sectionBG=
|fieldBG=
|titleBG=
</pre>
</pre>


[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Latest revision as of 13:03, March 22, 2024

Level infobox
Main-Legendary.png

Halopedia doesn't currently have a walkthrough for this level; could you write one?

 

Usage

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

{{Level infobox
|prev=
|concurrent=
|next=
|game=
|devname=
|name=
|image=
|player=
|date=
|place=
|objective=
|parscore=
|partime=
}}

Special fields

Halo Wars
hw-gold corresponds to Gold medal, hw-silver corresponds to Silver medal, hw-bronze corresponds to Bronze medal, and hw-tin corresponds to Tin medal.
|hw-gold=
|hw-silver=
|hw-bronze=
|hw-tin=
Halo: Spartan Assault
hsa-gold corresponds to Gold score, hsa-silver corresponds to Silver score, and hsa-bronze corresponds to Bronze score.
|hsa-gold=
|hsa-silver=
|hsa-bronze=
Halo: Spartan Strike
hss-gold corresponds to Gold score, hss-silver corresponds to Silver score, and hss-bronze corresponds to Bronze score,
|hss-gold=
|hss-silver=
|hss-bronze=