Jump to content

Template:Africa templates/doc: Difference between revisions

From Humanipedia
m Examples: fix code samples
 
m 1 revision imported
 
(No difference)

Latest revision as of 22:40, 11 February 2025

Lua error in package.lua at line 80: module 'Module:Yesno' not found.

Parameters[edit source]

This template's initial visibility currently defaults to autocollapse, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.

To change this template's initial visibility, the |state= parameter may be used:

  • <syntaxhighlight lang="wikitext" inline="1">{{Africa templates|state=collapsed}}</syntaxhighlight> will show the template collapsed, i.e. hidden apart from its title bar.
  • <syntaxhighlight lang="wikitext" inline="1">{{Africa templates|state=expanded}}</syntaxhighlight> will show the template expanded, i.e. fully visible.

Suffix[edit source]

|suffix=
parameter can be used to replace the word "suffix" in the name of the categories. E.g. |suffix=navigational boxes or |suffix=sidebar templates

Examples[edit source]

Navboxes[edit source]

{{Africa templates|state=expanded|suffix=navigational boxes}}

Sidebars[edit source]

{{Africa templates|state=expanded|suffix=sidebar templates}}