Jump to content

Template:Wing Infobox: Difference between revisions

From CAPipedia
DBurch97 (talk | contribs)
No edit summary
DBurch97 (talk | contribs)
No edit summary
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}}}}}
{{#if:{{{Image|}}}|
|-
| colspan="2" style="text-align:center; padding:5px;" | [[File:{{{Image}}}|{{{imagesize|200px}}}|alt={{{alt|}}}]]
}}
{{#if:{{{Commander|}}}{{{Deputy Commander|}}}{{{Chief of Staff|}}}|
|-
! colspan="2" style="background:#003366; color:white; text-align:center; font-weight:bold; padding:3px;" | Command Staff
}}
{{#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:{{{Cadets|}}}{{{Seniors|}}}{{{Total|}}}|
|-
! colspan="2" style="background:#003366; color:white; text-align:center; font-weight:bold; padding:3px;" | Personnel
}}
{{#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:{{{Total|}}}|
|-
! style="text-align:left; padding:3px;" | Total Members
| style="padding:3px;" | {{{Total}}}
}}
{{#if:{{{Website|}}}|
|-
! style="text-align:left; padding:3px;" | Website
| style="padding:3px;" | {{{Website}}}
}}
|}</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
Line 193: Line 144:
</templatedata>
</templatedata>
</noinclude>
</noinclude>
}

Revision as of 09:36, 4 September 2026

{ <templatedata> { "description": "An infobox for Civil Air Patrol Wing pages.", "params": { "unit_name": { "label": "Unit Name", "description": "The full name of the wing (defaults to page title).", "type": "string" }, "Image": { "label": "Image Filename", "description": "File name of the wing patch or logo (e.g., Example.png).", "type": "wiki-file-name" }, "imagesize": { "label": "Image Size", "description": "Display width of the image (default is 200px).", "type": "string" }, "alt": { "label": "Alt Text", "description": "Accessibility description for the image.", "type": "string" }, "Commander": { "label": "Commander", "description": "Name and rank of the Wing Commander.", "type": "string" }, "Deputy Commander": { "label": "Deputy Commander", "description": "Name and rank of the Vice / Deputy Commander.", "type": "string" }, "Chief of Staff": { "label": "Chief of Staff", "description": "Name and rank of the Chief of Staff.", "type": "string" }, "Cadets": { "label": "Cadet Count", "description": "Total number of cadet members.", "type": "number" }, "Seniors": { "label": "Senior Count", "description": "Total number of senior members.", "type": "number" }, "Total": { "label": "Total Members", "description": "Total membership count across all categories.", "type": "number" }, "Website": { "label": "Website URL", "description": "Link to the official wing website.", "type": "url" } }, "format": "block", "paramOrder": [ "unit_name", "Image", "imagesize", "alt", "Commander", "Deputy Commander", "Chief of Staff", "Cadets", "Seniors", "Total", "Website" ] } </templatedata>


<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>

}