Difference between revisions of "Template:RRSection"

From Open Energy Information

(move expression to set RRCountry for Canadian pages | remove noIndex for Canadian pages)
({{#set:RRCountryCode=CAN}} for all Canadian sections in switch)
Line 35: Line 35:
 
</noinclude><includeonly>{{RAPID-Nav}}
 
</noinclude><includeonly>{{RAPID-Nav}}
 
{{#vardefine:cleanPageName|{{#explode:{{SUBPAGENAME}}| |0}}}} {{#set:RRSectionNumber={{#explode:{{#vardefineecho:sectionNum|{{#var:cleanPageName}}}}|-|0}}}}
 
{{#vardefine:cleanPageName|{{#explode:{{SUBPAGENAME}}| |0}}}} {{#set:RRSectionNumber={{#explode:{{#vardefineecho:sectionNum|{{#var:cleanPageName}}}}|-|0}}}}
{{#ifeq:{{#var:sectionNum}}|{{#vardefineecho:topicInt|{{#explode:{{#var:sectionNum}}|-|0}}}}|{{#vardefine:isOverviewPage|yes}}{{#set:RRSectionCode=0V}}[[Category:Regulatory Roadmap Overview Sections]]{{#ifexpr:{{#len:{{#pos:{{{Name|}}}|Canada}}}}>0|{{#set:RRCountryCode=CAN}}[[Category:Regulatory Roadmap Canadian Province Sections]]|}}
+
{{#ifeq:{{#var:sectionNum}}|{{#vardefineecho:topicInt|{{#explode:{{#var:sectionNum}}|-|0}}}}|{{#vardefine:isOverviewPage|yes}}{{#set:RRSectionCode=0V}}[[Category:Regulatory Roadmap Overview Sections]]{{#ifexpr:{{#len:{{#pos:{{{Name|}}}|Canada}}}}>0|{{#set:RRCountryCode=CAN}}[[Category:Regulatory Roadmap Canadian Overview Sections]]|}}
 
<div id="roadmapLeftColumn" style="width: 900px;"><h1>{{#vardefineecho:pageTech|{{{Technology|}}}}} [[Name::{{{Name|}}}]] <span style="margin-left:10px;">({{#var:cleanPageName|{{#explode:{{SUBPAGENAME}}| |0}}}})</span></h1>
 
<div id="roadmapLeftColumn" style="width: 900px;"><h1>{{#vardefineecho:pageTech|{{{Technology|}}}}} [[Name::{{{Name|}}}]] <span style="margin-left:10px;">({{#var:cleanPageName|{{#explode:{{SUBPAGENAME}}| |0}}}})</span></h1>
 
|{{#set:RRSectionCode={{#vardefineecho:sectionCode|{{#explode:{{#var:sectionNum}}|-|1}}}}}}
 
|{{#set:RRSectionCode={{#vardefineecho:sectionCode|{{#explode:{{#var:sectionNum}}|-|1}}}}}}
 
{{#switch:{{#var:sectionCode}}
 
{{#switch:{{#var:sectionCode}}
 
|FD = [[Category:Regulatory Roadmap Federal Sections]]
 
|FD = [[Category:Regulatory Roadmap Federal Sections]]
|CAN = [[Category:Regulatory Roadmap Canadian Federal Sections]]
+
|CAN = [[Category:Regulatory Roadmap Canadian Federal Sections]] {{#set:RRCountryCode=CAN}}
 
|MEX = [[Category:Regulatory Roadmap Mexican Federal Sections]]
 
|MEX = [[Category:Regulatory Roadmap Mexican Federal Sections]]
|AB = [[Category:Regulatory Roadmap Canadian Province Sections]]
+
|AB = [[Category:Regulatory Roadmap Canadian Province Sections]] {{#set:RRCountryCode=CAN}}
|BC = [[Category:Regulatory Roadmap Canadian Province Sections]]
+
|BC = [[Category:Regulatory Roadmap Canadian Province Sections]] {{#set:RRCountryCode=CAN}}
|MB = [[Category:Regulatory Roadmap Canadian Province Sections]]
+
|MB = [[Category:Regulatory Roadmap Canadian Province Sections]] {{#set:RRCountryCode=CAN}}
|NB = [[Category:Regulatory Roadmap Canadian Province Sections]]
+
|NB = [[Category:Regulatory Roadmap Canadian Province Sections]] {{#set:RRCountryCode=CAN}}
|ON = [[Category:Regulatory Roadmap Canadian Province Sections]]
+
|ON = [[Category:Regulatory Roadmap Canadian Province Sections]] {{#set:RRCountryCode=CAN}}
|QC = [[Category:Regulatory Roadmap Canadian Province Sections]]
+
|QC = [[Category:Regulatory Roadmap Canadian Province Sections]] {{#set:RRCountryCode=CAN}}
|SK = [[Category:Regulatory Roadmap Canadian Province Sections]]
+
|SK = [[Category:Regulatory Roadmap Canadian Province Sections]] {{#set:RRCountryCode=CAN}}
|YT = [[Category:Regulatory Roadmap Canadian Province Sections]]
+
|YT = [[Category:Regulatory Roadmap Canadian Province Sections]] {{#set:RRCountryCode=CAN}}
 
|#default = [[Category:Regulatory Roadmap State Sections]]
 
|#default = [[Category:Regulatory Roadmap State Sections]]
 
}}
 
}}

Revision as of 13:30, 20 August 2019


This is the RRSection template. It is used to generate a section of the Regulatory Roadmap..

Parameters
  • Name - The name or title of the section. (Independent from the section number)
  • Description - The main section description is typically a brief overview of the elements within the section.
    • Must contain proper wiki syntax.
  • Flowchart - A link to the flowchart which corresponds to this section, typically a PDF image.
  • BestPractices - (optional) Free text area describing best practices associated with this element.
  • PotentialRoadblocks - (optional) Free text area describing any possible obstacles or issues persons exploring this element should be aware of.
  • Agency - The page names, or a semi-colon delimited list of pages, of agencies, organizations, or governing bodies associated with this element.
  • References - A reference, or semi-colon delimited list of references, used to supply the associated content.
    • Must contain proper wiki syntax, ex:
      [http://www.achp.gov/ Advisory Council on Historic Preservation];[http://nasa.gov NASA],[[National Renewable Energy Laboratory|NREL]]
  • Regulations - A link, or semi-colon delimited list of links, to relevant regulations.
    • Must contain proper wiki syntax, ex:
      [http://www.achp.gov/ Advisory Council on Historic Preservation];[http://nasa.gov NASA],[[National Renewable Energy Laboratory|NREL]]
Usage

A number of important properties are set automatically from the page name. This template should only be used in connection with the RRSection form.

Dependencies

Form:RRSection

Example

For an example of this in use, please see one of the Category:Regulatory Roadmap Sections listed here.

Edit the page to see the template text.