Template:Meta title icon: Difference between revisions
Appearance
m Protected "Template:Meta title icon": High usage template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
m 1 revision imported |
||
(No difference)
|
Latest revision as of 14:15, 11 September 2024
Usage
This meta template is meant to be used exclusively in the creation of other templates (either alone or together with the usage of the {{Meta banner}} template). It should not be used directly in articles.
Parameters:
- name
- A name given to the icon. This name must be specific enough: there shouldn't be icons with the same name, otherwise only one of them would be displayed on pages whose code would include both.
- image
- The file name of an image to be used as the title icon (just the file name, not preceded with "File:")
- size
- The size of the image (default: 25px). The default size should be kept for icons meant to be displayed on article pages.
- link
- The target page to which the icon will link, typically a Vikidia help page explaining what the icon represents.
- text
- A short text that will be used instead of the image when the icon cannot be displayed (usual "alt" parameter on images) and displayed as tooltip otherwise.
Example
This code:
{{Template:Meta title icon|name=exampleicon|image=Face-tongue.svg|text=example of title icon|link=Help:Emoticons}}
...produces as a result the icon that you can see above, on the right of the page title.