Template:rel-top/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Template:rel-top. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

Usage[edit]

This template may be used together with {{rel-bottom}} to format a collapsed two-column list of related terms in the "Related terms" section of an entrys. However, it is suggested that a {{col}} template (for example, {{col2}}, {{col3}} or {{col4}}) be used for this purpose. Each item in the list should begin with an asterisk (*) and be indicated using {{l}}.

  • Wikitext:
{{rel-top}}
* {{l|en|first}}
* {{l|en|second}}
* {{l|en|third}}
* {{l|en|fourth}}
* {{l|en|fifth}}
* {{l|en|sixth}}
{{rel-bottom}}
  • Result:

Besides the above, this template takes an optional 1st-position parameter that replaces the words "Related terms" in the bar.

TemplateData[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for rel-top

This template helps to create a collapsible box. It should be used in conjunction with {{rel-bottom}} (the collapsed content goes between the two).

Template parameters[Edit template data]

This template has custom formatting.

ParameterDescriptionTypeStatus
title1

Text shown in the title bar (the bar visible even in collapsed form)

Stringoptional

See also[edit]