Difference between revisions of "Template:NASAT results by state by year"

From QBWiki
Jump to navigation Jump to search
(Created page with "{{#vardefine:max|0}}{{#loop:i|1|50|{{#vardefine:x|{{All states|{{#expr:{{#var:i}}-1}}}}}}{{#if:{{{ {{#var:x}}| }}}|{{#ifexpr:{{{ {{#var:x}} |0}}} > {{#var:max}}|{{#vardefine:m...")
 
Line 1: Line 1:
{{#vardefine:max|0}}{{#loop:i|1|50|{{#vardefine:x|{{All states|{{#expr:{{#var:i}}-1}}}}}}{{#if:{{{ {{#var:x}}| }}}|{{#ifexpr:{{{ {{#var:x}} |0}}} > {{#var:max}}|{{#vardefine:max|{{{ {{#var:x}} }}}}}}}{{#vardefine:p{{{ {{#var:x}} }}}|{{#var:x}}}}}}}}<includeonly>
+
{{#vardefine:max|0}}{{#loop:i|1|50|{{#vardefine:x|{{All states and DC|{{#expr:{{#var:i}}-1}}}}}}{{#if:{{{ {{#var:x}}| }}}|{{#ifexpr:{{{ {{#var:x}} |0}}} > {{#var:max}}|{{#vardefine:max|{{{ {{#var:x}} }}}}}}}{{#vardefine:p{{{ {{#var:x}} }}}|{{#var:x}}}}}}}}<includeonly>
 
{| class="wikitable"
 
{| class="wikitable"
 
! Place
 
! Place
Line 60: Line 60:
 
  |Colorado=
 
  |Colorado=
 
  |Connecticut=
 
  |Connecticut=
 +
|District of Columbia=
 
  |Delaware=   
 
  |Delaware=   
 
  |Florida=
 
  |Florida=

Revision as of 07:52, 20 June 2022

Input Output
{{NASAT results by state by year
 |California=9
 |Connecticut=10
 |Illinois=2
 |Iowa=21
 |Kentucky=15
 |Maryland=4
 |Michigan=7
 |Minnesota=13
 |Missouri=3
 |New Jersey=1
 |North Carolina=5
 |Pennsylvania=6
}}
Place State
1 New Jersey
2 Illinois
3 Missouri
4 Maryland
5 North Carolina
6 Pennsylvania
7 Michigan
9 California
10 Connecticut
13 Minnesota
15 Kentucky
21 Iowa

Full state template:

{{NASAT results by state by year
 |Alabama=
 |Alaska=
 |Arizona=
 |Arkansas=
 |California=
 |Colorado=
 |Connecticut=
 |District of Columbia=
 |Delaware=   
 |Florida=
 |Georgia=
 |Hawaii=
 |Idaho=
 |Illinois=
 |Indiana=
 |Iowa=
 |Kansas=
 |Kentucky=
 |Louisiana=
 |Maine=
 |Maryland=
 |Massachusetts=
 |Michigan=
 |Minnesota=
 |Mississippi=
 |Missouri=
 |Montana=
 |Nebraska=
 |Nevada=
 |New Hampshire=
 |New Jersey=
 |New Mexico=
 |New York=
 |North Carolina=
 |North Dakota=
 |Ohio=
 |Oklahoma=
 |Oregon=
 |Pennsylvania=
 |Rhode Island=
 |South Carolina=
 |South Dakota=
 |Tennessee=
 |Texas=
 |Utah=
 |Vermont=
 |Virginia=
 |Washington=
 |West Virginia=
 |Wisconsin=
 |Wyoming=
}}