Mòideal:Icon/data/doc
This is the documentation page for Mòideal:Icon/data
Related pages |
---|
(deasbaireachd⧼tpt-languages-separator⧽ ⧼tpt-languages-separator⧽eachdraidh⧼tpt-languages-separator⧽ceanglaichean⧼tpt-languages-separator⧽doc⧼tpt-languages-separator⧽bogsa-gainmhich⧼tpt-languages-separator⧽cùisean deuchainn)
This module is currently protected from editing. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected. |
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
This page is not a sandbox. It should not be used for test editing. To experiment, please use the Wikipedia sandbox, your user sandbox, or the other sandboxes. |
This module stores icon data for Mòideal:Icon.
A' cuir ris ìomhaigheagan - Adding icons
To add a new icon, add a table in the following format:
code = {
image = "My image name.xyz",
tooltip = "My tooltip text",
},
If you want to add aliases for the code, use the following format instead:
code = {
aliases = {"alias1", "alias2"},
image = "My image name.xyz",
tooltip = "My tooltip text",
},
If any of the text you add has double quotes in, you will need to escape it with backslashes like this:
.
"My \"quoted\" image.svg"
Please make sure that any codes and aliases that you add don't match any existing codes or aliases. If they do, one of them will be overwritten with the other (and it's not possible to say for certain which will be overwritten with which).
You can omit the tooltip text if you want, but it is recommended that you add it.
A' sguab às ìomhaigheagan - Removing icons
Removing icons is fairly easy. Just remove the relevant entry from the data table. You can't remove the _DEFAULT entry, as Mòideal:Icon relies on it being there.