Template:Africa topic/doc: Difference between revisions
(→top: automatic retrieval) |
m (1 revision imported) |
(No difference)
| |
Latest revision as of 09:39, 16 October 2022
| File:Edit-copy green.svg | This is a documentation subpage for Template:Africa topic. It may contain usage information, categories and other content that is not part of the original template page. |
Initial visibility: currently defaults to autocollapse
To set this template's initial visibility, the |state= parameter may be used:
|state=collapsed:{{Africa topic|state=collapsed}}to show the template collapsed, i.e., hidden apart from its title bar|state=expanded:{{Africa topic|state=expanded}}to show the template expanded, i.e., fully visible|state=autocollapse:{{Africa topic|state=autocollapse}}
If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.
General documentation on continent-topic templates
The continent/region-topic templates allow quick creation of a navigational template for groups of articles about a common topic in different countries of a continent/region. It uses Template:Navbox to create the navigation box.
The lists of countries included in the "Continent topic" templates are broadly those found in the "Countries of" templates. Discussions on which countries to include are best conducted on the talk pages of these latter templates.
For example, Oceania generally includes Australia and the nations of the Pacific and islands in the Pacific Ocean that have closer ties to Asia or the Americas are usually grouped accordingly.
Usage
1st parameter (prefix)
The most basic usage of template is with a single unnamed parameter in the format {{Continent/region topic |Topic [of/in]}}, replacing Continent/region with the name of a continent or region and Topic with the name of a topic followed by "of" or "in". For example, {{Africa topic |Geography of}} generates a navigation box titled "Geography of Africa" with a list of country names linked to articles such as Geography of Angola, etc.
- Code
{{Africa topic |Geography of}}
- Result
The named parameter prefix can be used in place of the unnamed 1st parameter.
- Code
{{Asia topic |prefix=Geography of}}
- Result
2nd parameter (suffix)
The template accepts a second unnamed parameter for text to be placed after the country name. There is no space between the country name and the suffix, to allow for links to articles such as List of Spain-related topics.
- Code
{{Europe topic |List of |-related topics}}
- Result
An underscore can be used to place a space between the country name and the text:
- Code
{{North America topic |List of basic |_topics}}
- Result