މޮޑިއުލް:Documentation/doc: Difference between revisions

Content deleted Content added
No edit summary
m Bot: Replace deprecated <source> tag and "enclose" parameter; cosmetic changes
ފޮޅުވަތް 10:
To use this module from another Lua module, first load it with <code>require</code>:
 
<sourcesyntaxhighlight lang="lua">
local documentation = require('Module:Documentation').main
</syntaxhighlight>
</source>
 
Then you can simply call it using a table of arguments.
<sourcesyntaxhighlight lang="lua">
documentation{content = 'Some documentation', ['link box'] = 'My custom link box'}
</syntaxhighlight>
</source>
 
Please refer to the [[Templateފަންވަތް:Documentation/doc|template documentation]] for usage instructions and a list of parameters.
 
== Porting to other wikis ==
 
The module has a configuration file at [[Moduleމޮޑިއުލް:Documentation/config]] which is intended to allow easy translation and porting to other wikis. Please see the code comments in the config page for instructions. If you have any questions, or you need a feature which is not currently implemented, please leave a message at [[Templateފަންވަތުގެ talkޚިޔާލު:Documentation]] to get the attention of a developer.