Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Documentation/doc: Difference between revisions

From Mine in Abyss
minecraft>BoldLuis
No edit summary
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Module rating|release}}
{{documentation header}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Documentation here -->
{{Lua|Module:Documentation/config|Module:Documentation/i18n|Module:Arguments|Module:Message box|Module:Module wikitext|Module:TNT}}
This module implements {{tl|Documentation}}.
{{Uses TemplateStyles|Module:Documentation/styles.css}}
This [[module]] displays a blue box containing documentation for [[Special:MyLanguage/Help:templates|templates]], [[Special:MyLanguage/Lua scripting|Lua modules]], or other pages. The {{tlx|documentation}} template invokes it.


== Normal usage ==
== Dependencies ==
* [[Module:ProcessArgs]]
* [[Module:Static]]
* [[Module:TSLoader]]
* [[mw:extension:TemplateStyles]]: [[Module:Documentation/styles.css]]


For most uses, you should use the {{tlx|documentation}} template; please see that template's page for its usage instructions and parameters.
<includeonly>
 
<!-- Template categories/interwiki here-->
== Use in other modules ==
[[cs:Modul:Documentation]]
 
[[de:Modul:Dokumentation]]
To use this module from another Lua module, first load it with <code>require</code>:
[[es:Módulo:Documentation]]
 
[[fr:Module:Documentation]]
<syntaxhighlight lang="lua">
[[it:Modulo:Documentazione]]
local documentation = require('Module:Documentation').main
[[ja:モジュール:Documentation]]
</syntaxhighlight>
[[ko:모듈:Documentation]]
 
[[lzh:模組:Documentation]]
Then you can simply call it using a table of arguments.
[[nl:Module:Documentatie]]
<syntaxhighlight lang="lua">
[[pl:Moduł:Dokumentacja]]
documentation{content = 'Some documentation', ['link box'] = 'My custom link box'}
[[pt:Módulo:Documentation]]
</syntaxhighlight>
[[ru:Модуль:Документация]]
 
[[th:มอดูล:Documentation]]
Please refer to the [[Template:Documentation/doc|template documentation]] for usage instructions and a list of parameters.
[[uk:Модуль:Документація]]
 
[[zh:模块:Documentation]]
== Porting to other wikis ==
</includeonly>
 
<noinclude>
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.
<!-- Documentation categories/interwiki here-->
 
[[cs:Modul:Documentation/doc]]
<includeonly>{{Sandbox other||
[[de:Modul:Dokumentation/Dokumentation]]
<!-- Categories below this line; interwikis at Wikidata -->
[[es:Módulo:Documentation/doc]]
[[Category:Modules{{#translation:}}]]
[[fr:Module:Documentation/doc]]
}}</includeonly><noinclude>
[[it:Modulo:Documentazione/doc]]
[[Category:Module documentation pages{{#translation:}}]]
[[ja:モジュール:Documentation/doc]]
[[ko:모듈:Documentation/doc]]
[[lzh:模組:Documentation/doc]]
[[nl:Module:Documentatie/doc]]
[[pl:Moduł:Dokumentacja/opis]]
[[pt:Módulo:Documentation/doc]]
[[ru:Модуль:Документация/док]]
[[th:มอดูล:Documentation/doc]]
[[uk:Модуль:Документація/док]]
[[zh:模块:Documentation/doc]]
</noinclude>
</noinclude>

Latest revision as of 13:38, 11 October 2024

This is the documentation page. It is transcluded into Module:Documentation. See Template:Documentation for more information.

This module implements {{Documentation}}.

Dependencies


cs:Modul:Documentation/doc de:Modul:Dokumentation/Dokumentation es:Módulo:Documentation/doc fr:Module:Documentation/doc it:Modulo:Documentazione/doc ja:モジュール:Documentation/doc ko:모듈:Documentation/doc lzh:模組:Documentation/doc nl:Module:Documentatie/doc pl:Moduł:Dokumentacja/opis pt:Módulo:Documentation/doc ru:Модуль:Документация/док th:มอดูล:Documentation/doc uk:Модуль:Документація/док zh:模块:Documentation/doc