Template:Symbol/doc
Appearance
This is a documentation subpage for Template:Symbol. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This template is for inserting a very small image in line, used as an icon. The main advantage over using a [[File: ...]] tag directly, is the automatic setting of the noviewer class.
Syntax
[edit]{{symbol|filename|width|description|link=}}
Parameters
[edit]- File name without "File:" (required)
- Width in pixels, default 20
- Description, appears on mouse over and is also used as alternative text
link
(to be filled in with "no"), to make the symbol not clickable
Example
[edit]Template data
[edit]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Symbol in articles based on its TemplateData.
TemplateData for Symbol
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
File title | 1 | The title of the file without the prefix "File:", "Image:" or ... | String | required |
Symbol size | 2 | Width in pixels of the symbol (without '' px ''). Default is 20. Example: 30. | Number | optional |
Description of the symbol | 3 | Description of the symbol, which will appear when you move the mouse over the image. | String | optional |
Flag to deactivate the link | link | Fill in with "no" to disable the image link. | String | optional |
See also
[edit]- Template:Flag icon
- Template:Infobox symbol
- Template:Val – values in scientific notation
- Template:Sym – switch for commonly used symbols