| Italics indicates an unrecognised or partially recognised country. 1 Entirely in Southwest Asia. 2 Partially or entirely in Asia, depending on the border definitions. 3 / 4 / 5 / 6 Has part of its territory in Asia / North America / South America / Africa. 7 / 8 Entirely on the North American Plate / African Plate.</td></tr></table></td></tr></table>
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
Note that in the above example the links work but the underscore is displayed in the title. This can be fixed by specifying a title (see next section) or by using the named parameter suffix which always places a space between the country name and text.
- Code
{{South America topic|prefix=List of basic|suffix=topics}}
- Result
Changing the title
The title parameter is used to specify text which appears in the title bar at the top of the navigation box. This is optional because the use of prefix, suffix or both will automatically generate a title, as shown in the previous examples. This title is not automatically wiki-linked, so add brackets as needed.
The following shows a navigation box with links to articles such as Flag of Australia, but replaces the default title "Flag of Oceania" with the specified title "Flags of Oceania".
- Code
{{Oceania topic|Flag of|title=[[Flags of Oceania]]}}
- Result
Displaying template in show mode
These navigation boxes are set to autocollapse when there is more than one on a page. To force it into collapsed or expanded mode use the state parameter. If set to collapsed, the navbox will always start out in a collapsed state. If set to blank or anything other than autocollapse or collapsed, the navbox will always start out in an expanded state.
- Code
{{Africa topic|prefix=Geography of|state=expand}}
- Result
Disabling dependencies and other territories
Not all dependencies or similar territories have their own articles on particular topics. To disable the inclusion of such territories in a template (that would otherwise appear as red links), include the parameter "countries_only=yes".
- Code
{{Europe topic|prefix=Islam in|state=expand|countries_only=yes}}:
- Result
| Islam in Europe |
|---|
| Sovereign states | </td></tr> | | </td></tr> | | 1 Entirely in Southwest Asia. 2 Partially or entirely in Asia, depending on the border definitions. 3 / 4 / 5 / 6 Has part of its territory in Asia / North America / South America / Africa. </td></tr></table></td></tr></table>
Creating a new template
Although these templates can be used in an article, they can also be used to create a new template. The name parameter is mandatory when creating a new template, because it allows the "v · d · e" links to work properly. The following example shows code that could be used to create Template:Flags of Europe.
{{Europe topic
| name = Flags of Europe
| title = [[Flags of Europe]]
| prefix = Flag of
| state = {{{state| |
|
|