Difference between revisions of "Template:Infobox law enforcement agency"

From NSWiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{| class="infobox vcard" style="width:{{#if:{{{narrowerbox|}}}|20em|25em}}; text-align:left; font-size:86%; line-height:1.35" cellspacing="1" cellpadding="3"<!--
+
<noinclude>This template automatically categorises articles.  It is a sub template for [[Template:Infobox law enforcement agency]]</noinclude><includeonly><!--
  
 +
Fictional
 +
-->{{#if: {{{fictional|}}}<!--
 +
-->    |[[Category:Fictional law enforcement agencies]]<!--
  
 +
Country parameter
 +
-->    |{{#if: {{{country|}}}<!--
  
Agency header
+
Defunct
 +
-->        |{{#if: {{{defunct|}}}
 +
                |{{#if:{{{divname|}}}
 +
                      |{{#ifexist: Category:Defunct law enforcement agencies of {{{divname}}}, {{{country}}}<!--The standard-->
 +
                          |[[Category:Defunct law enforcement agencies of {{{divname}}}, {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                          |{{#ifexist: Category:Defunct law enforcement agencies of {{{divname}}}, the {{{country}}}
 +
                                |[[Category:Defunct law enforcement agencies of {{{divname}}}, the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                |{{#ifexist: Category:Defunct law enforcement agencies of {{{divname}}} ({{{countryabbr|}}} {{{divtype|}}})
 +
                                    |[[Category:Defunct law enforcement agencies of {{{divname}}} ({{{countryabbr|}}} {{{divtype|}}}){{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                    |{{#ifexist: Category:Defunct law enforcement agencies of {{{divname}}} ({{{divtype|}}})
 +
                                          |[[Category:Defunct law enforcement agencies of {{{divname}}} ({{{divtype|}}}){{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                          |{{#ifexist: Category:Defunct law enforcement agencies of {{{divname}}}
 +
                                              |[[Category:Defunct law enforcement agencies of {{{divname}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                              |{{#ifexist: Category:Defunct law enforcement agencies of {{{country}}}<!--The standard-->
 +
                                                    |[[Category:Defunct law enforcement agencies of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                                    |[[Category:Defunct law enforcement agencies of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                                }}
 +
                                          }}
 +
                                      }}
 +
                                }}
 +
                            }}
 +
                      }}
 +
                      |{{#ifexist: Category:Defunct law enforcement agencies of {{{country}}}<!--The standard-->
 +
                          |[[Category:Defunct law enforcement agencies of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                          |{{#ifexist: [[Category:Defunct law enforcement agencies of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]] | [[Category:Defunct law enforcement agencies of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]] | }}
 +
                      }}
 +
                  }}<!--
  
-->
+
Not defunct
|-
+
-->             |<!--
|style="font-size:125%; line-height:20px; background:#efefef" align="center" colspan="2" |'''<span class="fn org">{{{agencyname}}}</span>'''<!--
+
-->{{#if: {{{nativename|}}} | <br>''{{{nativename}}}''}}<!--
+
-->{{#if: {{{nativenamea|}}} | <br><span style="font-size:125%;">{{{nativenamea}}}</span>}}<!--
+
-->{{#if: {{{nativenamer|}}} | <br>''{{{nativenamer}}}'' }}
+
|-
+
{{#if:{{{commonname|}}} | {{!}} '''Common&nbsp;name''' {{!!}} {{{commonname}}} }}
+
|-
+
{{#if:{{{abbreviation|}}} | {{!}} '''Abbreviation''' {{!!}} {{{abbreviation}}} }}
+
|-
+
{{#if: {{{fictional|}}} | {{!}} colspan="2" style="text-align:center; font-size:150%; border-bottom:solid 1px; border-top:solid 1px; background-color:orange" {{!}} This is a '''fictional''' organisation. }}<!-- end fictional --><!--
+
  
Display first of any images before collapsible section if infotype is related ahead -->
+
National
{{#if: {{{patch|}}} | {{Infobox law enforcement agency/logo |Patch |{{{patch}}} |{{{patchcaption|}}} |{{{agencyname}}}|{{{imagesize|}}}}} |
+
-->               {{#if: {{{national|}}}
{{#if: {{{logo|}}} | {{Infobox law enforcement agency/logo |Logo  |{{{logo}}}  |{{{logocaption|}}}  |{{{agencyname}}}|{{{imagesize|}}}}} |
+
                      |{{#ifexist: Category:National law enforcement agencies of {{{country}}}<!--The standard-->
{{#if: {{{badge|}}} | {{Infobox law enforcement agency/logo |Badge |{{{badge}}} |{{{badgecaption|}}} |{{{agencyname}}}|{{{imagesize|}}}}} |
+
                          |[[Category:National law enforcement agencies of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
{{#if: {{{flag|}}} | {{Infobox law enforcement agency/logo |Flag  |{{{flag}}}  |{{{flagcaption|}}}  |{{{agencyname}}}|{{{imagesize|}}}}} }}<!-- end flag --> }}<!-- end badge --> }}<!-- end logo --> }}<!-- end patch -->
+
                          |{{#ifexist: [[Category:National law enforcement agencies of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]] | [[Category:National law enforcement agencies of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]] | }}
|-
+
                        }}
{{#ifeq: {{{infotype|}}} | related | <!-- then inner collapsible table -->
+
                  }}<!-- end National
{{!}} colspan="2" style="padding: 0px 0px 0px 0px; border-top:solid 1px" {{!}}
+
{{{!}} class="collapsible collapsed" style="border-spacing:0; width:100%; background-color:#f9f9f9"
+
{{!}}-
+
! style="background:#efefef; text-align:center; font-size:80%" colspan="2" {{!}} [[{{{agencyname}}}|agency information]] }}<!-- end of infotype --><!--
+
  
Display any other images (skipping the first one already displayed if any) -->
+
Federal
|-
+
-->               {{#if: {{{federal|}}}
{{#if:{{{logo|}}}| {{#if:{{{patch|}}} |{{Infobox law enforcement agency/logo |Logo |{{{logo}}} |{{{logocaption|}}} |{{{agencyname}}}|{{{imagesize|}}}}}}}}}<!-- end logo -->
+
                      |{{#ifexist: Category:Federal law enforcement agencies of {{{country}}}<!--The standard-->
|-
+
                          |[[Category:Federal law enforcement agencies of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
{{#if:{{{badge|}}}| {{#if:{{{patch|}}}{{{logo|}}} |{{Infobox law enforcement agency/logo |Badge |{{{badge}}} |{{{badgecaption|}}} |{{{agencyname}}}|{{{imagesize|}}}}}}}}}<!-- end badge -->
+
                          |{{#ifexist: Category:Federal law enforcement agencies of the {{{country}}}
|-
+
                                |[[Category:Federal law enforcement agencies of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
{{#if:{{{flag|}}}| {{#if:{{{patch|}}}{{{logo|}}}{{{badge|}}} |{{Infobox law enforcement agency/logo |Flag |{{{flag}}} |{{{flagcaption|}}} |{{{agencyname}}}|{{{imagesize|}}}}}}}}}<!-- end flag -->
+
                                |{{#ifexist: Category:{{{country}}} federal law enforcement agencies<!--If only people would stick to the standard-->
|-
+
                                    |[[Category:{{{country}}} federal law enforcement agencies{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
{{#if:{{{motto|}}}| {{!}} '''Motto''' {{!!}} {{{motto}}} }}
+
                                    |[[Category:Federal law enforcement agencies of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]<!--Resort to the standard-->
|-
+
                                }}
{{#if:{{{mottotranslated|}}}| {{!}} {{!!}} {{{mottotranslated}}} }}<!--
+
                            }}
 +
                      }}
 +
                  }}<!-- end Federal
  
 +
Sub division / Division / Country
  
 
+
-->{{#if:{{{federal|}}}{{{national|}}}
Agency overview
+
  |<!-- geography categorisation is not relevant  -->|
 
+
{{#switch:{{{agencyclass|}}}
-->
+
|corrections=
|-
+
{{Infobox law enforcement agency/autocat geography
!style="text-align:center; background:#efefef; border-top:solid 1px #aaa" colspan="2"|Agency overview
+
|subdivtype    = {{{subdivtype|}}}
|-
+
|subdivcatspcl  =
{{#if: {{{formedyear|}}} | {{!}} '''Formed''' {{!!}} {{#if: {{{formedmonthday|}}} | {{{formedmonthday}}}, }} {{{formedyear}}} | <!-- for backwards compatibility -->{{#if:{{{formed|}}} | {{!}} '''Formed''' {{!!}} {{{formed}}} }} }}
+
|subdivcat      = {{Infobox law enforcement agency/autocat subdivision  |words=corrections agencies |country={{{country}}} |countryabbr={{{countryabbr}}} |divtype={{{divtype|}}} |divname={{{divname|}}} |subdivtype={{{subdivtype|}}} |subdivname={{{subdivname|}}} }}
|-
+
|divtype        = {{{divtype|}}}
{{#if:{{{preceding1|}}} | {{!}} {{#if:{{{preceding2|}}}{{{preceding3|}}}{{{preceding4|}}}{{{preceding5|}}}{{{preceding6|}}} | '''Preceding agencies''' {{!!}}
+
|divcatspcl    =
*{{{preceding1}}}<!--
+
|divcat        = {{Infobox law enforcement agency/autocat division    |words=corrections agencies |country={{{country}}} |countryabbr={{{countryabbr}}} |divtype={{{divtype|}}} |divname={{{divname|}}} }}
-->{{#if:{{{preceding2|}}} | *{{{preceding2}}} }}<!--
+
|typedivcatspcl =
-->{{#if:{{{preceding3|}}} | *{{{preceding3}}} }}<!--
+
|typedivcat    = {{Infobox law enforcement agency/autocat typedivision |words=corrections agencies |country={{{country}}} |countryabbr={{{countryabbr}}} |divtype={{{divtype|}}} |divname={{{divname|}}} }}
-->{{#if:{{{preceding4|}}} | *{{{preceding4}}} }}<!--
+
|countrycat    = {{Infobox law enforcement agency/autocat country      |words=corrections agencies |country={{{country}}} }}
-->{{#if:{{{preceding5|}}} | *{{{preceding5}}} }}<!--
+
|commonname    = {{{commonname|}}}
-->{{#if:{{{preceding6|}}} | *{{{preceding6}}} }}<!--
+
-->| '''Preceding agency''' {{!!}} {{{preceding1}}} }}<!-- end more than one preceding agency check --> }}<!-- end any preceding agency check -->
+
|-
+
{{#if:{{{dissolved|}}} | {{!}} '''Dissolved''' {{!!}} {{{dissolved}}} }}
+
|-
+
{{#if:{{{superseding|}}} | {{!}} '''Superseding agency''' {{!!}} {{{superseding}}} }}
+
|-
+
{{#if:{{{employees|}}} | {{!}} '''Employees''' {{!!}} {{{employees}}} }}
+
|-
+
{{#if:{{{volunteers|}}} | {{!}} '''Volunteers''' {{!!}} {{{volunteers}}} }}
+
|-
+
{{#if:{{{budget|}}} | {{!}} '''Annual budget''' {{!!}} {{{budget}}} }}
+
|-
+
| '''Legal personality''' || {{#switch:{{{legalpersonality}}}|government agency|government-owned corporation|government ministry = Governmental: [[{{ucfirst:{{{legalpersonality}}}}}]]|partnership|privately-held company|cooperative|body corporate = Non governmental: [[{{ucfirst:{{{legalpersonality}}}}}]]|Non government: [[{{{legalpersonality}}}]]}}<!--
+
 
+
 
+
 
+
Jurisdictional structure
+
 
+
-->
+
|-
+
!style="text-align:center; background:#efefef; border-top:solid 1px #aaa" colspan="2"|Jurisdictional structure
+
|-
+
{{#if:{{{national|}}}| {{!}} '''[[Law enforcement agency#natlea|National agency]]'''{{#if: {{{legaljuris|}}} | <small><br>(Operations jurisdiction)</small> }} {{!!}} [[{{{country}}}{{#if:{{{countryabbr|}}}| {{!}}{{{countryabbr}}}}}]] }}
+
|-
+
{{#if:{{{federal|}}}| {{!}} '''[[Law enforcement agency#fedlea|Federal agency]]'''{{#if: {{{legaljuris|}}} | <small><br>(Operations jurisdiction)</small> }} {{!!}} [[{{{country}}}{{#if:{{{countryabbr|}}}| {{!}}{{{countryabbr}}}}}]] }}
+
|-
+
{{#if:{{{international|}}}| {{!}} '''[[Law enforcement agency#internat|International agency]]'''{{!!}} {{#if: {{{country|}}} [[{{{country}}}{{#if: {{{countryabbr|}}} |{{!}}{{{countryabbr}}}}}]] }} }}
+
|-
+
{{#if:{{{international|}}}| {{!}} '''Countries''' {{!!}} {{{international}}} }}
+
|-
+
{{#if:{{{divtype|}}}
+
  |{{!}} '''{{{opsjuris}}}'''<!--{{#if:{{{legaljuris|}}} | <small><br>(Operations jurisdiction)</small> }} --  not required for simplified opertions jurisdiction data element title  -->  {{!!}}<!--
+
-->{{#if:{{{subdivtype|}}}
+
    |[[{{ucfirst:{{{subdivtype}}}}}]] of {{Infobox law enforcement agency/paramdab |{{{subdivdab|}}}|{{{subdivname|}}}|{{{subdivtype|}}}|{{{divname|}}}}} in the [[{{#ifeq:{{lc:{{{divtype}}}}}|state|State (administrative division){{!}}}}{{lc:{{{divtype}}}}}]] of {{Infobox law enforcement agency/paramdab |{{{divdab|}}}|{{{divname|}}}|{{{divtype|}}}|{{{country|}}}|{{{countryabbr|}}}}}, [[{{{country}}}{{#if:{{{countryabbr|}}} |{{!}}{{{countryabbr}}}}}]]
+
    |[[{{#ifeq:{{lc:{{{divtype}}}}}|state|State (administrative division){{!}}}}{{ucfirst:{{{divtype}}}}}]] of {{Infobox law enforcement agency/paramdab |{{{divdab|}}}|{{{divname|}}}|{{{divtype|}}}|{{{country|}}}|{{{countryabbr|}}}}}, [[{{{country}}}{{#if:{{{countryabbr|}}} |{{!}}{{{countryabbr}}}}}]]
+
  }}
+
 
}}
 
}}
|-
 
{{#if:{{{map|}}}| {{!}} colspan="2" {{!}} [[Image:{{{map}}} |center |250x250px]]}}
 
|-
 
{{#if:{{{dmap|}}}| {{!}} colspan="2" {{!}} {{{dmap}}} }}
 
|-
 
{{#if:{{{map|}}}| {{!}} colspan="2" style="text-align:center; font-size:80%" {{!}} {{#if: {{{mapcaption|}}} | {{{mapcaption}}} | Map of {{{agencyname}}}'s jurisdiction. }}}}
 
|-
 
{{#if:{{{sizearea|}}}| {{!}} '''Size''' {{!!}} {{{sizearea}}} }}
 
|-
 
{{#if:{{{sizepopulation|}}}| {{!}} '''Population''' {{!!}} {{{sizepopulation}}} }}
 
|-
 
{{#if:{{{legaljuris|}}}| {{!}} '''Legal jurisdiction''' {{!!}} {{#ifeq: {{{legaljuris}}} | opsjuris | As per operations jurisdiction. | {{{legaljuris}}} }} }}
 
|-
 
{{#if:{{{governingbody|}}}| {{!}} '''{{#if: {{{governingbodyscnd|}}} |Primary governing body |Governing body}}''' {{!!}} [[{{{governingbody}}}]] }}
 
|-
 
{{#if:{{{governingbodyscnd|}}}| {{!}} '''Secondary governing body''' {{!!}} [[{{{governingbodyscnd}}}]] }}
 
|-
 
{{#if:{{{constitution1|}}}| {{!}} {{#if:{{{constitution2|}}}{{{constitution3|}}}{{{constitution4|}}}{{{constitution5|}}}{{{constitution6|}}} | '''Constituting instruments''' {{!!}}
 
*{{{constitution1}}}<!--
 
-->{{#if:{{{constitution2|}}} | *{{{constitution2}}} }}<!--
 
-->{{#if:{{{constitution3|}}} | *{{{constitution3}}} }}<!--
 
-->{{#if:{{{constitution4|}}} | *{{{constitution4}}} }}<!--
 
-->{{#if:{{{constitution5|}}} | *{{{constitution5}}} }}<!--
 
-->{{#if:{{{constitution6|}}} | *{{{constitution6}}} }}<!--
 
-->| '''Constituting instrument''' {{!!}} {{{constitution1}}} }}<!-- end more than one constitution check --> }}<!-- end any constitution check -->
 
|-
 
| '''General nature''' ||
 
{{#switch:{{lc:{{{agencyclass|}}}}}
 
|corrections=
 
*[[Corrections]]
 
 
|probation=
 
|probation=
*[[Probation]]
+
{{Infobox law enforcement agency/autocat geography
|regulation
+
|subdivtype    = {{{subdivtype|}}}
*[[Regulation]]
+
|subdivcatspcl =
|intelligence
+
|subdivcat      = {{Infobox law enforcement agency/autocat subdivision |words=probation agencies |country={{{country}}} |countryabbr={{{countryabbr}}} |divtype={{{divtype|}}} |divname={{{divname|}}} |subdivtype={{{subdivtype|}}} |subdivname={{{subdivname|}}} }}
*[[Intelligence]]
+
|divtype        = {{{divtype|}}}
|<!--  default is enforcement  -->{{#if:{{{federal|}}}|
+
|divcatspcl    =
*[[Law enforcement agency#fedlea|Federal law enforcement]]<!--  end federal  -->|
+
|divcat        = {{Infobox law enforcement agency/autocat divivision  |words=probation agencies |country={{{country}}} |countryabbr={{{countryabbr}}} |divtype={{{divtype|}}} |divname={{{divname|}}} }}
*[[Law enforcement agency|Law enforcement]]}}<!--  end general law enforcement  -->
+
|typedivcatspcl =
}}<!--  end general general natures  -->
+
|typedivcat    = {{Infobox law enforcement agency/autocat typedivision |words=probation agencies |country={{{country}}} |countryabbr={{{countryabbr}}} |divtype={{{divtype|}}} |divname={{{divname|}}} }}
{{#if:{{{military|}}}{{{provost|}}}{{{gendarmerie|}}}
+
|countrycat    = {{Infobox law enforcement agency/autocat country      |words=probation agencies |country={{{country}}} }}
|<!--  start military natures  -->{{#if:{{{provost|}}}|
+
|commonname    = {{{commonname|}}}
*[[Law enforcement agency#provost|Military provost]]
+
}}
|{{#if:{{{gendarmerie|}}}|
+
|enforcement=
*[[Law enforcement agency#gendarm|Gendarmerie]]
+
{{#ifexpr: {{#ifeq:{{lc:{{{country}}}}}|united states|1|0}} AND {{#if:{{{speciality1|}}}{{{speciality2|}}}{{{speciality3|}}}{{{speciality4|}}}{{{speciality5|}}}{{{speciality6|}}}|1|0}}
|
+
  |<!-- do not geography categorise here - combined specialist geography categorisation done later  -->|
*[[Law enforcement agency#milpol|Military police]]
+
{{Infobox law enforcement agency/autocat geography
}}}}<!--  end military natures  -->
+
|subdivtype    = {{{subdivtype|}}}
|<!--  start civilian natures  -->{{#if:{{{police|}}}|{{#if:{{{local|}}}|
+
|subdivcatspcl  = {{#if:{{{police|}}}|{{Infobox law enforcement agency/autocat subdivision |words={{#switch:{{lc:{{{country}}}}}|united states=police departments|police forces}} |country={{{country}}} |countryabbr={{{countryabbr|}}} |divtype={{{divtype|}}} |divname={{{divname|}}} |subdivtype={{{subdivtype|}}} |subdivname={{{subdivname|}}} }}}}
*[[Law enforcement agency#locpol|Local civilian police]]{{#ifeq:{{{local|}}}|footnote|<br><small>See [[#ibleafn|footnotes]] re local.</small>}}
+
|subdivcat      = {{Infobox law enforcement agency/autocat subdivision  |words=law enforcement agencies |country={{{country}}} |countryabbr={{{countryabbr}}} |divtype={{{divtype|}}} |divname={{{divname|}}} |subdivtype={{{subdivtype|}}} |subdivname={{{subdivname|}}} }}
|
+
|divtype        = {{{divtype|}}}
*[[Law enforcement agency#civpol|Civilian police]]}}{{#ifeq:{{{police}}}|footnote|<br><small>See [[#ibleafn|footnotes]] re police.</small>
+
|divcatspcl    = {{#if:{{{police|}}}|{{Infobox law enforcement agency/autocat division    |words={{#switch:{{lc:{{{country}}}}}|united states=police departments|police forces}} |country={{{country}}} |countryabbr={{{countryabbr|}}} |divtype={{{divtype|}}} |divname={{{divname|}}} }}}}
}}|{{#if:{{{local|}}}|
+
|divcat        = {{Infobox law enforcement agency/autocat division    |words=law enforcement agencies |country={{{country}}} |countryabbr={{{countryabbr}}} |divtype={{{divtype|}}} |divname={{{divname|}}} }}
*Local civilian agency{{#ifeq:{{{local}}}|footnote|<br><small>See [[#ibleafn|footnotes]] re local.</small>}}
+
|typedivcatspcl =
|
+
|typedivcat    = {{Infobox law enforcement agency/autocat typedivision |words=law enforcement agencies |country={{{country}}} |countryabbr={{{countryabbr}}} |divtype={{{divtype|}}} |divname={{{divname|}}} }}
*Civilian agency
+
|countrycat    = {{Infobox law enforcement agency/autocat country      |words=law enforcement agencies |country={{{country}}} }}
}}}}<!-- end civilian natures  -->}}<!--  end military check
+
|commonname    = {{{commonname|}}}
 
+
}}
-->{{#if:{{{secret|}}}|
+
}}
*[[Secret police]]{{#tag:ref |{{{secret}}} |name=ibleasecpol}}}}<!--  end secret
+
|<!--  no default geographic categoristion for agency class (at this time)  -->
-->{{#if:{{{religious|}}}|
+
}}
*[[Law enforcement agency#relpol|Religious police]]<!--
+
}}<!--  end Sub division / Division / Country  -->
-->{{#ifeq:{{{religious|}}}|footnote|<br><small>See [[#ibleafn|footnotes]].</small>}}}}<!-- end religious  --><!--  end general nature  -->
+
            }}<!--  end Defunct  -->
|-
+
        }}<!-- end Country parameter
{{#if: {{{speciality1|}}} | {{!}} {{#if:{{{speciality2|}}}{{{speciality3|}}}{{{speciality4|}}}{{{speciality5|}}}{{{speciality6|}}} | '''Specialist jurisdictions''' {{!!}}
+
*{{Specialist lea type descr |{{{speciality1}}} }}<!--
+
-->{{#if:{{{speciality2|}}} | *{{Specialist lea type descr |{{{speciality2}}} }} }}<!--
+
-->{{#if:{{{speciality3|}}} | *{{Specialist lea type descr |{{{speciality3}}} }} }}<!--
+
-->{{#if:{{{speciality4|}}} | *{{Specialist lea type descr |{{{speciality4}}} }} }}<!--
+
-->{{#if:{{{speciality5|}}} | *{{Specialist lea type descr |{{{speciality5}}} }} }}<!--
+
-->{{#if:{{{speciality6|}}} | *{{Specialist lea type descr |{{{speciality6}}} }} }}<!--
+
-->| '''Specialist jurisdiction''' {{!!}} {{Specialist lea type descr |{{{speciality1}}} }} }}<!-- end more than one speciality check --> }}<!-- end any speciality check --><!--
+
 
+
 
+
 
+
Operational structure
+
 
+
-->
+
|-
+
!style="text-align:center; background:#efefef; border-top:solid 1px #aaa" colspan="2"|Operational structure
+
|-
+
{{#if: {{{overviewbody|}}} | {{!}} '''Overviewed by {{#if: {{{overviewtype|}}} | {{{overviewtype}}} }}''' {{!!}} {{{overviewbody}}} }}
+
|-
+
{{#if: {{{headquarters|}}} | {{!}} '''Headquarters''' {{!!}} {{{headquarters}}} }}
+
|-
+
{{#if: {{{hqlocmap|}}} | {{!}} colspan="2" style="text-align:center" {{!}} <div style="position:relative;left:0px;top:0px;width:{{{hqlocmapwidth}}}px;height:{{{hqlocmapheight}}}px"><!--
+
--><span style="position:absolute;left:0px;top:0px;z-index:0">{{#if:{{{hqlocmapborder|}}}|[[Image:{{{hqlocmap}}}|{{{hqlocmapsize}}}px|border|{{{hqlocmappoptitle|Map indicating the location of the headquarters}}}]]|[[Image:{{{hqlocmap}}}|{{{hqlocmapsize}}}px|{{{hqlocmappoptitle|Map indicating the location of the headquarters}}}]]}}</span><!--
+
--><span style="position:absolute;left:{{{hqlocleft}}}px;top:{{{hqloctop}}}px;z-index:1">[[Image:Paris plan pointer b jms.svg|13px]]</span></div>}}
+
|-
+
{{#if:{{{sworn|}}} | {{!}} '''{{#if: {{{sworntype|}}} |{{{sworntype}}}s |Sworn members}}''' {{!!}} {{{sworn}}} }}
+
|-
+
{{#if:{{{unsworn|}}} | {{!}} '''{{#if: {{{unsworntype|}}} |{{{unsworntype}}}s |Unsworn members}}''' {{!!}} {{{unsworn}}} }}
+
|-
+
{{#if: {{{multinational|}}} | {{!}} '''[[Law enforcement agency#multinat|Multinational agency]]'''{{!!}} {{#if: {{{country|}}}|[[{{{country}}}{{#if: {{{countryabbr|}}} |{{!}}{{{countryabbr}}}}}]] }} }}
+
|-
+
{{#if: {{{multinational|}}} | {{!}} '''Nationalities of personnel''' {{!!}} {{{multinational}}} }}
+
|-
+
{{#if:{{{minister1name|}}} | {{!}} {{#if:{{{minister2name|}}}{{{minister3name|}}}{{{minister4name|}}}{{{minister5name|}}}{{{minister6name|}}} | '''{{#if:{{{electeetype|}}} | {{{electeetype}}} | Elected officer}}s responsible''' {{!!}}
+
*{{{minister1name}}}{{#if:{{{minister1pfo|}}}|, {{{minister1pfo}}}}}<!--
+
-->{{#if:{{{minister2name|}}} | *{{{minister2name}}}{{#if:{{{minister2pfo|}}}|, {{{minister2pfo}}}}} }}<!--
+
-->{{#if:{{{minister3name|}}} | *{{{minister3name}}}{{#if:{{{minister3pfo|}}}|, {{{minister3pfo}}}}} }}<!--
+
-->{{#if:{{{minister4name|}}} | *{{{minister4name}}}{{#if:{{{minister4pfo|}}}|, {{{minister4pfo}}}}} }}<!--
+
-->{{#if:{{{minister5name|}}} | *{{{minister5name}}}{{#if:{{{minister5pfo|}}}|, {{{minister5pfo}}}}} }}<!--
+
-->{{#if:{{{minister6name|}}} | *{{{minister6name}}}{{#if:{{{minister6pfo|}}}|, {{{minister6pfo}}}}} }}<!--
+
-->| '''{{#if:{{{electeetype|}}} | {{{electeetype}}} | Elected officer}} responsible''' {{!!}} {{{minister1name}}}{{#if:{{{minister1pfo|}}}|, {{{minister1pfo}}}}} }}<!-- end of more than one minister check --> }}<!-- end of any minister check -->
+
|-
+
{{#if:{{{chief1name|}}} | {{!}} {{#if:{{{chief2name|}}}{{{chief3name|}}}{{{chief4name|}}}{{{chief5name|}}}{{{chief6name|}}} | '''Agency executives''' {{!!}}
+
*{{{chief1name}}}{{#if:{{{chief1position|}}}|, {{{chief1position}}}}}<!--
+
-->{{#if:{{{chief2name|}}} | *{{{chief2name}}}{{#if:{{{chief2position|}}}|, {{{chief2position}}}}} }}<!--
+
-->{{#if:{{{chief3name|}}} | *{{{chief3name}}}{{#if:{{{chief3position|}}}|, {{{chief3position}}}}} }}<!--
+
-->{{#if:{{{chief4name|}}} | *{{{chief4name}}}{{#if:{{{chief4position|}}}|, {{{chief4position}}}}} }}<!--
+
-->{{#if:{{{chief5name|}}} | *{{{chief5name}}}{{#if:{{{chief5position|}}}|, {{{chief5position}}}}} }}<!--
+
-->{{#if:{{{chief6name|}}} | *{{{chief6name}}}{{#if:{{{chief6position|}}}|, {{{chief6position}}}}} }}<!--
+
-->| '''Agency executive''' {{!!}} {{{chief1name}}}{{#if:{{{chief1position|}}}|, {{{chief1position}}}}} }}<!-- end of more than one chief check --> }}<!-- end of any chief check -->
+
|-
+
{{#if:{{{parentagency|}}} | {{!}} '''Parent agency''' {{!!}} {{{parentagency}}} }}
+
|-
+
{{#if:{{{child1agency|}}} | {{!}} {{#if:{{{child2agency|}}}{{{child3agency|}}}{{{child4agency|}}}{{{child5agency|}}}{{{child6agency|}}} | '''Child agencies''' {{!!}}
+
*{{{child1agency}}}<!--
+
-->{{#if:{{{child2agency|}}} | *{{{child2agency}}} }}<!--
+
-->{{#if:{{{child3agency|}}} | *{{{child3agency}}} }}<!--
+
-->{{#if:{{{child4agency|}}} | *{{{child4agency}}} }}<!--
+
-->{{#if:{{{child5agency|}}} | *{{{child5agency}}} }}<!--
+
-->{{#if:{{{child6agency|}}} | *{{{child6agency}}} }}<!--
+
-->| '''Child agency''' {{!!}} {{{child1agency}}} }}<!-- end of more than one child agency check --> }}<!-- end of any child agency check -->
+
|-
+
{{#if: {{{unitname|}}} | {{!}} '''{{#if: {{{unittype|}}} |{{{unittype}}} |Unit }}s''' {{!!}} {{{unitname}}} }}
+
|-
+
{{#if: {{{officename|}}} | {{!}} '''{{#if: {{{officetype|}}} |{{{officetype}}} |Command }}s''' {{!!}} {{{officename}}} }}
+
|-
+
{{#if: {{{provideragency|}}} | {{!}} '''Services provided by''' {{!!}} {{{provideragency}}} }}
+
|-
+
{{#if: {{{provideragency|}}} | {{!}} '''Uniformed as''' {{#if: {{{uniformedas|}}} | {{!!}} {{{uniformedas}}} | {{!!}} {{{agencyname}}} }} }}<!--
+
 
+
 
+
 
+
Facilities
+
 
+
-->
+
|-
+
{{#if: {{{stations|}}}{{{airbases|}}}{{{lockups|}}}{{{vehicles1|}}}{{{vehicles2|}}}{{{vehicles3|}}}{{{boats1|}}}{{{boats2|}}}{{{boats3|}}}{{{aircraft1|}}}{{{aircraft2|}}}{{{aircraft3|}}}{{{animals1|}}}{{{animals2|}}}{{{animals3|}}} | {{!}} style="text-align:center; background:#efefef; border-top:solid 1px #aaa" colspan="2" {{!}} '''Facilities'''}}
+
|-
+
{{#if: {{{stations|}}} | {{!}} '''{{#if: {{{stationtype|}}} |{{{stationtype}}} |Station }}s''' {{!!}} {{{stations}}} }}
+
|-
+
{{#if: {{{airbases|}}} | {{!}} '''Airbases''' {{!!}} {{{airbases}}} }}
+
|-
+
{{#if: {{{lockups|}}} | {{!}} '''{{#if: {{{lockuptype|}}} |{{{lockuptype}}} |Lockup }}s''' {{!!}} {{{lockups}}} }}
+
|-
+
{{#if: {{{vehicles1|}}} | {{!}} '''{{#if: {{{vehicle1type|}}} |{{{vehicle1type}}} |Patrol car }}s''' {{!!}} {{{vehicles1}}} }}
+
|-
+
{{#if: {{{vehicles2|}}} | {{!}} '''{{#if: {{{vehicle2type|}}} |{{{vehicle2type}}} |Patrol car }}s''' {{!!}} {{{vehicles2}}} }}
+
|-
+
{{#if: {{{vehicles3|}}} | {{!}} '''{{#if: {{{vehicle3type|}}} |{{{vehicle3type}}} |Patrol car }}s''' {{!!}} {{{vehicles3}}} }}
+
|-
+
{{#if: {{{boats1|}}} | {{!}} '''{{#if: {{{boat1type|}}} |{{{boat1type}}} |Boat }}s''' {{!!}} {{{boats1}}} }}
+
|-
+
{{#if: {{{boats2|}}} | {{!}} '''{{#if: {{{boat2type|}}} |{{{boat2type}}} |Boat }}s''' {{!!}} {{{boats2}}} }}
+
|-
+
{{#if: {{{boats3|}}} | {{!}} '''{{#if: {{{boat3type|}}} |{{{boat3type}}} |Boat }}s''' {{!!}} {{{boats3}}} }}
+
|-
+
{{#if: {{{aircraft1|}}} | {{!}} '''{{#if: {{{aircraft1type|}}} |{{{aircraft1type}}} |Plane }}s''' {{!!}} {{{aircraft1}}} }}
+
|-
+
{{#if: {{{aircraft2|}}} | {{!}} '''{{#if: {{{aircraft2type|}}} |{{{aircraft2type}}} |Plane }}s''' {{!!}} {{{aircraft2}}} }}
+
|-
+
{{#if: {{{aircraft3|}}} | {{!}} '''{{#if: {{{aircraft3type|}}} |{{{aircraft3type}}} |Plane }}s''' {{!!}} {{{aircraft3}}} }}
+
|-
+
{{#if: {{{animals1|}}} | {{!}} '''{{#if: {{{animal1type|}}} |{{{animal1type}}} |Dog }}s''' {{!!}} {{{animals1}}} }}
+
|-
+
{{#if: {{{animals2|}}} | {{!}} '''{{#if: {{{animal2type|}}} |{{{animal2type}}} |Dog }}s''' {{!!}} {{{animals2}}} }}
+
|-
+
{{#if: {{{animals3|}}} | {{!}} '''{{#if: {{{animal3type|}}} |{{{animal3type}}} |Dog }}s''' {{!!}} {{{animals3}}} }}<!--
+
 
+
 
+
 
+
 
+
Notables
+
  
-->
+
Specialist
{{#if: {{{person1name|}}}{{{programme1|}}}{{{actvity1name|}}}{{{anniversary1|}}}{{{award1|}}} |
+
-->     {{#if: {{{speciality1|}}} | {{Infobox law enforcement agency/autocat specialist
{{!}}-
+
|defunct    = {{{defunct|}}}
{{!}} colspan="2" style="padding: 0px 0px 0px 0px; border-top:solid 1px #aaa" {{!}}
+
|country    = {{{country|}}}
{{{!}} class="collapsible collapsed" style="border-spacing:0; width:100%; background-color:#f9f9f9"
+
|countryabbr = {{{countryabbr|}}}
{{!}}-
+
|commonname = {{{commonname|}}}
! style="background:#efefef; text-align:center" colspan="2" {{!}} '''Notables'''
+
|divtype    = {{{divtype|}}}
{{!}}-
+
|divname    = {{{divname|}}}
{{#if:{{{person1name|}}} | {{!}} '''{{#if:{{{person2name|}}}{{{person3name|}}}{{{person4name|}}}{{{person5name|}}}{{{person6name|}}}|People|Person}}''' {{!!}}
+
|police    = {{{police|}}}
*{{{person1name}}}{{#if:{{{person1type|}}}|, {{{person1type}}}}}{{#if:{{{person1reason|}}}|, for {{{person1reason}}}}}}}<!--
+
|speciality = {{{speciality1}}} }} }}<!--
-->{{#if:{{{person2name|}}} | *{{{person2name}}}{{#if:{{{person2type|}}}|, {{{person2type}}}}}{{#if:{{{person2reason|}}}|, for {{{person2reason}}}}}}}<!--
+
-->{{#if:{{{person3name|}}} | *{{{person3name}}}{{#if:{{{person3type|}}}|, {{{person3type}}}}}{{#if:{{{person3reason|}}}|, for {{{person3reason}}}}}}}<!--
+
-->{{#if:{{{person4name|}}} | *{{{person4name}}}{{#if:{{{person4type|}}}|, {{{person4type}}}}}{{#if:{{{person4reason|}}}|, for {{{person4reason}}}}}}}<!--
+
-->{{#if:{{{person5name|}}} | *{{{person5name}}}{{#if:{{{person5type|}}}|, {{{person5type}}}}}{{#if:{{{person5reason|}}}|, for {{{person5reason}}}}}}}<!--
+
-->{{#if:{{{person6name|}}} | *{{{person6name}}}{{#if:{{{person6type|}}}|, {{{person6type}}}}}{{#if:{{{person6reason|}}}|, for {{{person6reason}}}}}}}
+
{{!}}-
+
{{#if:{{{programme1|}}} | {{!}} '''Programme{{#if:{{{programme2|}}}{{{programme3|}}}{{{programme4|}}}{{{programme5|}}}{{{programme6|}}}|s}}''' {{!!}}
+
*{{{programme1}}}<!--
+
-->{{#if:{{{programme2|}}} | *{{{programme2}}}}}<!--
+
-->{{#if:{{{programme3|}}} | *{{{programme3}}}}}<!--
+
-->{{#if:{{{programme4|}}} | *{{{programme4}}}}}<!--
+
-->{{#if:{{{programme5|}}} | *{{{programme5}}}}}<!--
+
-->{{#if:{{{programme6|}}} | *{{{programme6}}}}} }}
+
{{!}}-
+
{{#if:{{{activity1name|}}} | {{!}} '''Significant {{#if: {{{activitytype|}}} |{{{activitytype}}} |operation}}{{#if:{{{activity2name|}}}{{{activity3name|}}}{{{activity4name|}}}{{{activity5name|}}}{{{activity6name|}}}|s}}''' {{!!}}
+
*{{{activity1name}}}<!--
+
-->{{#if:{{{activity2name|}}} | *{{{activity2name}}}}}<!--
+
-->{{#if:{{{activity3name|}}} | *{{{activity3name}}}}}<!--
+
-->{{#if:{{{activity4name|}}} | *{{{activity4name}}}}}<!--
+
-->{{#if:{{{activity5name|}}} | *{{{activity5name}}}}}<!--
+
-->{{#if:{{{activity6name|}}} | *{{{activity6name}}}}} }}
+
{{!}}-
+
{{#if:{{{anniversary1|}}} | {{!}} '''Anniversar{{#if:{{{anniversary2|}}}{{{anniversary3|}}}{{{anniversary4|}}}{{{anniversary5|}}}{{{anniversary6|}}}|ies|y}}''' {{!!}}
+
*{{{anniversary1}}}<!--
+
-->{{#if:{{{anniversary2|}}} | *{{{anniversary2}}}}}<!--
+
-->{{#if:{{{anniversary3|}}} | *{{{anniversary3}}}}}<!--
+
-->{{#if:{{{anniversary4|}}} | *{{{anniversary4}}}}}<!--
+
-->{{#if:{{{anniversary5|}}} | *{{{anniversary5}}}}}<!--
+
-->{{#if:{{{anniversary6|}}} | *{{{anniversary6}}}}} }}
+
{{!}}-
+
{{#if:{{{award1|}}} | {{!}} '''Award{{#if:{{{award2|}}}{{{award3|}}}{{{award4|}}}{{{award5|}}}{{{award6|}}}|s}}''' {{!!}}
+
*{{{award1}}}<!--
+
-->{{#if:{{{award2|}}} | *{{{award2}}}}}<!--
+
-->{{#if:{{{award3|}}} | *{{{award3}}}}}<!--
+
-->{{#if:{{{award4|}}} | *{{{award4}}}}}<!--
+
-->{{#if:{{{award5|}}} | *{{{award5}}}}}<!--
+
-->{{#if:{{{award6|}}} | *{{{award6}}}}} }}
+
{{!}}} }}<!--
+
  
 +
-->    {{#if: {{{speciality2|}}} | {{Infobox law enforcement agency/autocat specialist
 +
|defunct    = {{{defunct|}}}
 +
|country    = {{{country|}}}
 +
|countryabbr = {{{countryabbr|}}}
 +
|commonname = {{{commonname|}}}
 +
|divtype    = {{{divtype|}}}
 +
|divname    = {{{divname|}}}
 +
|police    = {{{police|}}}
 +
|speciality = {{{speciality2}}} }} }}<!--
  
 +
-->    {{#if: {{{speciality3|}}} | {{Infobox law enforcement agency/autocat specialist
 +
|defunct    = {{{defunct|}}}
 +
|country    = {{{country|}}}
 +
|countryabbr = {{{countryabbr|}}}
 +
|commonname = {{{commonname|}}}
 +
|divtype    = {{{divtype|}}}
 +
|divname    = {{{divname|}}}
 +
|police    = {{{police|}}}
 +
|speciality = {{{speciality3}}} }} }}<!--
  
 +
-->    {{#if: {{{speciality4|}}} | {{Infobox law enforcement agency/autocat specialist
 +
|defunct    = {{{defunct|}}}
 +
|country    = {{{country|}}}
 +
|countryabbr = {{{countryabbr|}}}
 +
|commonname = {{{commonname|}}}
 +
|divtype    = {{{divtype|}}}
 +
|divname    = {{{divname|}}}
 +
|police    = {{{police|}}}
 +
|speciality = {{{speciality4}}} }} }}<!--
  
Website and Footnotes and snapbox template edit navigation
+
-->    {{#if: {{{speciality5|}}} | {{Infobox law enforcement agency/autocat specialist
 +
|defunct    = {{{defunct|}}}
 +
|country    = {{{country|}}}
 +
|countryabbr = {{{countryabbr|}}}
 +
|commonname = {{{commonname|}}}
 +
|divtype    = {{{divtype|}}}
 +
|divname    = {{{divname|}}}
 +
|police    = {{{police|}}}
 +
|speciality = {{{speciality5}}} }} }}<!--
  
-->
+
-->     {{#if: {{{speciality6|}}} | {{Infobox law enforcement agency/autocat specialist
|-
+
|defunct    = {{{defunct|}}}
{{#if:{{{website|}}} |  
+
|country    = {{{country|}}}
{{!}} style="background: #efefef; text-align:center; border-top:solid 1px #aaa" colspan="2"{{!}}'''Website'''
+
|countryabbr = {{{countryabbr|}}}
{{!}}-
+
|commonname = {{{commonname|}}}
{{!}} style="text-align:center;  line-height:20px" colspan="2"{{!}}{{{website}}}}}
+
|divtype    = {{{divtype|}}}
|-
+
|divname    = {{{divname|}}}
{{#if:{{{footnotes|}}}{{{reference|}}} | {{!}} style="background: #efefef; text-align:center; border-top:solid 1px #aaa" colspan="2"{{!}}<span id="ibleafn" />'''Footnotes'''
+
|police    = {{{police|}}}
{{!}}-
+
|speciality = {{{speciality6}}} }} }}<!--
{{!}} style="text-align:left" colspan="2"{{!}}<small>{{{footnotes|}}} </small>{{#if: {{{reference|}}} | <small>&nbsp;See the reference{{#tag:ref |{{{reference}}} |name=iblearef}} below for the source of the above data.</small>}}}}
+
|-
+
|{{#if: {{{infotype|}}} |style="text-align:center; background:#efefef; border-top:solid 1px #aaa" colspan="2" {{!}} {{navbar |{{{template_name|{{{sharedcat}}}}}} |plain=1 |nodiv=1}}<br><small>this information</small>}}<!--
+
  
Close tables
+
International
-->
+
-->     {{#if: {{{international|}}} |[[Category:International law enforcement agencies{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]}}<!--
{{#ifeq: {{{infotype|}}} | related |<!--
+
then close two tables
+
-->
+
{{!}}}
+
{{!}}}|<!--
+
else close one table
+
-->
+
{{!}}} }}<!--end of infobox
+
  
 +
Multinational
 +
-->    {{#if: {{{multinational|}}} |[[Category:Multinational law enforcement agencies{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]}}<!--
  
 +
Civilian police
 +
--      (CFD 2008 Apr 9)  --
  
Documentation, and autocategorisation but only if not transclusion for examples or other documentation
+
Secret police
 +
-->    {{#if: {{{secret|}}}
 +
            |{{#ifexist: Category:Secret police agencies
 +
                |[[Category:Secret police agencies{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]<!-- The standard  -->
 +
                |[[Category:Secret police{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
            }}
 +
        }}<!--  end Secret
  
 +
Military
 +
-->    {{#if: {{{military|}}}{{{provost|}}}{{{gendarmerie|}}}
 +
            |{{#if: {{{gendarmerie|}}}
 +
            <!-- Gendarmerie -->
 +
                |{{#ifexist: Category:Gendarmerie of {{{country|}}}<!-- The standard -->
 +
                      |[[Category:Gendarmerie of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                      |{{#ifexist: Category:Gendarmerie of the {{{country|}}}
 +
                          |[[Category:Gendarmerie of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                          |[[Category:Gendarmerie{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                      }}
 +
                  }}<!--  end Gendarmerie -->
 +
            |{{#if: {{{provost|}}}
 +
            <!-- Military Provost -->
 +
                |{{#if:{{{country|}}}|
 +
                  {{#ifexist: Category:Military provosts of {{{country}}}<!-- The standard -->
 +
                      |[[Category:Military provosts of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                      |{{#ifexist: Category:Military provosts of the {{{country}}}
 +
                          |[[Category:Military provosts of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                          |{{#ifexist: Category:{{{country}}} military provosts
 +
                                |[[Category:{{{country}}} military provosts{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                |<!-- No military provost category so try military police instead -->
 +
                                {{#ifexist: Category:Military police agencies of {{{country}}}<!-- The standard -->
 +
                                    |[[Category:Military police agencies of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                    |{{#ifexist: Category:Military police agencies of the {{{country}}}
 +
                                          |[[Category:Military police agencies of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                          |{{#ifexist: Category:{{{country}}} military police agencies
 +
                                              |[[Category:{{{country}}} military police agencies{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                              |{{#ifexist: Category:Military police of {{{country}}}
 +
                                                    |[[Category:Military police of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                                    |{{#ifexist: Category:Military police of the {{{country}}}
 +
                                                        |[[Category:Military police of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                                        |{{#ifexist: Category:{{{country}}} military police
 +
                                                              |[[Category:{{{country}}} military police{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                                              |[[Category:Military police agencies of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]<!-- Resort to the standard -->
 +
                                                          }}
 +
                                                    }}
 +
                                              }}
 +
                                          }}
 +
                                      }}
 +
                                }}<!--  end Military Police when no Military Provost  -->
 +
                            }}
 +
                      }}
 +
                  }}
 +
                  |<!--  no country  -->[[Category:Military provosts{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]}}<!-- end country check -->
 +
                  <!--  end Military Provost  -->
 +
            <!--  Military Police  -->
 +
                |{{#ifexist: Category:Military police agencies of {{{country}}}<!-- The standard -->
 +
                      |[[Category:Military police agencies of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                      |{{#ifexist: Category:Military police agencies of the {{{country}}}
 +
                          |[[Category:Military police agencies of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                          |{{#ifexist: Category:{{{country}}} military police agencies
 +
                                |[[Category:{{{country}}} military police agencies{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                |{{#ifexist: Category:Military police of {{{country}}}
 +
                                    |[[Category:Military police of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                    |{{#ifexist: Category:Military police of the {{{country}}}
 +
                                          |[[Category:Military police of the {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                          |{{#ifexist: Category:{{{country}}} military police
 +
                                              |[[Category:{{{country}}} military police{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
                                              |[[Category:Military police agencies of {{{country}}}{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]<!-- Resort to the standard -->
 +
                                          }}
 +
                                      }}
 +
                                }}
 +
                            }}
 +
                      }}
 +
                  }}<!--  end Military Police  -->
 +
            }}<!--  end provost parameter  -->}}<!--  end gendarmerie parameter  -->
 +
        }}<!--  end military, provost, and gendarmerie parameters
  
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|<!-- only categorise on article namespace --><!--
+
Legal personality
 +
-->     {{#switch:{{{legalpersonality}}}
 +
|government agency|government-owned corporation|government ministry = <!--  do nothing for government agencies  -->
 +
|<!--  default action for non government agencies  -->[[Category:Non-government law enforcement agencies{{#if: {{{commonname|}}} | {{!}}{{{commonname}}}}}]]
 +
        }}<!-- end Legal personality
 +
-->}}<!-- end Fictional
  
bulk auto categoristion
+
--></includeonly><noinclude><!--
-->{{#ifeq:{{{infotype|}}}|related|<!-- no bulk categorisation if not main-->|{{Infobox law enforcement agency/autocat
+
|agencyclass ={{{agencyclass}}}
+
|country={{{country|}}}
+
|countryabbr={{{countryabbr|}}}
+
|commonname={{{commonname|}}}
+
|divtype={{lc:{{{divtype|}}}}}
+
|divname={{{divname|}}}
+
|subdivtype={{lc:{{{subdivtype|}}}}}
+
|subdivname={{{subdivname|}}}
+
|governingbody={{{governingbody|}}}
+
|international={{#if:{{{international|}}}|Yes}}
+
|multinational={{#if:{{{multinational|}}}|Yes}}
+
|national={{#if:{{{national|}}}|Yes}}
+
|federal={{#if:{{{federal|}}}|Yes}}
+
|police={{#if:{{{police|}}}|Yes}}
+
|local={{#if:{{{local|}}}|Yes}}
+
|military={{#if:{{{military|}}}|Yes}}
+
|provost={{#if:{{{provost|}}}|Yes}}
+
|gendarmerie={{#if:{{{gendarmerie|}}}|Yes}}
+
|secret={{#if:{{{secret|}}}|Yes}}
+
|speciality1={{{speciality1|}}}
+
|speciality2={{{speciality2|}}}
+
|speciality3={{{speciality3|}}}
+
|speciality4={{{speciality4|}}}
+
|speciality5={{{speciality5|}}}
+
|speciality6={{{speciality6|}}}
+
|defunct={{#if:{{{dissolved|}}}|Yes}}
+
|fictional={{#if:{{{fictional|}}}|Yes}}
+
|secularity={{#if:{{{religious|}}}|religious|secular}}
+
|legalpersonality={{{legalpersonality}}}
+
|formedyear={{{formedyear|}}}
+
}} |<!-- no bulk (agency article) categoristion if not explicitly main article -->}}<!--
+
  
special auto categorisation
+
This template uses codified values
-->{{#if:{{{sharedcat|}}} |{{#ifeq: {{{infotype|}}} | related |{{#if: {{{subname|}}} |[[Category:{{{sharedcat}}}|{{{subname}}}]] |[[Category:{{{sharedcat}}}]] }}<!-- end of subname --> |[[Category:{{{sharedcat}}}| ]] }}<!-- end of infotype --> }}<!-- end of sharedcat --> }}<!-- end of doc --></includeonly>
+
-->[[Category:Specialist law enforcement agency codified templates|Infobox law enforcement agency/autocat]]</noinclude>

Revision as of 23:28, 10 November 2014

This template automatically categorises articles. It is a sub template for Template:Infobox law enforcement agency