Template:Infobox legislation/images
From Chalo Chatu, Zambia online encyclopedia
Jump to navigationJump to search
<templatestyles src="Module:Documentation/styles.css"></templatestyles>
Purpose
This subtemplate of {{Infobox legislation}} is used to centralize and manage the small icons or images that appear in the main infobox. It standardizes the icons for consistency and makes maintenance easier.
Usage
You do not call this template directly. It is automatically invoked by {{Infobox legislation}} when an image parameter is requested.
Example from the main infobox:
{{Infobox legislation
| short_title = Example Act, 2025
| image = {{Infobox legislation/images|parliament}}
| long_title = An Act to provide for...
| enacted_by = National Assembly of Zambia
| date_enacted = 1 September 2025
}}
Parameters
This template accepts a keyword that matches the type of icon needed:
parliament
– Parliament building iconbook
– Open book iconscroll
– Legal scroll iconconstitution
– Constitution iconlaw
– Generic law symbol
(Extend this list as needed by adding cases in the template.)
How it works
The template uses a simple switch
function in wikitext or Lua to map keywords (e.g., parliament
) to specific image files stored on Commons or Chalo Chatu’s file system.
See also
- {{Infobox legislation}}
- {{Infobox}}