Template:NRC org naming: Difference between revisions

From kanterella
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#if:{{#explode:{{{1|}}}|/|3}}
<includeonly>{{#if:{{#explode:{{{1|}}}|/|3}}
  | [[Category:NRC Branch]]
  | [[Category:NRC Branch]][[Office::{{#explode:{{{1|}}}|/|0}}/{{#explode:{{{1|}}}|/|1}}| ]][[Division::{{#explode:{{{1|}}}|/|0}}/{{#explode:{{{1|}}}|/|1}}/{{#explode:{{{1|}}}|/|2}}| ]]
  | {{#if:{{#explode:{{{1|}}}|/|2}}
  | {{#if:{{#explode:{{{1|}}}|/|2}}
   | [[Category:NRC Division]]
   | [[Category:NRC Division]][[Office::{{#explode:{{{1|}}}|/|0}}/{{#explode:{{{1|}}}|/|1}}| ]]
   | {{#if:{{#explode:{{{1|}}}|/|1}}
   | {{#if:{{#explode:{{{1|}}}|/|1}}
   | [[Category:NRC Office]]
   | {{#switch:{{#explode:{{{1|}}}|/|1}}
    | RGN-I = [[NRC region::NRC Region 1]]
    | RGN-II = [[NRC region::NRC Region 2]]
    | RGN-III = [[NRC region::NRC Region 3]]
    | RGN-IV = [[NRC region::NRC Region 4]]
    | [[Category:NRC Office]]
    }}
   }}
   }}
  }}
  }}
}}  
}}</includeonly>
{{#switch:{{#explode:{{{1|}}}|/|1}}
| RGN-I = [[NRC region::NRC Region 1]]: {{#ask:[[Category:NRC Division]][[NRC region::NRC Region 1]]|?has acronym=|format=list|template=name-link|link=none}}
| RGN-II = [[NRC region::NRC Region 2]]: {{#ask:[[Category:NRC Division]][[NRC region::NRC Region 2]]|?has acronym=|format=list|template=name-link|link=none}}
| RGN-III = [[NRC region::NRC Region 3]]: {{#ask:[[Category:NRC Division]][[NRC region::NRC Region 3]]|?has acronym=|format=list|template=name-link|link=none}}
| RGN-IV = [[NRC region::NRC Region 4]]: {{#ask:[[Category:NRC Division]][[NRC region::NRC Region 4]]|?has acronym=|format=list|template=name-link|link=none}}
| NRR = {{#if:{{#explode:{{{1|}}}|/|2}}|[[office::{{#explode:{{{1|}}}|/|0}}/{{#explode:{{{1|}}}|/|1}}| ]] }}
| {{#if:{{#explode:{{{1|}}}|/|2}}|[[office::{{#explode:{{{1|}}}|/|0}}/{{#explode:{{{1|}}}|/|1}}| ]] }}
}} {{#switch:{{#explode:{{{1|}}}|/|2}}
| {{#if:{{#explode:{{{1|}}}|/|2}}|[[division::{{#explode:{{{1|}}}|/|0}}/{{#explode:{{{1|}}}|/|1}}/{{#explode:{{{1|}}}|/|2}}| ]] }}
}} {{#switch:{{#explode:{{{1|}}}|/|3}}
| {{#if:{{#explode:{{{1|}}}|/|3}}|<br> [[branch::{{#explode:{{{1|}}}|/|0}}/{{#explode:{{{1|}}}|/|1}}/{{#explode:{{{1|}}}|/|2}}/{{#explode:{{{1|}}}|/|3}}| ]] }}
}}

Revision as of 21:06, 18 March 2018