Difference between revisions of "Template:PLTable"

From NY Science Standards Wiki
(Show the editor-judgment note once, at the bottom of the box, instead of after every example)
(Restyle: class-based markup, numbered badges, blue accent; footer reads "Notice: example questions")
Line 1: Line 1:
−
<div class="pltable-linear" style="background-color: #f8f9fa; border: 1px solid #c8ccd1; padding: 16px 16px 8px 16px; margin-bottom: 1em;">
+
<div class="pltable-linear">
−
{{#if:{{{Level1|}}}|<div style="display: flex; align-items: baseline; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #eaecf0;"><span style="margin-right: 8px; font-size: 1.2em; color: #54595d;">&#9744;</span><div><strong>Level 1:</strong> {{{Level1}}}{{#if:{{{Example1|}}}|&#32;<span class="pld-example">e.g. {{{Example1}}}</span>}}</div></div>}}
+
{{#if:{{{Level1|}}}|<div class="pld-row"><span class="pld-badge">1</span><div class="pld-text"><span class="pld-label">Level 1:</span> {{{Level1}}}{{#if:{{{Example1|}}}|&#32;<span class="pld-example">e.g. {{{Example1}}}</span>}}</div></div>}}
−
{{#if:{{{Level2|}}}|<div style="display: flex; align-items: baseline; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #eaecf0;"><span style="margin-right: 8px; font-size: 1.2em; color: #54595d;">&#9744;</span><div><strong>Level 2:</strong> {{{Level2}}}{{#if:{{{Example2|}}}|&#32;<span class="pld-example">e.g. {{{Example2}}}</span>}}</div></div>}}
+
{{#if:{{{Level2|}}}|<div class="pld-row"><span class="pld-badge">2</span><div class="pld-text"><span class="pld-label">Level 2:</span> {{{Level2}}}{{#if:{{{Example2|}}}|&#32;<span class="pld-example">e.g. {{{Example2}}}</span>}}</div></div>}}
−
{{#if:{{{Level3|}}}|<div style="display: flex; align-items: baseline; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #eaecf0;"><span style="margin-right: 8px; font-size: 1.2em; color: #54595d;">&#9744;</span><div><strong>Level 3:</strong> {{{Level3}}}{{#if:{{{Example3|}}}|&#32;<span class="pld-example">e.g. {{{Example3}}}</span>}}</div></div>}}
+
{{#if:{{{Level3|}}}|<div class="pld-row"><span class="pld-badge">3</span><div class="pld-text"><span class="pld-label">Level 3:</span> {{{Level3}}}{{#if:{{{Example3|}}}|&#32;<span class="pld-example">e.g. {{{Example3}}}</span>}}</div></div>}}
−
{{#if:{{{Level4|}}}|<div style="display: flex; align-items: baseline; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #eaecf0;"><span style="margin-right: 8px; font-size: 1.2em; color: #54595d;">&#9744;</span><div><strong>Level 4:</strong> {{{Level4}}}{{#if:{{{Example4|}}}|&#32;<span class="pld-example">e.g. {{{Example4}}}</span>}}</div></div>}}
+
{{#if:{{{Level4|}}}|<div class="pld-row"><span class="pld-badge">4</span><div class="pld-text"><span class="pld-label">Level 4:</span> {{{Level4}}}{{#if:{{{Example4|}}}|&#32;<span class="pld-example">e.g. {{{Example4}}}</span>}}</div></div>}}
−
{{#if:{{{Level5|}}}|<div style="display: flex; align-items: baseline; padding-bottom: 8px; margin-bottom: 8px;"><span style="margin-right: 8px; font-size: 1.2em; color: #54595d;">&#9744;</span><div><strong>Level 5:</strong> {{{Level5}}}{{#if:{{{Example5|}}}|&#32;<span class="pld-example">e.g. {{{Example5}}}</span>}}</div></div>}}
+
{{#if:{{{Level5|}}}|<div class="pld-row"><span class="pld-badge">5</span><div class="pld-text"><span class="pld-label">Level 5:</span> {{{Level5}}}{{#if:{{{Example5|}}}|&#32;<span class="pld-example">e.g. {{{Example5}}}</span>}}</div></div>}}
−
{{#if:{{{Example1|}}}{{{Example2|}}}{{{Example3|}}}{{{Example4|}}}{{{Example5|}}}|<div style="text-align: right; margin-top: -2px;"><span class="pld-example">Example questions<span class="pld-note pld-note-right" tabindex="0" data-note="Which PLD a question best matches is a judgment call by the wiki's editors. NYSED does not publish official mappings of exam questions to performance levels.">!</span></span></div>}}
+
{{#if:{{{Example1|}}}{{{Example2|}}}{{{Example3|}}}{{{Example4|}}}{{{Example5|}}}|<div class="pld-footer"><span class="pld-example">Notice: example questions<span class="pld-note pld-note-right" tabindex="0" data-note="Which PLD a question best matches is a judgment call by the wiki's editors. NYSED does not publish official mappings of exam questions to performance levels.">!</span></span></div>}}
−
</div>
+
</div><noinclude>
−
<noinclude>
+
Renders the performance level descriptions for a standard. Parameters <code>Level1</code> … <code>Level5</code> hold the PLD text. Optional <code>Example1</code> … <code>Example5</code> list an example released question for that level (e.g. <code>[[Questions:Pool Water Chemistry#q2|August 2026 Question 23]]</code>); when any example is given, a single hover/click note at the bottom of the box says the mappings are editorial judgments, since NYSED does not publish question-to-PLD mappings. Styling lives in [[MediaWiki:Common.css]] under "PLD".
−
Renders the performance level descriptions for a standard. Parameters <code>Level1</code> … <code>Level5</code> hold the PLD text. Optional <code>Example1</code> … <code>Example5</code> list an example released question for that level (e.g. <code>[[Questions:Pool Water Chemistry#q2|August 2026 Question 23]]</code>); when any example is given, a single hover/click note at the bottom of the box says the mappings are editorial judgments, since NYSED does not publish question-to-PLD mappings.
 
 
</noinclude>
 
</noinclude>

Revision as of 01:56, 16 October 2026




Renders the performance level descriptions for a standard. Parameters Level1 … Level5 hold the PLD text. Optional Example1 … Example5 list an example released question for that level (e.g. August 2026 Question 23); when any example is given, a single hover/click note at the bottom of the box says the mappings are editorial judgments, since NYSED does not publish question-to-PLD mappings. Styling lives in MediaWiki:Common.css under "PLD".