User:Iketsi/sandbox/loop
Appearance
< User:Iketsi | sandbox
{| class="wikitable sortable"
!'''State or territory'''
!'''Courses'''
!colspan="2" |'''as % of U.S. courses'''
!colspan="2" |'''per capita (/1M)'''
!colspan="2" |'''per 10,000 km<sup>2</sup> of dry land'''
{{for loop||call=List of disc golf courses in the United States/core
|pv=abbrev
|AL|AK|AZ|AR|CA|CO|CT|DE|FL|GA
|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD
|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ
|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC
|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY}}
|}<noinclude>
{{documentation}}
</noinclude>
<includeonly>{{List of disc golf courses in the United States/row
|state = {{US State Abbrev|{{{abbrev}}}}}
|num = {{formatnum:{{List of disc golf courses in the United States/data|{{{abbrev}}}}}|R}}
|countryCourses = {{formatnum:{{#lst:Disc golf|USA}}|R}}
|statePop = {{formatnum:{{#lst:List of states and territories of the United States by population|{{{abbrev}}}_2020}}|R}}
|stateArea = {{formatnum:{{List of disc golf courses in the United States/area|{{{abbrev}}}}}|R}}
}}
</includeonly>
<includeonly>|-
|{{#ifeq:{{{state}}}|Georgia|{{flag|Georgia (U.S. state)|name=Georgia}}|{{flag|{{{state}}}}}}}
|{{{num}}}
|{{bartable|{{#expr:{{{num}}}/{{{countryCourses}}}*100 round 1}}|%|12}}
|{{bartable|{{#expr:{{{num}}}/{{{statePop}}}*1000000 round 1}} ||1}}
|{{bartable|{{#expr:{{{num}}}/{{{stateArea}}}*10000 round 1}} ||4}}
</includeonly>