Jump to content

Template:Wing Infobox: Difference between revisions

From CAPipedia
DBurch97 (talk | contribs)
No edit summary
DBurch97 (talk | contribs)
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width:22em; border:1px solid #a2a9b1; background:#f8f9fa; float:right; margin:0 0 1em 1em; padding:5px; font-size:90%; border-collapse:collapse;"
 
|+ style="font-size:125%; font-weight:bold; background:#003366; color:white; padding:5px;" | {{{unit_name|{{PAGENAME}}}}}
<noinclude>
{{#if:{{{Image|}}}|
|-
| colspan="2" style="text-align:center; padding:5px;" | [[File:{{{Image}}}|{{{imagesize|200px}}}|alt={{{alt|}}}]]
}}
{{#if:{{{Established|}}}|
|-
! style="text-align:left; padding:3px;" | Established
| style="padding:3px;" | {{{Established}}}
}}
{{#if:{{{Country|}}}|
|-
! style="text-align:left; padding:3px;" | Country
| style="padding:3px;" | {{{Country}}}
}}
{{#if:{{{State|}}}|
|-
! style="text-align:left; padding:3px;" | State
| style="padding:3px;" | {{{State}}}
}}
{{#if:{{{Commander|}}}|
|-
! style="text-align:left; padding:3px;" | Commander
| style="padding:3px;" | {{{Commander}}}
}}
{{#if:{{{Deputy Commander|}}}|
|-
! style="text-align:left; padding:3px;" | Deputy Commander
| style="padding:3px;" | {{{Deputy Commander}}}
}}
{{#if:{{{Chief of Staff|}}}|
|-
! style="text-align:left; padding:3px;" | Chief of Staff
| style="padding:3px;" | {{{Chief of Staff}}}
}}
{{#if:{{{Squadrons|}}}|
|-
! style="text-align:left; padding:3px;" | Squadrons
| style="padding:3px;" | {{{Squadrons}}}
}}
{{#if:{{{Cadets|}}}|
|-
! style="text-align:left; padding:3px;" | Cadets
| style="padding:3px;" | {{{Cadets}}}
}}
{{#if:{{{Seniors|}}}|
|-
! style="text-align:left; padding:3px;" | Seniors
| style="padding:3px;" | {{{Seniors}}}
}}
{{#if:{{{Website|}}}|
|-
! style="text-align:left; padding:3px;" | Website
| style="padding:3px;" | {{{Website}}}
}}
|}</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
"params": {
  "description": "Infobox for Civil Air Patrol Wing pages.",
"State": {},
  "params": {
"Image": {
    "image": {
"type": "wiki-file-name"
      "label": "Image Box",
},
      "description": "File name of the emblem or patch (e.g., Example.png).",
"imagesize": {
      "type": "wiki-file-name",
"label": "Image size"
      "suggested": true
},
    },
"alt": {
    "commander": {
"label": "Alt text",
      "label": "Commander Box",
"type": "string"
      "description": "Name and rank of the Wing Commander.",
},
      "type": "string",
"Commander": {},
      "suggested": true
"Chief of Staff": {},
    },
"Deputy Chief of Staff": {},
    "deputy_commander": {
"Squadrons": {},
      "label": "Deputy Commander Box",
"Cadets": {},
      "description": "Name and rank of the Deputy Commander.",
"Seniors": {},
      "type": "string"
"Total": {},
    },
"Awards": {},
    "chief_of_staff": {
"Website": {
      "label": "Chief of Staff Box",
"type": "url"
      "description": "Name and rank of the Chief of Staff.",
},
      "type": "string"
"Date": {
    },
"type": "date"
    "cadets": {
},
      "label": "Number of Cadets Box",
"Established": {},
      "description": "Current number of cadet members.",
"Country": {},
      "type": "number"
"Deputy Commander": {},
    },
"Senior Enlisted Leader": {}
    "seniors": {
},
      "label": "Number of Seniors Box",
"format": "block"
      "description": "Current number of senior members.",
      "type": "number"
    },
    "total_members": {
      "label": "Total Number of Members Box",
      "description": "Total combined membership count.",
      "type": "number"
    },
    "as_of": {
      "label": "As of (Date) Box",
      "description": "Date when the membership stats were last updated.",
      "type": "date"
    },
    "website": {
      "label": "Website Box",
      "description": "URL to the official Wing website.",
      "type": "url"
    }
  },
  "paramOrder": [
    "image",
    "commander",
    "deputy_commander",
    "chief_of_staff",
    "cadets",
    "seniors",
    "total_members",
    "as_of",
    "website"
  ]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 09:37, 4 September 2026


<templatedata> {

 "description": "Infobox for Civil Air Patrol Wing pages.",
 "params": {
   "image": {
     "label": "Image Box",
     "description": "File name of the emblem or patch (e.g., Example.png).",
     "type": "wiki-file-name",
     "suggested": true
   },
   "commander": {
     "label": "Commander Box",
     "description": "Name and rank of the Wing Commander.",
     "type": "string",
     "suggested": true
   },
   "deputy_commander": {
     "label": "Deputy Commander Box",
     "description": "Name and rank of the Deputy Commander.",
     "type": "string"
   },
   "chief_of_staff": {
     "label": "Chief of Staff Box",
     "description": "Name and rank of the Chief of Staff.",
     "type": "string"
   },
   "cadets": {
     "label": "Number of Cadets Box",
     "description": "Current number of cadet members.",
     "type": "number"
   },
   "seniors": {
     "label": "Number of Seniors Box",
     "description": "Current number of senior members.",
     "type": "number"
   },
   "total_members": {
     "label": "Total Number of Members Box",
     "description": "Total combined membership count.",
     "type": "number"
   },
   "as_of": {
     "label": "As of (Date) Box",
     "description": "Date when the membership stats were last updated.",
     "type": "date"
   },
   "website": {
     "label": "Website Box",
     "description": "URL to the official Wing website.",
     "type": "url"
   }
 },
 "paramOrder": [
   "image",
   "commander",
   "deputy_commander",
   "chief_of_staff",
   "cadets",
   "seniors",
   "total_members",
   "as_of",
   "website"
 ]

} </templatedata>