Template:Infobox government agency: Difference between revisions

actually update the infobox....
m (Only include infobox on transcluded pages.)
(actually update the infobox....)
 
Line 1: Line 1:
<onlyinclude><includeonly>{{#if:{{{remove_whitespace|true}}}| {{#replace:{{{content|}}}|^\s+|\n}} | {{#replace:{{{content|}}}|^\s+|\n}} }}
<onlyinclude><includeonly>{{ infobox
<table class="infobox">
| child        = {{{child|}}}
<caption class="infobox-title" style="font-size: 125%;">{{{title|Infobox Title}}}</caption>
| subbox      = {{{subbox|}}}
  <tr>
| italic title = {{{italic title|no}}}
   <td colspan="2" class="infobox-image"></td>
 
  </tr>
| titlestyle  = font-size: 125%;
  <tr>
| title        = {{{name|{{{agency_name|{{PAGENAMEBASE}}}}}}}}
  <td colspan="2" class="infobox-image"></td>
| subheader   = {{Br separated entries
  </tr>
| 1 = {{{native_name|{{{nativename|}}}}}}
  <tr>
| 2 = {{{native_name_a|{{{nativename_a|}}}}}}
  <th colspan="2" class="infobox-header" style="background-color: #efefef">{{{overview_text|Overview}}}</th>
| 3 = {{{native_name_r|{{{nativename_r|}}}}}}
  </tr>
}}
  {{#ifeq:{{{formed|}}}|{{{formed}}}| {{#if: {{{formed|}}} | <tr><th scope="row" class="infobox-label">Formed</th><td class="infobox-data">{{{formed}}}</td></tr> | }} | }}
 
  {{#ifeq:{{{dissolved|}}}|{{{dissolved}}}| {{#if: {{{dissolved|}}} | <tr><th scope="row" class="infobox-label">Dissolved</th><td class="infobox-data">{{{dissolved}}}</td></tr> | }} | }}
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{seal|}}}|size={{{seal_size|{{{seal_width|}}}}}}| alt={{{seal_alt|}}}|sizedefault=frameless}}
  {{#ifeq:{{{jurisdiction|}}}|{{{jurisdiction}}}| {{#if: {{{jurisdiction|}}} | <tr><th scope="row" class="infobox-label">Jurisdiction</th><td class="infobox-data">{{{jurisdiction}}}</td></tr> | }} | }}
| caption      = {{{seal_caption|}}}
  {{#ifeq:{{{headquarters|}}}|{{{headquarters}}}| {{#if: {{{headquarters|}}} | <tr><th scope="row" class="infobox-label">Headquarters</th><td class="infobox-data">{{{headquarters}}}</td></tr> | }} }}
 
  {{#ifeq:{{{coordinates|}}}|{{{coordinates}}}| {{#if: {{{coordinates|}}} | <tr><th scope="row" class="infobox-label">Coordinates</th><td class="infobox-data">{{{coordinates}}}</td></tr> | }} |  }}
| image2      = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|{{{logo_width|}}}}}}| alt={{{logo_alt|}}}|sizedefault=frameless}}
  {{#ifeq:{{{employees|}}}|{{{employees}}}| {{#if: {{{employees|}}} | <tr><th scope="row" class="infobox-label">Employees</th><td class="infobox-data">{{{Employees}}}</td></tr> | }} }}
| caption2    = {{{logo_caption|}}}
  {{#ifeq:{{{budget|}}}|{{{budget}}}| {{#if: {{{budget|}}} | <tr><th scope="row" class="infobox-label">Budget</th><td class="infobox-data">{{{budget}}}</td></tr> | }} | }}
 
  {{#ifeq:{{{chief1_name|}}}|{{{chief1_name}}}| {{#if: {{{chief1_name|}}} | <tr><th scope="row" class="infobox-label">Agency executive</th><td class="infobox-data">{{{chief1_name}}}</td></tr> | }} |  }}
| headerstyle  = background-color: #efefef
</table></onlyinclude></includeonly>
 
| data1        = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{picture|}}}}}}|size={{{image_size|{{{picture_width|}}}}}}|alt={{{image_alt|}}}|sizedefault=frameless}}{{#if: {{{image_caption|{{{picture_caption|}}}}}} | {{break}}{{{image_caption|{{{picture_caption}}}}}} }}
 
| header2      = {{#if: {{{formed|}}}{{{preceding1|}}}{{{dissolved|}}}{{{superseding|}}}{{{jurisdiction|}}}{{{headquarters|}}}{{{motto|}}}{{{employees|}}}{{{budget|}}}{{{minister1_name|}}}{{{chief1_name|}}}{{{parent_agency|}}}{{{child1_agency|}}}{{{keydocument1|}}}{{{website|}}}{{{footnotes|}}}{{{map|}}}{{{map_caption|}}} | {{ucfirst: {{#if:{{{type|}}}|{{{type}}}|Agency }} }} overview }}
 
| label3      = Formed
| data3        = {{{formed|}}}
 
| label4      = {{#if:{{{preceding1|}}} | {{#if:{{{preceding2|}}}|Preceding agencies|Preceding {{{type|agency}}} }} }}
| data4        = {{Unbulleted list|item_style=text-indent: -1em; padding-left: 1em;
| 1 = {{{preceding1|}}}
| 2 = {{{preceding2|}}}
| 3 = {{{preceding3|}}}
  | 4 = {{{preceding4|}}}
| 5 = {{{preceding5|}}}
| 6 = {{{preceding6|}}}
}}
 
| label5      = Dissolved
| data5        = {{{dissolved|}}}
 
| label6      = {{#if:{{{superseding|{{{superseding1|}}}}}} | {{#if:{{{superseding2|}}}|Superseding agencies|Superseding {{{service|agency}}} }} }}
| data6        = {{Unbulleted list|item_style=text-indent: -1em; padding-left: 1em;
| 1 = {{{superseding|{{{superseding1|}}}}}}
| 2 = {{{superseding2|}}}
| 3 = {{{superseding3|}}}
| 4 = {{{superseding4|}}}
| 5 = {{{superseding5|}}}
| 6 = {{{superseding6|}}}
}}
 
| label7      = Type
| data7        = {{{agency_type|}}}
| class7      = category
 
| label8      = Jurisdiction
| data8        = {{{jurisdiction|}}}
 
| label9      = Status
| data9        = {{{status|}}}
 
| label10      = Headquarters
| data10      = {{{headquarters|}}}{{#if: {{{coordinates|}}}|{{break}}{{{coordinates|}}} }}
 
| label11      = Motto
| data11      = {{{motto|}}}
 
| label12      = Employees
| data12      = {{{employees|}}}
 
| label13      = Annual budget
| data13      = {{{budget|}}}
 
| label14      = {{#if:{{{minister2_name|}}}|{{#if:{{{minister_type|}}}|{{{minister_type}}}|Ministers}} responsible|{{#if:{{{minister_type|}}}|{{{minister_type}}}|Minister}} responsible}}
| data14      = {{Unbulleted list|item_style=text-indent: -1em; padding-left: 1em;
| 1 = {{#if:{{{minister1_name|}}}|{{{minister1_name|}}}{{#if:{{{minister1_pfo|}}}|, {{{minister1_pfo}}}}}|{{#if:{{{minister1_pfo|}}}|{{{minister1_pfo}}}}}}}
| 2 = {{#if:{{{minister2_name|}}}|{{{minister2_name|}}}{{#if:{{{minister2_pfo|}}}|, {{{minister2_pfo}}}}}|{{#if:{{{minister2_pfo|}}}|{{{minister2_pfo}}}}}}}
| 3 = {{#if:{{{minister3_name|}}}|{{{minister3_name|}}}{{#if:{{{minister3_pfo|}}}|, {{{minister3_pfo}}}}}|{{#if:{{{minister3_pfo|}}}|{{{minister3_pfo}}}}}}}
| 4 = {{#if:{{{minister4_name|}}}|{{{minister4_name|}}}{{#if:{{{minister4_pfo|}}}|, {{{minister4_pfo}}}}}|{{#if:{{{minister4_pfo|}}}|{{{minister4_pfo}}}}}}}
| 5 = {{#if:{{{minister5_name|}}}|{{{minister5_name|}}}{{#if:{{{minister5_pfo|}}}|, {{{minister5_pfo}}}}}|{{#if:{{{minister5_pfo|}}}|{{{minister5_pfo}}}}}}}
| 6 = {{#if:{{{minister6_name|}}}|{{{minister6_name|}}}{{#if:{{{minister6_pfo|}}}|, {{{minister6_pfo}}}}}|{{#if:{{{minister6_pfo|}}}|{{{minister6_pfo}}}}}}}
| 7 = {{#if:{{{minister7_name|}}}|{{{minister7_name|}}}{{#if:{{{minister7_pfo|}}}|, {{{minister7_pfo}}}}}|{{#if:{{{minister7_pfo|}}}|{{{minister7_pfo}}}}}}}
| 8 = {{#if:{{{minister8_name|}}}|{{{minister8_name|}}}{{#if:{{{minister8_pfo|}}}|, {{{minister8_pfo}}}}}|{{#if:{{{minister8_pfo|}}}|{{{minister8_pfo}}}}}}}
}}
 
| label15      = {{#if:{{{deputyminister2_name|}}}|{{#if:{{{deputyminister_type|}}}|{{{deputyminister_type}}}|Deputy Ministers}} responsible|{{#if:{{{deputyminister_type|}}}|{{{deputyminister_type}}}|Deputy Minister}} responsible}}
| data15      = {{Unbulleted list|item_style=text-indent: -1em; padding-left: 1em;
| 1 = {{#if:{{{deputyminister1_name|}}}|{{{deputyminister1_name|}}}{{#if:{{{deputyminister1_pfo|}}}|, {{{deputyminister1_pfo}}}}}|{{#if:{{{deputyminister1_pfo|}}}|{{{deputyminister1_pfo}}}}}}}
| 2 = {{#if:{{{deputyminister2_name|}}}|{{{deputyminister2_name|}}}{{#if:{{{deputyminister2_pfo|}}}|, {{{deputyminister2_pfo}}}}}|{{#if:{{{deputyminister2_pfo|}}}|{{{deputyminister2_pfo}}}}}}}
| 3 = {{#if:{{{deputyminister3_name|}}}|{{{deputyminister3_name|}}}{{#if:{{{deputyminister3_pfo|}}}|, {{{deputyminister3_pfo}}}}}|{{#if:{{{deputyminister3_pfo|}}}|{{{deputyminister3_pfo}}}}}}}
| 4 = {{#if:{{{deputyminister4_name|}}}|{{{deputyminister4_name|}}}{{#if:{{{deputyminister4_pfo|}}}|, {{{deputyminister4_pfo}}}}}|{{#if:{{{deputyminister4_pfo|}}}|{{{deputyminister4_pfo}}}}}}}
| 5 = {{#if:{{{deputyminister5_name|}}}|{{{deputyminister5_name|}}}{{#if:{{{deputyminister5_pfo|}}}|, {{{deputyminister5_pfo}}}}}|{{#if:{{{deputyminister5_pfo|}}}|{{{deputyminister5_pfo}}}}}}}
| 6 = {{#if:{{{deputyminister6_name|}}}|{{{deputyminister6_name|}}}{{#if:{{{deputyminister6_pfo|}}}|, {{{deputyminister6_pfo}}}}}|{{#if:{{{deputyminister6_pfo|}}}|{{{deputyminister6_pfo}}}}}}}
| 7 = {{#if:{{{deputyminister7_name|}}}|{{{deputyminister7_name|}}}{{#if:{{{deputyminister7_pfo|}}}|, {{{deputyminister7_pfo}}}}}|{{#if:{{{deputyminister7_pfo|}}}|{{{deputyminister7_pfo}}}}}}}
| 8 = {{#if:{{{deputyminister8_name|}}}|{{{deputyminister8_name|}}}{{#if:{{{deputyminister8_pfo|}}}|, {{{deputyminister8_pfo}}}}}|{{#if:{{{deputyminister8_pfo|}}}|{{{deputyminister8_pfo}}}}}}}
}}
 
| label16      = {{ucfirst: {{#if:{{{type|}}}|{{{type}}}|Agency}}}} executive{{#if:{{{chief2_name|}}}|s}}
| data16      = {{Unbulleted list|item_style=text-indent: -1em; padding-left: 1em;
| 1 = {{#if:{{{chief1_name|}}}|{{{chief1_name|}}}{{#if:{{{chief1_position|}}}|, {{{chief1_position}}}}}|{{#if:{{{chief1_position|}}}|{{{chief1_position}}}}}}}
| 2 = {{#if:{{{chief2_name|}}}|{{{chief2_name|}}}{{#if:{{{chief2_position|}}}|, {{{chief2_position}}}}}|{{#if:{{{chief2_position|}}}|{{{chief2_position}}}}}}}
| 3 = {{#if:{{{chief3_name|}}}|{{{chief3_name|}}}{{#if:{{{chief3_position|}}}|, {{{chief3_position}}}}}|{{#if:{{{chief3_position|}}}|{{{chief3_position}}}}}}}
| 4 = {{#if:{{{chief4_name|}}}|{{{chief4_name|}}}{{#if:{{{chief4_position|}}}|, {{{chief4_position}}}}}|{{#if:{{{chief4_position|}}}|{{{chief4_position}}}}}}}
| 5 = {{#if:{{{chief5_name|}}}|{{{chief5_name|}}}{{#if:{{{chief5_position|}}}|, {{{chief5_position}}}}}|{{#if:{{{chief5_position|}}}|{{{chief5_position}}}}}}}
| 6 = {{#if:{{{chief6_name|}}}|{{{chief6_name|}}}{{#if:{{{chief6_position|}}}|, {{{chief6_position}}}}}|{{#if:{{{chief6_position|}}}|{{{chief6_position}}}}}}}
| 7 = {{#if:{{{chief7_name|}}}|{{{chief7_name|}}}{{#if:{{{chief7_position|}}}|, {{{chief7_position}}}}}|{{#if:{{{chief7_position|}}}|{{{chief7_position}}}}}}}
| 8 = {{#if:{{{chief8_name|}}}|{{{chief8_name|}}}{{#if:{{{chief8_position|}}}|, {{{chief8_position}}}}}|{{#if:{{{chief8_position|}}}|{{{chief8_position}}}}}}}
| 9 = {{#if:{{{chief9_name|}}}|{{{chief9_name|}}}{{#if:{{{chief9_position|}}}|, {{{chief9_position}}}}}|{{#if:{{{chief9_position|}}}|{{{chief9_position}}}}}}}
}}
 
| label17      = Parent department
| data17      = {{{parent_department|}}}
 
| label18      = Parent {{#if:{{{parent_agency_type|}}}|{{{parent_agency_type}}}|{{#if:{{{type|}}}|{{{type}}}|agency}}}}
| data18      = {{{parent_agency|}}}
 
| label19      = {{#if:{{{child2_agency|}}}|Child agencies|Child {{#if:{{{type|}}}|{{{type}}}|agency}}}}
| data19      = {{Unbulleted list|item_style=text-indent: -1em; padding-left: 1em;
| 1  = {{{child1_agency|}}}
| 2  = {{{child2_agency|}}}
| 3  = {{{child3_agency|}}}
| 4  = {{{child4_agency|}}}
| 5  = {{{child5_agency|}}}
| 6  = {{{child6_agency|}}}
| 7  = {{{child7_agency|}}}
| 8  = {{{child8_agency|}}}
| 9  = {{{child9_agency|}}}
| 10 = {{{child10_agency|}}}
| 11 = {{{child11_agency|}}}
| 12 = {{{child12_agency|}}}
| 13 = {{{child13_agency|}}}
| 14 = {{{child14_agency|}}}
| 15 = {{{child15_agency|}}}
| 16 = {{{child16_agency|}}}
| 17 = {{{child17_agency|}}}
| 18 = {{{child18_agency|}}}
| 19 = {{{child19_agency|}}}
| 20 = {{{child20_agency|}}}
| 21 = {{{child21_agency|}}}
| 22 = {{{child22_agency|}}}
| 23 = {{{child23_agency|}}}
| 24 = {{{child24_agency|}}}
| 25 = {{{child25_agency|}}}
}}
 
| label20      = {{#if:{{{keydocument2|}}}|Key documents|Key document}}
| data20      = {{Unbulleted list|item_style=text-indent: -1em; padding-left: 1em;
| 1 = {{{keydocument1|}}}
| 2 = {{{keydocument2|}}}
| 3 = {{{keydocument3|}}}
| 4 = {{{keydocument4|}}}
| 5 = {{{keydocument5|}}}
| 6 = {{{keydocument6|}}}
}}
 
| label21      = Website
| data21      = {{{website|}}}
 
| label22      = Agency ID
| data22      = {{{agency_id|}}}
 
| header23    = {{#if:{{{map|}}}|{{Infobox|child=yes|decat=yes
| title  = Map
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}|alt={{{map_alt}}}|size={{{map_size|{{{map_width|}}}}}}|sizedefault=frameless}}
| caption = {{{map_caption|}}}
}}}}
 
| image3    = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type|}}}}}}
|alt    = {{{pushpin_map_alt|{{{map_alt|}}}}}}
|coordinates = {{{coordinates|}}}
|float  = center
|mark    = {{{map_dot_mark|Red pog.svg}}}
|marksize= 7
|label  = {{{pushpin_label|{{{map dot label|{{{map_dot_label|}}}}}}}}}
|relief  = {{{pushpin_relief|{{{relief|}}}}}}
|border  = none
|caption = <!--leave blank-->
|width  = {{{pushpin_mapsize|{{{map_size|}}}}}}
}} |<!-- else if map_type is blank
-->{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}}}<!-- end if map_type
-->}}
| caption3  = {{#if:{{{pushpin_map|{{{map_type|}}}}}} |{{{pushpin_map_caption|{{{map_caption|Location within {{#invoke:Location map|data|{{{pushpin_map|{{{map_type}}}}}}|name}}}}}}}} |{{#if:{{{image_map|}}} |{{{map_caption|}}} }}}}
| header24    = {{#if:{{{footnotes|}}}|Footnotes}}
| data25      = {{{footnotes|}}}
 
| data26    = {{{embed|}}}
 
}}</onlyinclude></includeonly>
<templatedata>
<templatedata>
{
{