Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:MilLeadership/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Builds a unit leadership table (commanding officers, RSMs, chaplains, and similar posts) from a list of people and from/to dates. Award codes use Module:MilAward, not Template:Post-nominals/ZAR.

This is the Lua successor to {{Post-start}} / {{Post-header}} / {{Post-member}} / {{End}}. Those templates stay in place until pages are converted.

Do not put a raw pipe (|) between fields in a post list. MediaWiki would treat it as a new template parameter. Use {{MilLdr}} (recommended) or the // list form.

For more than one post (COs, RSMs, chaplains), prefer |content= with == Post name == headings so the sections stay in the order you type them.

Recommended: nested {{MilLdr}}

[edit]
{{MilLeadership
| caption = 61 Mechanised Battalion Group Leadership
| content =
== Commanding Officers ==
{{MilLdr|1978|1978|Cmdt|[[Frank Bestbier]]|note=Veggroup (Battle Group) Juliet}}
{{MilLdr|Jan 1981|1982|Cmdt|[[Roland de Vries]]|awards=SD, SM, MMM|note=Later Major General}}
== Regimental Sergeants Major ==
{{MilLdr|1979|1981|WO1|M.C. Barnard}}
}}

List form

[edit]

Same data without {{MilLdr}}. Fields are separated by space-slash-slash-space ( // ):

{{MilLeadership
| caption = Example
| Commanding Officers =
* 1978 // 1978 // Cmdt // [[Frank Bestbier]] // note=Veggroup Juliet
* Jan 1981 // 1982 // Cmdt // [[Roland de Vries]] // awards=SD, SM, MMM // note=Later Major General
}}

A compact year range is accepted: * 1978–1982 // Cmdt // Name

Ribbons

[edit]

Off by default. |ribbons=yes adds a right-hand column and draws a small {{MilAward Stack}} for any row that has awards=. Default stack size is x8px (override with |ribbon_size=x10px).

{{MilLeadership
| caption = Example
| ribbons = yes
| Commanding Officers =
{{MilLdr|Jan 1981|1982|Cmdt|[[Roland de Vries]]|awards=SD, SM, MMM}}
}}

Parameters

[edit]
ParameterDescription
captionTable caption
floatright, left, or center/centre. Default: normal left alignment per MOS:TABLELEFT (not floated, not centred). Empty float= is the same as omitting it.
colorHeader/border colour. Default #CF9C65
countryReserved (ZAR). Award lookup is via MilAward codes, which are global.
ribbonsyes to show the ribbon column. Default off.
ribbon_sizeFile height for the ribbon column. Default x8px
nocatyes to suppress tracking categories
contentOptional single blob using == Post name == headings instead of named parameters
any other named parameterTreated as a post heading. The value is the member list. Order follows the order you type the parameters.

Per person ({{MilLdr}} or list extras)

[edit]
FieldDescription
1 / fromFrom date (display string: 1978, Nov 1978, Jan 1981)
2 / toTo date
3 / rankRank or style at the time of the posting (Cmdt, WO1, Ds, …)
4 / nameName. Wikilink it yourself; this template will not invent links.
awardsMilAward codes, comma-separated: SD, SM, MMM
noteExplanatory footnote ({{efn}}). Prefer note-1 when using numbered named notes.
note-name / named-noteSingle named efn (e.g. RIP). First defining row also sets note=; later rows use the name only. Do not repeat this parameter on the same {{MilLdr}} call.
named-note-1, named-note-2, …Multiple named efn names on one row (aliases NamedNote-N, note-name-N). Pair with note-1, note-2, … for definition text. Example: |named-note-1=LaterBrigadierGeneral|named-note-2=LaterHonoraryColonel|note-2=Later Honorary Colonel
notesExtra footnotes, separated by  ;; (or Name: text ;; Name2: text)
refCitation, wrapped in <ref> unless it already contains one
linkIf the name is not already a wikilink: yes wraps name, or a page title wraps name
vacantyes shows No permanent appointment when the name is empty

The article still needs {{notelist}} (and {{reflist}}) where footnotes/references are collected.

See also

[edit]