Jump to content

Module:Navigation header/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Harej (talk | contribs) at 03:33, 11 May 2023 (documentation). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Provides functionality to Template:Navigation header

Functions

getIcon

getIcon(key: string) -> string

Takes an icon key and returns the corresponding icon filename from the standard icons table.

key: A string representing the key for the standard icon.

Returns: The filename of the corresponding icon from the standard icons table, or the input key if the key is not found in the table.

navigationHeader(frame: table) -> string

Takes a frame object containing the module's arguments and generates a navigation header.

frame: A table containing the arguments passed to the module.

Returns: A string representing the generated HTML for the navigation header.

Usage

See Template:Navigation header