These templates are navigation blocks for groups of related articles, or for compacted tables of contents.
See Memory Alpha: Starship navigational templates for templates related to starship articles and Memory Alpha: People navigational templates for templates related to people articles.