This is the WSNavMenu template. It should be called in the following format:

{{WSNavMenu
|Input=(text) enter a list of pages, with each subitem on a new line and an empty line between main menu items (see example below). Use "*" to add a linktext different from the pagetitle.
}}
{{WSNavMenu
|Input=Main Page*{{Fa|home}} Home

Pages

Search*Search

{{Fa|lock}} Spaces
Special:AddSpace*Add a Space
Special:ActiveSpaces*Manage Active Spaces
Special:ArchivedSpaces*Manage Archived Spaces

{{Fa|lock}} Tools
MediaWiki:Ws-navmenu*NavMenu
MediaWiki:Ws-header*Header
MediaWiki:Ws-footer*Footer
Wiki:page-types*Page types
Wiki:Wiki pages*Wiki pages
File:Logo.png*Logo
}}

Test