Module:Navigation header/doc: Difference between revisions
Appearance
Content deleted Content added
documentation |
add deps |
||
Line 1: | Line 1: | ||
{{Lua|Module:Standard icons|Module:Shortcut}} |
|||
⚫ | |||
{{Uses TemplateStyles|Module:Navigation header/styles.css}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
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''': A table containing the arguments passed to the module. |
'''frame''': A table containing the arguments passed to the module. |
||
Line 19: | Line 14: | ||
Returns: A string representing the generated HTML for the navigation header. |
Returns: A string representing the generated HTML for the navigation header. |
||
=== |
=== _main === |
||
⚫ | |||
See [[Template:Navigation header]] |
|||
Takes an args object containing another module's arguments into this module and does the same as above. |
Latest revision as of 20:25, 24 September 2023
![]() | This module depends on the following other modules: |
![]() | This module uses TemplateStyles: |
Implements Template:Navigation header.
Functions
[edit]main
[edit]main(frame: table) -> string
Takes a frame object containing the template'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.
_main
[edit]_main(args: table) -> string
Takes an args object containing another module's arguments into this module and does the same as above.