Module:Special page interlanguage links/doc
This is a documentation subpage for Module:Special page interlanguage links. It contains usage information, categories and other content that is not part of the original Module page. |
Warning: | This page is shared between multiple wikis. All changes to this page will be automatically copied to all wikis listed in the left side bar. To avoid unnecessary page regeneration and server load, changes should be tested on the page's sandbox. |
Module Quality
editModule:Special page interlanguage links | success: 1, error: 0, skipped: 0 |
Module:Special page interlanguage links/sandbox | success: 1, error: 0, skipped: 0 |
Documentation
editThis module allows displaying interlanguage links to all existing languages on special pages. It’s a custom to show such interlanguage links on Special:RecentChanges, but it can be used on any other special page as well that exists on all wikis of that project.
Functions
editp.main(frame)
edit
Main entry point from wikitext. The first unnamed parameter should contain the canonical (English) special page name, for example
{{#invoke:Special page interlanguage links|main|RecentChanges}}
p._main(specialPageName)
edit
Main entry point from other modules. The first argument should contain the canonical (English) special page name, for example
local interlanguageLinks = p._main('RecentChanges')