Modiwl:Icon/doc: Gwahaniaeth rhwng fersiynau

Cynnwys wedi'i ddileu Cynnwys wedi'i ychwanegu
Crëwyd tudalen newydd yn dechrau gyda 'This module displays an icon depending on the code it is given. It implements Template:Icon. == Usage == === From wikitext === From wikitext this mo...'
 
Xqbot (sgwrs | cyfraniadau)
B Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
 
Llinell 10:
To use this module from another Lua module, first load it:
 
<sourcesyntaxhighlight lang="lua">
local mIcon = require('Module:Icon')
</syntaxhighlight>
</source>
 
Then you can make icons with the _main function.
 
<sourcesyntaxhighlight lang="lua">
mIcon._main(args)
</syntaxhighlight>
</source>
 
The <var>args</var> variable is a table of arguments. This corresponds to the parameters accepted by [[Template:Icon]] - please see the template page for parameter documentation.