Module:Excerpt/doc
Appearance
![]() | This is a documentation subpage for Module:Excerpt. It may contain usage information, categories and other content that is not part of the original module page. |
![]() | This Lua module is used on approximately 13,000 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
![]() | This module depends on the following other modules: |
This module can transclude any part of any page.
Usage
Templates
This module has only one entry point for templates:
{{#invoke:Excerpt|main}}
— Wraps the get() entry point, see its documentation for details
The main entry point gives access to most if not all the functionality of the module and should suffice for most simple templates, but in more sophisticated cases, it my become necessary to create a custom submodule like Module:Excerpt/templates to implement the template.
Modules
get(page, options)
— Main entry point for modules
Developers
Before saving any change to this module, please preview with:
- Module:Excerpt/testcases
- Template:Excerpt/testcases
- Template:Transclude lead excerpt/testcases
- Template:Transclude linked excerpt/testcases
- Template:Transclude list item excerpt/testcases
- Template:Transclude random excerpt/testcases
- Template:Transclude selected excerpt/testcases
See also