Munurin millum rættingarnar hjá "Module:Icon/data/doc"

36 bytes løgd afturat ,  7 mánaðir síðan
s
Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
(Stovnaði síðu við "Hetta modulið goymir dáta fyri Module:Icon. == Adding icons == To add a new icon, add a table in the following format: <source lang="lua"> code = { image = "My...")
 
s (Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html])
 
To add a new icon, add a table in the following format:
 
<sourcesyntaxhighlight lang="lua">
code = {
image = "My image name.xyz",
tooltip = "My tooltip text",
},
</syntaxhighlight>
</source>
 
If you want to add aliases for the code, use the following format instead:
<sourcesyntaxhighlight lang="lua">
code = {
aliases = {"alias1", "alias2"},
tooltip = "My tooltip text",
},
</syntaxhighlight>
</source>
 
If any of the text you add has double quotes in, you will need to escape it with backslashes like this: {{code|"My \"quoted\" image.svg"|lua}}.
14.816

rættingar