Difference between revisions of "Module:Excerpt/doc"
Jump to navigation
Jump to search
blackwiki>Pppery |
blackwiki>Pppery |
||
| Line 1: | Line 1: | ||
{{Module rating|beta}} | {{Module rating|beta}} | ||
{{high-use|6644}} | {{high-use|6644}} | ||
| − | {{Uses Lua|Module:Transcluder|Module:Yesno|Module:Excerpt/config}} | + | {{Uses Lua|Module:Transcluder|Module:Yesno|Module:Excerpt/config|Module:TNT|Module:Hatnote}} |
This module can transclude any part of any page. | This module can transclude any part of any page. | ||
Revision as of 15:10, 29 August 2020
| 40x40px | This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
| 40px | This Lua module is used on approximately 6,600 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
This module can transclude any part of any page.
Contents
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
Portals
- Module:Excerpt/portals / sandbox — Previous version of this module, still used by:
- {{Transclude lead excerpt}} / sandbox / testcases
- {{Transclude linked excerpt}} / sandbox / testcases
- {{Transclude list item excerpt}} / sandbox / testcases
- {{Transclude random excerpt}} / sandbox / testcases
- {{Transclude selected excerpt}} / sandbox / testcases
- Module:Excerpt slideshow / sandbox — Uses Module:Excerpt/portals and is used by:
- Module:Random slideshow / sandbox — Uses Module:Excerpt/portals and is used by:
- {{Random slideshow}} / sandbox / testcases
- {{Transclude files as random slideshow}} / sandbox / testcases