Template:Icon

From New wiki
Jump to navigation Jump to search

[[File:{{{1}}}|16px|link=|class=noviewer|text-bottom]]

Documentation

This template displays a standalone, scalable inline icon. It is designed to sit cleanly within a line of text or a data table. You must include the full file name with its extension (e.g., .svg, .png).

Usage

Standard Usage Provide the exact file name including the extension, but do not include the "File:" prefix.

  • Code: {{Icon|belgium-flag.svg}}
  • Behavior: Renders File:belgium-flag.svg at 16px.

Corporate or Project Icons (Any Format)

  • Code: {{Icon|axa-brain-logo.png}}
  • Behavior: Renders File:axa-brain-logo.png at 16px.

Custom Size Override If an icon needs to be larger for a specific heading, use the size= parameter.

  • Code: {{Icon|legal-structure-icon.svg|size=24px}}
  • Behavior: Renders the icon at 24px instead of the default 16px.

Parameters

  • 1 (Required): The full name of the file to be displayed, including the extension (e.g., .svg, .png, .jpg).
  • size (Optional): Overrides the default 16px dimension (e.g., 12px, 20px).