Template:Chamber infobox: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 7: Line 7:
<div class="testchamber-number testchamber-display1">{{#if: {{{number|}}}|[[File:Test Chamber number - {{#substring:{{{number}}}|0|1}}.png|92px|link=]][[File:Test Chamber number - {{#substring:{{{number}}}|1|1}}.png|92px|link=]]|[[File:Test Chamber number - Question Mark.png|92px|link=]][[File:Test Chamber number - Question Mark.png|92px|link=]]}}</div><br/>
<div class="testchamber-number testchamber-display1">{{#if: {{{number|}}}|[[File:Test Chamber number - {{#substring:{{{number}}}|0|1}}.png|92px|link=]][[File:Test Chamber number - {{#substring:{{{number}}}|1|1}}.png|92px|link=]]|[[File:Test Chamber number - Question Mark.png|92px|link=]][[File:Test Chamber number - Question Mark.png|92px|link=]]}}</div><br/>
<div class="testchamber-arrows testchamber-display1">[[File:Test Chamber Infobox {{#if: {{{previous|}}}|previous|previous disabled}}.png|x36px|left|link={{{previous|}}}]][[File:Test Chamber Infobox {{#if: {{{next|}}}|next|next disabled}}.png|x36px|right|link={{{next|}}}]][[File:Test Chamber Infobox Portal Guy.png|x36px|center|link=]]</div>
<div class="testchamber-arrows testchamber-display1">[[File:Test Chamber Infobox {{#if: {{{previous|}}}|previous|previous disabled}}.png|x36px|left|link={{{previous|}}}]][[File:Test Chamber Infobox {{#if: {{{next|}}}|next|next disabled}}.png|x36px|right|link={{{next|}}}]][[File:Test Chamber Infobox Portal Guy.png|x36px|center|link=]]</div>
<div class="testchamber-progress testchamber-display1">{{{number|?}}}/{{{total|?}}}</div>
<div class="testchamber-progress testchamber-display1">[[File:Test Chamber number - {{#substring:{{{number|0}}}|0|1}}.png|8px|link=]][[File:Test Chamber number - {{#substring:{{{number|10}}}|1|1}}.png|8px|link=]]/[[File:Test Chamber number - {{#substring:{{{total|0}}}|0|1}}.png|8px|link=]][[File:Test Chamber number - {{#substring:{{{total|10}}}|1|1}}.png|8px|link=]]</div>
<hr/>
<hr/>
<div class="testchamber-meter testchamber-display1" style="height:18px; width:{{#expr:5 * {{{number|7}}}}}px;"></div>
<div class="testchamber-meter testchamber-display1" style="height:18px; width:{{#expr:5 * {{{number|7}}}}}px;"></div>

Revision as of 23:53, 4 May 2011


Test Chamber number - Question Mark.pngTest Chamber number - Question Mark.png

Test Chamber Infobox previous disabled.png
Test Chamber Infobox next disabled.png
Test Chamber Infobox Portal Guy.png
Test Chamber number - 0.pngTest Chamber number - 0.png/Test Chamber number - 0.pngTest Chamber number - 0.png


Chamber icon laser sensor.pngChamber icon laser redirection.pngChamber icon cube button.pngChamber icon cube dispenser.pngChamber icon cube hazard.png
Chamber icon player button.pngChamber icon water hazard.pngChamber icon turret hazard.pngChamber icon laser hazard.pngChamber icon dirty water.png
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-titleOptional: 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.
  • icon1icon15 – 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. If icon1 is not set, the icons will be hidden. Available icons:
  • gelindic1/gelindic2 – The state of the gel indicators, left and right respectively. If gelindic1 is not set, the indicators will be hidden. gelindic1 must be set to off if it's disabled but the other is enabled. gelindic2 defaults to off. Available states:
Template info.png This documentation is transcluded from Template:Chamber infobox/doc.