Mustache Documentation: Cleanup/Clarify Mustache template params
* Content.mustache doc param order was modified to follow the html structure order (with html-dataAfterContent at bottom ). `html-userlangattributes` was added to param documention since it was absent. * Footer.mustache doc param order was modified to follow the html structure order (with `html-userlangattributes` placed after `html-vector-before-footer`) * Navigation.mustache was modified to remove `html-sidebar`, `html-navigation-left-tabs` and `html-navigation-right-tabs` params from doc since those are absent from Navigation.mustache. * `data-namespace-tabs`, `data-variants`, `data-page-actions`, `data-page-actions-more`, `data-search-box`, `data-sidebar` params were added in Navigation.mustache documentation since those are present. Bug: T243281 Change-Id: I321f8d61ad0305f508521e8d4d805e846103b357
This commit is contained in:
parent
c85c0700a9
commit
9964e56156
@ -9,8 +9,8 @@
|
||||
@prop string id of list element
|
||||
@prop footerItem[] array-items
|
||||
|
||||
string|null html-userlangattributes a string of attribute HTML
|
||||
string html-hook-vector-before-footer output of VectorBeforeFooter hook
|
||||
string|null html-userlangattributes a string of attribute HTML
|
||||
footerRow[] array-footer-rows iterable list of footer rows
|
||||
}}
|
||||
{{{html-hook-vector-before-footer}}}
|
||||
|
@ -1,10 +1,13 @@
|
||||
{{!
|
||||
string html-navigation-heading heading for entire navigation that is
|
||||
usually hidden to screen readers
|
||||
string html-personal-menu content that appears as the first child of mw-head
|
||||
string html-navigation-left-tabs that appears inside #left-navigation (namespaces and variants)
|
||||
string html-navigation-right-tabs that appears inside #right-navigation (page actions and search)
|
||||
string html-sidebar sidebar HTML
|
||||
object data-personal-menu See PersonalMenu.mustache for documentation.
|
||||
object data-namespace-tabs. See VectorTabs.mustache for documentation.
|
||||
object data-variants. See VectorMenu.mustache for documentation.
|
||||
object data-page-actions. See VectorTabs.mustache for documentation.
|
||||
object data-page-actions-more. See VectorMenu.mustache for documentation.
|
||||
object data-search-box. See SearchBox.mustache for documentation.
|
||||
object data-sidebar. See Sidebar.mustache for documentation.
|
||||
}}
|
||||
<div id="mw-navigation">
|
||||
<h2>{{{html-navigation-heading}}}</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user