Difference between revisions of "Template:Rt"

From NY Science Standards Wiki
(Chemistry reference tables (2025 Edition): new template)
 
(Add the physics reference tables: physics chip color, equation-level row labels)
Line 1: Line 1:
−
<includeonly><span class="pld-chip pld-chip-chem rt-chip">[[{{#if:{{{row|}}}|{{{1}}}#{{{row}}}|{{{1}}}}}|{{#fas:table}}{{#ifeq:{{{label|}}}|none||&#32;{{#if:{{{label|}}}|{{{label}}}|{{#switch:{{{row|}}}|combined-gas-law=Combined gas law|heat=Heat equations|ppm=ppm|molarity=n = MV|coulombic-force=Coulombic force|temperature=K = °C + 273.15|pressure=1 atm = 101.3 kPa|mole=Mole relationships|#default={{#switch:{{{1}}}|Periodic Table of the Elements=Periodic Table|The Electromagnetic Spectrum=EM Spectrum|Symbols Used in Nuclear Chemistry=Nuclear Symbols|Selected Ions Forming Aqueous Solutions=Selected Ions|Mathematical and Computational Models=Equations|Mathematical Relationships=Relationships|Selected Units=Units|Selected Metric Prefixes=Metric Prefixes|#default={{{1}}}}}}}}}}}]]</span></includeonly><noinclude>
+
<includeonly><span class="pld-chip {{#switch:{{{1}}}|List of Physical Constants|Prefixes for Powers of 10|Vectors|Motion and Forces|Energy|Waves and Electromagnetic Radiation|The Electromagnetic Spectrum (Physics)|Electricity|Circuit Symbols|Series Circuits|Parallel Circuits=pld-chip-phys|#default=pld-chip-chem}} rt-chip">[[{{#if:{{{row|}}}|{{{1}}}#{{{row}}}|{{{1}}}}}|{{#fas:table}}{{#ifeq:{{{label|}}}|none||&#32;{{#if:{{{label|}}}|{{{label}}}|{{#switch:{{{row|}}}|combined-gas-law=Combined gas law|heat=Heat equations|ppm=ppm|molarity=n = MV|coulombic-force=Coulombic force|temperature=K = °C + 273.15|pressure=1 atm = 101.3 kPa|mole=Mole relationships|gravity=''g'' = 9.8 m/s<sup>2</sup>|gravitational-constant=''G''|speed-of-light=''c'' = 3.00 × 10<sup>8</sup> m/s|speed-of-sound=speed of sound|electronvolt=1 eV|electrostatic-constant=''k''|elementary-charge=''e''|planck=''h''|components=vector components|average-velocity=v̄ = ''d''/''t''|acceleration=''a'' = Δ''v''/''t''|vf-vi-at=''v''<sub>f</sub> = ''v''<sub>i</sub> + ''at''|d-vit-at2=''d'' = ''v''<sub>i</sub>''t'' + ½''at''<sup>2</sup>|vf2-vi2-2ad=''v''<sub>f</sub><sup>2</sup> = ''v''<sub>i</sub><sup>2</sup> + 2''ad''|fnet-ma=''F''<sub>net</sub> = ''ma''|fg-mg=''F''<sub>g</sub> = ''mg''|impulse=''F''<sub>net</sub>''t'' = ''m''Δ''v''|momentum=''p'' = ''mv''|gravitation=''F''<sub>g</sub> = ''Gm''<sub>1</sub>''m''<sub>2</sub>/''r''<sup>2</sup>|centripetal=''a''<sub>c</sub> = ''v''<sup>2</sup>/''r''|circumference=''C'' = 2π''r''|kinetic-energy=''KE'' = ½''mv''<sup>2</sup>|gravitational-pe=Δ''PE''<sub>g</sub> = ''mg''Δ''h''|spring-pe=''PE''<sub>s</sub> = ½''kx''<sup>2</sup>|work=''W'' = ''Fd''|net-work=''W''<sub>net</sub> = Δ''E''<sub>T</sub>|total-energy=''E''<sub>T</sub> = ''PE'' + ''KE'' + ''E''<sub>other</sub>|power=''P'' = ''W''/''t''|thermal-energy=''Q'' = ''mc''Δ''T''|efficiency=% efficiency|wave-speed=''v'' = ''f''λ|period=''T'' = 1/''f''|photon-energy=''E''<sub>photon</sub> = ''hf''|reflection=θ<sub>i</sub> = θ<sub>r</sub>|index-of-refraction=''n'' = ''c''/''v''|snell=''n''<sub>1</sub> sin θ<sub>1</sub> = ''n''<sub>2</sub> sin θ<sub>2</sub>|index-ratio=''n''<sub>2</sub>/''n''<sub>1</sub> = ''v''<sub>1</sub>/''v''<sub>2</sub> = λ<sub>1</sub>/λ<sub>2</sub>|lens-equation=1/''F'' = 1/''d''<sub>o</sub> + 1/''d''<sub>i</sub>|magnification=''h''<sub>i</sub>/''h''<sub>o</sub> = −''d''<sub>i</sub>/''d''<sub>o</sub>|coulomb=''F''<sub>e</sub> = ''kq''<sub>1</sub>''q''<sub>2</sub>/''r''<sup>2</sup>|electric-field=''F''<sub>e</sub> = ''qE''|w-qv=''W'' = ''qV''|electric-power=''P'' = ''VI'' = ''I''<sup>2</sup>''R'' = ''V''<sup>2</sup>/''R''|electrical-energy=''W'' = ''Pt'' = ''VIt''|ohm=''V'' = ''IR''|current=''I'' = Δ''q''/''t''|series-current=''I'' = ''I''<sub>1</sub> = ''I''<sub>2</sub> = …|series-voltage=''V'' = ''V''<sub>1</sub> + ''V''<sub>2</sub> + …|series-resistance=''R''<sub>eq</sub> = ''R''<sub>1</sub> + ''R''<sub>2</sub> + …|parallel-current=''I'' = ''I''<sub>1</sub> + ''I''<sub>2</sub> + …|parallel-voltage=''V'' = ''V''<sub>1</sub> = ''V''<sub>2</sub> = …|parallel-resistance=1/''R''<sub>eq</sub> = 1/''R''<sub>1</sub> + 1/''R''<sub>2</sub> + …|#default={{#switch:{{{1}}}|Periodic Table of the Elements=Periodic Table|The Electromagnetic Spectrum=EM Spectrum|Symbols Used in Nuclear Chemistry=Nuclear Symbols|Selected Ions Forming Aqueous Solutions=Selected Ions|Mathematical and Computational Models=Equations|Mathematical Relationships=Relationships|Selected Units=Units|Selected Metric Prefixes=Metric Prefixes|List of Physical Constants=Constants|Prefixes for Powers of 10=Prefixes|Vectors=Vectors|Motion and Forces=Motion and Forces|Energy=Energy equations|Waves and Electromagnetic Radiation=Waves equations|The Electromagnetic Spectrum (Physics)=EM Spectrum|Electricity=Electricity equations|Circuit Symbols=Circuit Symbols|Series Circuits=Series Circuits|Parallel Circuits=Parallel Circuits|#default={{{1}}}}}}}}}}}]]</span></includeonly><noinclude>
−
A small chip with a table icon that links to one of the [[Chemistry Reference Tables]]. It goes next to the standard on a question cluster page, in the <code>text1</code>, <code>text2</code>… parameters of [[Template:Examcluster]], to show that the question cannot be answered without that table. The chip's hover text is the table's page name.
+
A small chip with a table icon that links to one of the [[Chemistry Reference Tables]] or [[Physics Reference Tables]]. It goes next to the standard on a question cluster page, in the <code>text1</code>, <code>text2</code>… parameters of [[Template:Examcluster]], to show that the question cannot be answered without that table. The chip's hover text is the table's page name, and the chip takes the chemistry or physics color from the page name.
  
 
<pre>
 
<pre>
 
|text4=[[HS-PS1-9]] {{Rt|Mathematical and Computational Models|row=combined-gas-law}} {{Rt|Mathematical Relationships|row=temperature}}
 
|text4=[[HS-PS1-9]] {{Rt|Mathematical and Computational Models|row=combined-gas-law}} {{Rt|Mathematical Relationships|row=temperature}}
 
|text2=[[HS-PS1-8]] {{Rt|Symbols Used in Nuclear Chemistry}} {{Rt|Periodic Table of the Elements}}
 
|text2=[[HS-PS1-8]] {{Rt|Symbols Used in Nuclear Chemistry}} {{Rt|Periodic Table of the Elements}}
 +
|text3=[[HS-PS2-1]] {{Rt|Motion and Forces|row=fnet-ma}} {{Rt|List of Physical Constants|row=gravity}}
 
</pre>
 
</pre>
  
−
which gives: [[HS-PS1-9]] {{Rt|Mathematical and Computational Models|row=combined-gas-law}} {{Rt|Mathematical Relationships|row=temperature}} and [[HS-PS1-8]] {{Rt|Symbols Used in Nuclear Chemistry}} {{Rt|Periodic Table of the Elements}}
+
which gives: [[HS-PS1-9]] {{Rt|Mathematical and Computational Models|row=combined-gas-law}} {{Rt|Mathematical Relationships|row=temperature}} · [[HS-PS1-8]] {{Rt|Symbols Used in Nuclear Chemistry}} {{Rt|Periodic Table of the Elements}} · [[HS-PS2-1]] {{Rt|Motion and Forces|row=fnet-ma}} {{Rt|List of Physical Constants|row=gravity}}
  
 
* First parameter: the table's page name, exactly as the page is titled.
 
* First parameter: the table's page name, exactly as the page is titled.
−
* <code>row</code>: for the two equation tables, the row the question uses. The link then lands on that row. Rows of [[Mathematical and Computational Models]]: <code>combined-gas-law</code>, <code>heat</code>, <code>ppm</code>, <code>molarity</code>, <code>coulombic-force</code>. Rows of [[Mathematical Relationships]]: <code>temperature</code>, <code>pressure</code>, <code>mole</code>.
+
* <code>row</code>: the row of the table the question uses; the link then lands on that row and the chip shows that row's equation or constant. Every row id is listed on the table's page in its "Rows" section (chemistry: <code>combined-gas-law</code>, <code>heat</code>, <code>ppm</code>, <code>molarity</code>, <code>coulombic-force</code>, <code>temperature</code>, <code>pressure</code>, <code>mole</code>; physics: one id per equation or constant, such as <code>fnet-ma</code>, <code>kinetic-energy</code>, <code>wave-speed</code>, <code>ohm</code>, <code>gravity</code>).
−
* <code>label</code>: text to show after the icon instead of the default short name (<code>label=none</code> shows the icon alone).
+
* <code>label</code>: text to show after the icon instead of the default (<code>label=none</code> shows the icon alone).
−
 
 
−
Default labels: Periodic Table · EM Spectrum · Nuclear Symbols · Selected Ions · Equations · Relationships · Units · Metric Prefixes, and for rows: Combined gas law · Heat equations · ppm · n = MV · Coulombic force · K = °C + 273.15 · 1 atm = 101.3 kPa · Mole relationships.
 
  
 
The chip reuses the <code>pld-chip</code> styles from [[MediaWiki:Common.css]]; the extra <code>rt-chip</code> class is there in case the chips ever need a style of their own.
 
The chip reuses the <code>pld-chip</code> styles from [[MediaWiki:Common.css]]; the extra <code>rt-chip</code> class is there in case the chips ever need a style of their own.
 
</noinclude>
 
</noinclude>

Revision as of 16:23, 25 October 2026

A small chip with a table icon that links to one of the Chemistry Reference Tables or Physics Reference Tables. It goes next to the standard on a question cluster page, in the text1, text2… parameters of Template:Examcluster, to show that the question cannot be answered without that table. The chip's hover text is the table's page name, and the chip takes the chemistry or physics color from the page name.

|text4=[[HS-PS1-9]] {{Rt|Mathematical and Computational Models|row=combined-gas-law}} {{Rt|Mathematical Relationships|row=temperature}}
|text2=[[HS-PS1-8]] {{Rt|Symbols Used in Nuclear Chemistry}} {{Rt|Periodic Table of the Elements}}
|text3=[[HS-PS2-1]] {{Rt|Motion and Forces|row=fnet-ma}} {{Rt|List of Physical Constants|row=gravity}}

which gives: HS-PS1-9 Combined gas law K = °C + 273.15 · HS-PS1-8 Nuclear Symbols Periodic Table · HS-PS2-1 Fnet = ma g = 9.8 m/s2

  • First parameter: the table's page name, exactly as the page is titled.
  • row: the row of the table the question uses; the link then lands on that row and the chip shows that row's equation or constant. Every row id is listed on the table's page in its "Rows" section (chemistry: combined-gas-law, heat, ppm, molarity, coulombic-force, temperature, pressure, mole; physics: one id per equation or constant, such as fnet-ma, kinetic-energy, wave-speed, ohm, gravity).
  • label: text to show after the icon instead of the default (label=none shows the icon alone).

The chip reuses the pld-chip styles from MediaWiki:Common.css; the extra rt-chip class is there in case the chips ever need a style of their own.