Difference between revisions of "Template:Examcluster"
From NY Science Standards Wiki
(Widen question and answer-key images from 730px to 900px) |
(Add a "Practice these questions" button linking to Special:Practice/<cluster>; it shows only while the ClusterPractice extension is installed (via Claude)) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{{Clusterinfo|type={{{type|}}}|name={{{name|{{PAGENAME}}}}}|exam={{{exam|}}}|examfull={{{examfull|}}}|exampage={{{exampage|}}}|cluster={{{cluster|}}}|of={{{of|}}}|released={{{released|}}}|first={{{num1|1}}}|last={{#if:{{{10|}}}|{{{num10|10}}}|{{#if:{{{9|}}}|{{{num9|9}}}|{{#if:{{{8|}}}|{{{num8|8}}}|{{#if:{{{7|}}}|{{{num7|7}}}|{{#if:{{{6|}}}|{{{num6|6}}}|{{#if:{{{5|}}}|{{{num5|5}}}|{{#if:{{{4|}}}|{{{num4|4}}}|{{#if:{{{3|}}}|{{{num3|3}}}|{{#if:{{{2|}}}|{{{num2|2}}}|{{{num1|1}}}}}}}}}}}}}}}}}}}}}}} | + | <includeonly>{{Clusterinfo|type={{{type|}}}|name={{{name|{{PAGENAME}}}}}|exam={{{exam|}}}|examfull={{{examfull|}}}|exampage={{{exampage|}}}|cluster={{{cluster|}}}|of={{{of|}}}|released={{{released|}}}|first={{{num1|1}}}|last={{#if:{{{10|}}}|{{{num10|10}}}|{{#if:{{{9|}}}|{{{num9|9}}}|{{#if:{{{8|}}}|{{{num8|8}}}|{{#if:{{{7|}}}|{{{num7|7}}}|{{#if:{{{6|}}}|{{{num6|6}}}|{{#if:{{{5|}}}|{{{num5|5}}}|{{#if:{{{4|}}}|{{{num4|4}}}|{{#if:{{{3|}}}|{{{num3|3}}}|{{#if:{{{2|}}}|{{{num2|2}}}|{{{num1|1}}}}}}}}}}}}}}}}}}}}}}}{{#ifexist:Special:Practice|<div class="cluster-practice-link" style="max-width:960px;margin:0 auto 1.2em;">[[Special:Practice/{{PAGENAME}}|<span style="display:inline-flex;align-items:center;gap:6px;padding:5px 14px;border:1px solid #b9cde4;border-radius:5px;background:#eaf1f9;color:#0c447c;font-weight:600;">{{#fas:pencil}} Practice these questions</span>]]</div>}}__NOTOC__<div id="question-images">{{#if:{{{1|}}}|<div style="max-width:960px;margin:0 auto;"><h2 id="q1" style="text-align:left;font-size:1.15em;font-weight:600;line-height:1.5;margin:0 0 0.3em 0;padding:0;border:0;">Question {{{num1|1}}}{{#if:{{{text1|}}}| · {{{text1}}}}}</h2><div style="text-align:center;">[[File:{{{1}}}|960px|link=|alt={{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num1|1}}}|{{{exam|}}} question {{{num1|1}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div>{{#if:{{{answer1|}}}|<div class="sp-pe mw-collapsible mw-collapsed" data-expandtext="Key" data-collapsetext="Hide key" style="text-align:right;"><div style="margin:0 auto;text-align:center;">[[File:{{{answer1}}}|960px|link=|alt=Answer key: {{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num1|1}}}|{{{exam|}}} question {{{num1|1}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div></div>}}</div>}}{{#if:{{{br1|}}}|<br><br>}}{{#if:{{{2|}}}|<div style="max-width:960px;margin:0 auto;"><h2 id="q2" style="text-align:left;font-size:1.15em;font-weight:600;line-height:1.5;margin:0 0 0.3em 0;padding:0;border:0;">Question {{{num2|2}}}{{#if:{{{text2|}}}| · {{{text2}}}}}</h2><div style="text-align:center;">[[File:{{{2}}}|960px|link=|alt={{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num2|2}}}|{{{exam|}}} question {{{num2|2}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div>{{#if:{{{answer2|}}}|<div class="sp-pe mw-collapsible mw-collapsed" data-expandtext="Key" data-collapsetext="Hide key" style="text-align:right;"><div style="margin:0 auto;text-align:center;">[[File:{{{answer2}}}|960px|link=|alt=Answer key: {{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num2|2}}}|{{{exam|}}} question {{{num2|2}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div></div>}}</div>}}{{#if:{{{br2|}}}|<br><br>}}{{#if:{{{3|}}}|<div style="max-width:960px;margin:0 auto;"><h2 id="q3" style="text-align:left;font-size:1.15em;font-weight:600;line-height:1.5;margin:0 0 0.3em 0;padding:0;border:0;">Question {{{num3|3}}}{{#if:{{{text3|}}}| · {{{text3}}}}}</h2><div style="text-align:center;">[[File:{{{3}}}|960px|link=|alt={{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num3|3}}}|{{{exam|}}} question {{{num3|3}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div>{{#if:{{{answer3|}}}|<div class="sp-pe mw-collapsible mw-collapsed" data-expandtext="Key" data-collapsetext="Hide key" style="text-align:right;"><div style="margin:0 auto;text-align:center;">[[File:{{{answer3}}}|960px|link=|alt=Answer key: {{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num3|3}}}|{{{exam|}}} question {{{num3|3}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div></div>}}</div>}}{{#if:{{{br3|}}}|<br><br>}}{{#if:{{{4|}}}|<div style="max-width:960px;margin:0 auto;"><h2 id="q4" style="text-align:left;font-size:1.15em;font-weight:600;line-height:1.5;margin:0 0 0.3em 0;padding:0;border:0;">Question {{{num4|4}}}{{#if:{{{text4|}}}| · {{{text4}}}}}</h2><div style="text-align:center;">[[File:{{{4}}}|960px|link=|alt={{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num4|4}}}|{{{exam|}}} question {{{num4|4}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div>{{#if:{{{answer4|}}}|<div class="sp-pe mw-collapsible mw-collapsed" data-expandtext="Key" data-collapsetext="Hide key" style="text-align:right;"><div style="margin:0 auto;text-align:center;">[[File:{{{answer4}}}|960px|link=|alt=Answer key: {{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num4|4}}}|{{{exam|}}} question {{{num4|4}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div></div>}}</div>}}{{#if:{{{br4|}}}|<br><br>}}{{#if:{{{5|}}}|<div style="max-width:960px;margin:0 auto;"><h2 id="q5" style="text-align:left;font-size:1.15em;font-weight:600;line-height:1.5;margin:0 0 0.3em 0;padding:0;border:0;">Question {{{num5|5}}}{{#if:{{{text5|}}}| · {{{text5}}}}}</h2><div style="text-align:center;">[[File:{{{5}}}|960px|link=|alt={{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num5|5}}}|{{{exam|}}} question {{{num5|5}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div>{{#if:{{{answer5|}}}|<div class="sp-pe mw-collapsible mw-collapsed" data-expandtext="Key" data-collapsetext="Hide key" style="text-align:right;"><div style="margin:0 auto;text-align:center;">[[File:{{{answer5}}}|960px|link=|alt=Answer key: {{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num5|5}}}|{{{exam|}}} question {{{num5|5}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div></div>}}</div>}}{{#if:{{{br5|}}}|<br><br>}}{{#if:{{{6|}}}|<div style="max-width:960px;margin:0 auto;"><h2 id="q6" style="text-align:left;font-size:1.15em;font-weight:600;line-height:1.5;margin:0 0 0.3em 0;padding:0;border:0;">Question {{{num6|6}}}{{#if:{{{text6|}}}| · {{{text6}}}}}</h2><div style="text-align:center;">[[File:{{{6}}}|960px|link=|alt={{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num6|6}}}|{{{exam|}}} question {{{num6|6}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div>{{#if:{{{answer6|}}}|<div class="sp-pe mw-collapsible mw-collapsed" data-expandtext="Key" data-collapsetext="Hide key" style="text-align:right;"><div style="margin:0 auto;text-align:center;">[[File:{{{answer6}}}|960px|link=|alt=Answer key: {{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num6|6}}}|{{{exam|}}} question {{{num6|6}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div></div>}}</div>}}{{#if:{{{br6|}}}|<br><br>}}{{#if:{{{7|}}}|<div style="max-width:960px;margin:0 auto;"><h2 id="q7" style="text-align:left;font-size:1.15em;font-weight:600;line-height:1.5;margin:0 0 0.3em 0;padding:0;border:0;">Question {{{num7|7}}}{{#if:{{{text7|}}}| · {{{text7}}}}}</h2><div style="text-align:center;">[[File:{{{7}}}|960px|link=|alt={{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num7|7}}}|{{{exam|}}} question {{{num7|7}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div>{{#if:{{{answer7|}}}|<div class="sp-pe mw-collapsible mw-collapsed" data-expandtext="Key" data-collapsetext="Hide key" style="text-align:right;"><div style="margin:0 auto;text-align:center;">[[File:{{{answer7}}}|960px|link=|alt=Answer key: {{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num7|7}}}|{{{exam|}}} question {{{num7|7}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div></div>}}</div>}}{{#if:{{{br7|}}}|<br><br>}}{{#if:{{{8|}}}|<div style="max-width:960px;margin:0 auto;"><h2 id="q8" style="text-align:left;font-size:1.15em;font-weight:600;line-height:1.5;margin:0 0 0.3em 0;padding:0;border:0;">Question {{{num8|8}}}{{#if:{{{text8|}}}| · {{{text8}}}}}</h2><div style="text-align:center;">[[File:{{{8}}}|960px|link=|alt={{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num8|8}}}|{{{exam|}}} question {{{num8|8}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div>{{#if:{{{answer8|}}}|<div class="sp-pe mw-collapsible mw-collapsed" data-expandtext="Key" data-collapsetext="Hide key" style="text-align:right;"><div style="margin:0 auto;text-align:center;">[[File:{{{answer8}}}|960px|link=|alt=Answer key: {{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num8|8}}}|{{{exam|}}} question {{{num8|8}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div></div>}}</div>}}{{#if:{{{br8|}}}|<br><br>}}{{#if:{{{9|}}}|<div style="max-width:960px;margin:0 auto;"><h2 id="q9" style="text-align:left;font-size:1.15em;font-weight:600;line-height:1.5;margin:0 0 0.3em 0;padding:0;border:0;">Question {{{num9|9}}}{{#if:{{{text9|}}}| · {{{text9}}}}}</h2><div style="text-align:center;">[[File:{{{9}}}|960px|link=|alt={{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num9|9}}}|{{{exam|}}} question {{{num9|9}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div>{{#if:{{{answer9|}}}|<div class="sp-pe mw-collapsible mw-collapsed" data-expandtext="Key" data-collapsetext="Hide key" style="text-align:right;"><div style="margin:0 auto;text-align:center;">[[File:{{{answer9}}}|960px|link=|alt=Answer key: {{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num9|9}}}|{{{exam|}}} question {{{num9|9}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div></div>}}</div>}}{{#if:{{{br9|}}}|<br><br>}}{{#if:{{{10|}}}|<div style="max-width:960px;margin:0 auto;"><h2 id="q10" style="text-align:left;font-size:1.15em;font-weight:600;line-height:1.5;margin:0 0 0.3em 0;padding:0;border:0;">Question {{{num10|10}}}{{#if:{{{text10|}}}| · {{{text10}}}}}</h2><div style="text-align:center;">[[File:{{{10}}}|960px|link=|alt={{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num10|10}}}|{{{exam|}}} question {{{num10|10}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div>{{#if:{{{answer10|}}}|<div class="sp-pe mw-collapsible mw-collapsed" data-expandtext="Key" data-collapsetext="Hide key" style="text-align:right;"><div style="margin:0 auto;text-align:center;">[[File:{{{answer10}}}|960px|link=|alt=Answer key: {{#ifeq:{{{type|}}}|sample|{{{name|{{PAGENAME}}}}} Sample Cluster, question {{{num10|10}}}|{{{exam|}}} question {{{num10|10}}}, {{{name|{{PAGENAME}}}}} cluster}}]]</div></div>}}</div>}}{{#if:{{{br10|}}}|<br><br>}}</div></includeonly><noinclude> |
Lays out a question cluster page: title, intro sentence, description, then each question with its answer. It replaces [[Template:Questionclusters]] and uses the same numbered parameters, plus a few that describe the exam. | Lays out a question cluster page: title, intro sentence, description, then each question with its answer. It replaces [[Template:Questionclusters]] and uses the same numbered parameters, plus a few that describe the exam. | ||
| Line 22: | Line 22: | ||
The title, intro sentence and description wording live in [[Template:Clusterinfo]]. | The title, intro sentence and description wording live in [[Template:Clusterinfo]]. | ||
| + | |||
| + | When the ClusterPractice extension is installed, a "Practice these questions" button under the intro links to the practice version of the cluster ([[Special:Practice]]). Without the extension the button doesn't appear. | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:49, 5 November 2026
Lays out a question cluster page: title, intro sentence, description, then each question with its answer. It replaces Template:Questionclusters and uses the same numbered parameters, plus a few that describe the exam.
{{Examcluster
|name=Photosynthetic Pathways
|exam=June 2026 Chemistry Regents
|examfull=June 2026 Regents Examination in Physical Science: Chemistry
|exampage=June 2026 Chemistry Exam
|cluster=9 |of=11
|1=Chemistry Ju26 38.png |num1=38 |text1=[[HS-LS1-5]] |answer1=Chemistry Ju26 38a.png |br1=yes
|2=Chemistry Ju26 39.png |num2=39 |text2=[[HS-PS1-8]] |answer2=Chemistry Ju26 39a.png
}}
name: cluster name as it should appear in the title.exam: short exam name, used in the title, description and image alt text.examfull: official exam name, used in the intro sentence.exampage: the wiki page for that exam.cluster,of: position of the cluster on the exam.1–10: question image files.num1…: the question's number on the exam.text1…: the standard.answer1…: answer image.br1…: extra space after the question.- For a sample cluster add
type=sampleandreleased=spring 2025, and givenamewithout the words "Sample Cluster".
The title, intro sentence and description wording live in Template:Clusterinfo.
When the ClusterPractice extension is installed, a "Practice these questions" button under the intro links to the practice version of the cluster (Special:Practice). Without the extension the button doesn't appear.