Jump to content

Module:Box-header/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add deps
 
Line 2: Line 2:
{{Module rating|protected}}
{{Module rating|protected}}
{{High-use|11169}}
{{High-use|11169}}
{{Lua|Module:Box-header/colours|Module:Color contrast}}
{{Lua|Module:Box-header/colours|Module:Color contrast|Module:Arguments}}
{{Uses TemplateStyles|Module:Box-header/styles.css}}


This module creates the header section for boxed content. It implements {{tl|box-header}}. It is intended to mainly be used in portals, but can also be used elsewhere.
This module creates the header section for boxed content. It implements {{tl|box-header}}. It is intended to mainly be used in portals, but can also be used elsewhere.

Latest revision as of 04:54, 2 June 2025


This module creates the header section for boxed content. It implements {{box-header}}. It is intended to mainly be used in portals, but can also be used elsewhere.

Usage

[edit]

{{#invoke:Box-header|boxHeader}}

For use in templates; calls _boxHeader with the parameters passed to the template as arguments.

{{#invoke:Box-header|_boxHeader|args}}

For use in modules; constructs the box header (and the start of the box body). The args are the parameters accepted by Template:Box-header. (The output may need to be expanded, depending on the values in the args.)

{{#invoke:Box-header|autoColour}}

For use in templates; calls _autoColour with the parameters passed to the template as arguments.

{{#invoke:Box-header|_autoColour|args}}

For use in modules; calculates appropriate colours for the box header, and then constructs it using _boxHeader. The args are the parameters accepted by Template:Box-header colour – the same as for Template:Box-header, apart from those specifying colours and the title. (The output may need to be expanded, depending on the values in the args.)

See also

[edit]