Difference between revisions of "Widget:RAPID-Transclude"

From Open Energy Information

(remove console log from test)
(remove commented out code)
Line 247: Line 247:
 
               $('#warpSummary').html(jQuery(response).find('#roadmapOverview').html());  
 
               $('#warpSummary').html(jQuery(response).find('#roadmapOverview').html());  
 
               $('#warpNarrative').html(jQuery(response).find('#narrativeDescription').html());  
 
               $('#warpNarrative').html(jQuery(response).find('#narrativeDescription').html());  
              //$('#warpAgency').html(jQuery(response).find('#roadmapAgencies').html());
 
              //$('#warpRegs').html(jQuery(response).find('#roadmapRegs').html());
 
              //$('#warpRefs').html(jQuery(response).find('#roadmapRefs').html());
 
 
             },
 
             },
 
             complete: function(collapser){
 
             complete: function(collapser){

Revision as of 08:58, 30 April 2018

This template performs an ajax request for RAPID Tech/Jurisdiction/Topic pages, based on their related Roadmap Overview page. It is called by [[:Template:RAPID-Overview(Tech-Jurisdiction-Topic). See RAPID/Geothermal/California/Land Use as an example.

The template "transcludes" information from the right column, the overview and the narrative from pages like RAPID/Roadmap/3 and imports it to the page using the above template (such as RAPID/Geothermal/California/Land Use). It also removes any links/buttons that are not related to the current page's jurisdiction.