Difference between revisions of "Module:Excerpt/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Sophivorus
(Start updating the documentation, still a long way to go)
blackwiki>Sophivorus
(→‎Developers: Remove link to /testcases2)
Line 26: Line 26:
 
* [[Template:Excerpt/testcases]]
 
* [[Template:Excerpt/testcases]]
 
* [[Template:Transclude lead excerpt/testcases]]
 
* [[Template:Transclude lead excerpt/testcases]]
* [[Template:Transclude lead excerpt/testcases2]]
 
 
* [[Template:Transclude linked excerpt/testcases]]
 
* [[Template:Transclude linked excerpt/testcases]]
 
* [[Template:Transclude list item excerpt/testcases]]
 
* [[Template:Transclude list item excerpt/testcases]]

Revision as of 14:40, 1 June 2020

Template:Uses Lua

This module aims to be a transclusion engine, whereby other modules and templates may 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:

See also