Template:Chamber infobox: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<div class="testchamber"> <div class="testchamber-header"></div> <div class="testchamber-content"> <hr/> <div class="testchamber-number">{{{number|?}}}</div> <div class="testcham...") |
Matthew250 (talk | contribs) (Undo revision 185429 by CatMurderer (talk)) |
||
(48 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
<div class="testchamber"> | {{DISPLAYTITLE:''{{{title|<!---->{{PAGENAME}}<!---->}}}''|noreplace}} | ||
<div class="testchamber {{#if: {{{dirty|}}}|dirty}}"> | |||
<div class="testchamber-header"></div> | <div class="testchamber-header"></div> | ||
<div class="testchamber-content"> | <div class="testchamber-content"> | ||
<hr/> | <div class="testchamber-title testchamber-display1">{{{title|}}}</div> | ||
<div class="testchamber-number">{{{number|?}}}</div> | <div class="testchamber-map testchamber-display1"><code>{{{map|}}}</code> {{#if:{{{valve-title|}}}|<span class="testchamber-valvetitle">{{{valve-title|}}}</span>}}</div> | ||
<div class="testchamber-arrows">[[File:Test Chamber Infobox {{#if: {{{previous|}}}|previous|previous disabled}}.png| | <hr /> | ||
<div class="testchamber-progress">{{{number| | <div class="testchamber-number testchamber-display1"><!-- | ||
<hr/> | -->[[File:Chamber number {{#substring:{{{number|??}}}|0|1}}.png|92px|link=]]<!-- | ||
<div class="testchamber-meter" | -->[[File:Chamber number {{#substring:{{{number|??}}}|1|1}}.png|92px|link=]]</div> | ||
<br /> | |||
[[File: | <div class="testchamber-arrows testchamber-display1"><!-- | ||
[[File: | -->[[File:Test Chamber Infobox {{#if:{{{previous|}}}|previous|previous disabled}}.png|x36px|left|link={{{previous|}}}]]<!-- | ||
[[File: | -->[[File:Test Chamber Infobox {{#if:{{{next|}}}|next|next disabled}}.png|x36px|right|link={{{next|}}}]]<!-- | ||
[[File: | -->[[File:Test Chamber Infobox Portal Guy.png|x36px|center|link=]]</div> | ||
[[File: | <div class="testchamber-progress testchamber-display1"><!-- | ||
[[File: | -->[[File:Chamber progress {{#substring:{{{number|00}}}|0|1}}.png|8px|link=]]<!-- | ||
[[File: | -->[[File:Chamber progress {{#substring:{{{number|00}}}|1|1}}.png|8px|link=]]<!-- | ||
[[File: | -->[[File:Chamber progress slash.png|8px|link=]]<!-- | ||
[[File: | -->[[File:Chamber progress {{#substring:{{{total|00}}}|0|1}}.png|8px|link=]]<!-- | ||
[[File: | -->[[File:Chamber progress {{#substring:{{{total|00}}}|1|1}}.png|8px|link=]]</div><!-- | ||
-->{{#if: {{{noprogress|}}}||<hr /> | |||
<div class="testchamber-meter testchamber-display1" style="height:18px; max-width:104%; width:{{#expr:({{{number|0}}}/{{{total|19}}})*99}}%;"></div>}} | |||
<hr /> | |||
<div class="testchamber-screenshot testchamber-display2"><!-- | |||
-->[[File:{{{screenshot|Screenshot needed.png}}}|264px]]</div><!-- | |||
-->{{#if:{{{icon1|}}}|<div class="testchamber-icons testchamber-display2"><!-- | |||
-->[[File:Chamber icon {{{icon1|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon2|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon3|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon4|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon5|empty}}}.png|48px|link=]]<!-- | |||
--><br /><!-- | |||
-->[[File:Chamber icon {{{icon6|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon7|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon8|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon9|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon10|empty}}}.png|48px|link=]]<!-- | |||
-->{{#if:{{{icon11|}}}|<br /><!-- | |||
-->[[File:Chamber icon {{{icon11|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon12|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon13|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon14|empty}}}.png|48px|link=]]<!-- | |||
-->[[File:Chamber icon {{{icon15|empty}}}.png|48px|link=]]}}</div>}}<!-- | |||
-->{{#if:{{{gelindic1|}}}|<hr /><div class="testchamber-gels testchamber-display2"><!-- | |||
-->[[File:Chamber gel indicator {{{gelindic1|off}}}.png|x48px|link=]][[File:Chamber gel indicator {{{gelindic2|off}}}.png|x48px|link=]]</div>}} | |||
</div> | </div> | ||
<div class="testchamber-footer"></div> | <div class="testchamber-footer"></div> | ||
</div> | </div><noinclude> | ||
{{Template doc}} | |||
</noinclude> |
Latest revision as of 04:57, 13 June 2023
Note: portions of the template sample may not be visible without values provided. This is normal.
Documentation for Chamber infobox
Attributes
title
– The title of the chamber. It should be the same as the page name, with the "game" identifier removed.valve-title
– Optional: The Valve-assigned title of the chamber, as seen in the challenge mode of single player.map
– The .bsp map file in which the test chamber resides.dirty
– If set, will use the "dirty" style of the test chamber panel.number
– The numerical identifier of the test chamber.previous
– The name of the previous test chamber's page.next
– The name of the next test chamber's page.total
– The total amount of test chambers as reported by the in-game test chamber signs.screenshot
– The name of an uploaded screenshot to be used within the infobox.noprogress
– If set, will hide the progress bar.icon1
–icon15
– Set these to the icons as shown on the in-game signs. Add "on" to the end to make them fully opaque, otherwise they default to semitransparent. Ificon1
is not set, the icons will be hidden. Available icons:
gelindic1/gelindic2
– The state of the gel indicators, left and right respectively. Ifgelindic1
is not set, the indicators will be hidden.gelindic1
must be set tooff
if it's disabled but the other is enabled.gelindic2
defaults tooff.
Available states:
blue (Repulsion Gel)
orange (Propulsion Gel)
- This documentation is transcluded from Template:Chamber infobox/doc.