Jump to content

Module:Navigation tabs/doc

From Meta, a Wikimedia project coordination wiki

This is the documentation page for Module:Navigation tabs

Provides functionality to Template:Navigation tabs

Functions[edit]

getIcon[edit]

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[edit]

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[edit]

See Template:Navigation tabs