User:Jweers/Test4

From Open Energy Information
Under DevelopmentTest Page

RAPID Sections Test

Need to make
<li data-name="Land Use Planning Process" data-categories="Category:Regulatory Roadmap Federal Sections,Category:Geothermal Regulatory Roadmap Sections" data-topic="1" data-section-code="FD">[[1-FD-a: Land Use Planning Process]]</li>


Raw Array Response

RAPID/Roadmap/1<PROP>Land Use Planning Overview<PROP>1<PROP>0V<PROP>Category:Regulatory Roadmap Overview Sections<MANY>Category:Geothermal Regulatory Roadmap Sections<MANY>Category:RAPID Toolkit<MANY>Category:Regulatory Roadmap
RAPID/Roadmap/1-AK-a<PROP>Land Use Planning<PROP>1<PROP>AK<PROP>Category:Regulatory Roadmap State Sections<MANY>Category:Geothermal Regulatory Roadmap Sections<MANY>Category:RAPID Toolkit<MANY>Category:Regulatory Roadmap<MANY>Category:Bulk Transmission Regulatory Roadmap Sections<MANY>Category:Hydropower Regulatory Roadmap Sections
RAPID/Roadmap/1-CA-a<PROP>Land Use Planning<PROP>1<PROP>CA<PROP>Category:Regulatory Roadmap State Sections<MANY>Category:Geothermal Regulatory Roadmap Sections<MANY>Category:RAPID Toolkit<MANY>Category:Regulatory Roadmap<MANY>Category:Solar Regulatory Roadmap Sections<MANY>Category:Hydropower Regulatory Roadmap Sections<MANY>Category:Bulk Transmission Regulatory Roadmap Sections


Parsed Response

Page: RAPID/Roadmap/1
Name: Name: Land Use Planning Overview
Topic: 1
SectionCode: 0V
Categories: Category:Regulatory Roadmap Overview Sections,Category:Geothermal Regulatory Roadmap Sections,Category:RAPID Toolkit,Category:Regulatory Roadmap
Page: RAPID/Roadmap/1-AK-a
Name: Name: Land Use Planning
Topic: 1
SectionCode: AK
Categories: Category:Regulatory Roadmap State Sections,Category:Geothermal Regulatory Roadmap Sections,Category:RAPID Toolkit,Category:Regulatory Roadmap,Category:Bulk Transmission Regulatory Roadmap Sections,Category:Hydropower Regulatory Roadmap Sections
Page: RAPID/Roadmap/1-CA-a
Name: Name: Land Use Planning
Topic: 1
SectionCode: CA
Categories: Category:Regulatory Roadmap State Sections,Category:Geothermal Regulatory Roadmap Sections,Category:RAPID Toolkit,Category:Regulatory Roadmap,Category:Solar Regulatory Roadmap Sections,Category:Hydropower Regulatory Roadmap Sections,Category:Bulk Transmission Regulatory Roadmap Sections


Assembled Response
<li data-name="Land Use Planning Process" data-categories="Category:Regulatory Roadmap Federal Sections,Category:Geothermal Regulatory Roadmap Sections" data-topic="1" data-section-code="FD">[[1-FD-a: Land Use Planning Process]]</li>


Arrayprint Code
{{#arrayprint:test|</li>|@@|<li data-name="{{#explode:@@|<PROP>|1}}" data-section-code="{{#explode:@@|<PROP>|3}}" data-topic="{{#explode:@@|<PROP>|2}}" data-categories="{{#replace:{{#explode:@@|<PROP>|4}}|<MANY>|,}}"> [[{{#vardefineecho:page|{{#explode:@@|<PROP>|0}}}}|{{#explode:{{#var:page}}|/|-1}}: {{#explode:@@|<PROP>|1}}]]}}