Jump to content

Template:Government agency: Difference between revisions

From nUSA Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<infobox>
<includeonly>
  <title source="title1">
{{Infobox
    <default>{{PAGENAME}}</default>
| title             = {{#if: {{{title1|}}} | {{{title1}}} | {{PAGENAME}} }}
  </title>
| image1            = {{{image1|}}}
  <image source="image1">
| caption1          = {{{caption1|}}}
    <caption source="caption1"/>
| Incumbent        = {{{Incumbent|}}}
  </image>
| First holder      = {{{First holder|}}}
  <data source="Incumbent">
| formed            = {{{formed|}}}
    <label>Incumbent</label>
| preceding_agencies = {{{preceding_agencies|}}}
   </data>
| type              = {{{type|}}}
   <data source="First holder">
| jurisdiction      = {{{jurisdiction|}}}
    <label>First holder</label>
| headquarters      = {{{headquarters|}}}
   </data>
| employees        = {{{employees|}}}
   <data source="formed">
| agency_executives = {{{agency_executives|}}}
    <label>Formed</label>
| child_agencies    = {{{child_agencies|}}}
   </data>
}}
   <data source="preceding_agencies">
</includeonly>
    <label>Preceding agencies</label>
<noinclude>
   </data>
Example usage:
   <data source="type">
<pre>
    <label>Type</label>
{{Government agency
  </data>
  | title1=Example
   <data source="jurisdiction">
  | image1=Example.png
     <label>Jurisdiction</label>
   | caption1=Example caption
  </data>
   | Incumbent=John Doe
  <data source="headquarters">
  | First holder=Jane Smith
     <label>Headquarters</label>
   | formed=1900
  </data>
   | preceding_agencies=None
  <data source="employees">
  | type=Federal agency
     <label>Employees</label>
   | jurisdiction=Country
  </data>
   | headquarters=Washington, D.C.
  <data source="agency_executives">
  | employees=1000
     <label>Agency executives</label>
   | agency_executives=John Doe, Jane Smith
  </data>
   | child_agencies=Agency A, Agency B
  <data source="child_agencies">
}}
     <label>Child agencies</label>
</pre>
   </data>
<templatedata>
</infobox>
{
   "params": {
     "title1": {"suggested": true},
    "image1": {"suggested": true},
    "caption1": {"suggested": true},
     "Incumbent": {"suggested": true},
    "First holder": {"suggested": true},
    "formed": {"suggested": true},
     "preceding_agencies": {"suggested": true},
    "type": {"suggested": true},
    "jurisdiction": {"suggested": true},
     "headquarters": {"suggested": true},
    "employees": {"suggested": true},
    "agency_executives": {"suggested": true},
     "child_agencies": {"suggested": true}
   }
}
</templatedata>
</noinclude>

Revision as of 01:49, 9 January 2025


Example usage:

{{Government agency
  | title1=Example
  | image1=Example.png
  | caption1=Example caption
  | Incumbent=John Doe
  | First holder=Jane Smith
  | formed=1900
  | preceding_agencies=None
  | type=Federal agency
  | jurisdiction=Country
  | headquarters=Washington, D.C.
  | employees=1000
  | agency_executives=John Doe, Jane Smith
  | child_agencies=Agency A, Agency B
}}

<templatedata> {

 "params": {
   "title1": {"suggested": true},
   "image1": {"suggested": true},
   "caption1": {"suggested": true},
   "Incumbent": {"suggested": true},
   "First holder": {"suggested": true},
   "formed": {"suggested": true},
   "preceding_agencies": {"suggested": true},
   "type": {"suggested": true},
   "jurisdiction": {"suggested": true},
   "headquarters": {"suggested": true},
   "employees": {"suggested": true},
   "agency_executives": {"suggested": true},
   "child_agencies": {"suggested": true}
 }

} </templatedata>