This template is called by {{Start tab}} and {{End tab}} to create tab bars for use in navigating WikiProjects and other areas outside of the main encyclopedia. It should not be used on articles themselves.

{{tab}} expects link and tab to be passed to it. If the current page title matches link then the tab will be styled differently. If freeform is passed then the tab text is displayed freeform as it is; otherwise, the text from tab is used to label the wikilink pointed to be link.