Module:Editnotice load/doc
Appearance
| This is a documentation subpage for Module:Editnotice load. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as alpha. It is ready for limited use and third-party feedback. It may be used on a small number of pages, but should be monitored closely. Suggestions for new features or adjustments to input and output are welcome. |
| This module depends on the following other modules: |
| Description | This module is an advanced editnotice loader. |
|---|---|
| Author(s) | User:Awesome Aasim |
| Code source | Editnotice load |
| Status | Alpha |
| Dependencies |
This module is an advanced editnotice loader. WIP
Features:
- Category editnotices
- Editnotices based on page ID
- Group notices by prefixes
Relevant pages:
- Template:Editnotice/notice
- MediaWiki:Noarticletext-nopermission
- MediaWiki:Protectedpagetext
- MediaWiki:Cascadeprotected
- Template:Editnotices/Group/Template:Editnotices
- MediaWiki:Titleblacklist-custom-editnotice
Documentation
Package items
Editnotice_load.page(frame)(function)- Gets the page the editnotice belongs to
- Parameter:
framethe calling frame (table) - Returns: the page by which the editnotice belongs (string)
Editnotice_load.getEditnotice(frame, noticeArgs, title, type)(function)- Gets any editnotice and its associated data
- Parameters:
- Returns: a table with the editnotice name and contents (table)
Editnotice_load.showEditnotice(builder, links, editnoticeData, editnoticeName, editnoticeClass)(function)- Shows any editnotice
- Parameters:
Editnotice_load.protectionEditnotice(frame)(function)- Generates only the contents for protection editnotices
- Parameter:
framethe preprocessing frame (table) - Returns: builder the editnotice contents (string)
Editnotice_load.editnotice(frame)(function)- Gets the editnotice type
- Parameter:
framethe preprocessing frame (table) - Returns: type the string corresponding to the type (string)
Editnotice_load.main(frame)(function)- The main entry point for the editnotice loader
- Parameter:
framethe preprocessing frame (table) - Returns: output the output of the module (string)
Other items
getEditnoticeType(title)(function)- Gets the editnotice type of any editnotice
- Parameter:
titlea title object for the editnotice (table) - Returns: the editnotice type (string)
getEditnoticeMainPage(currPage, editnoticeType)(function)- Gets the page that the editnotice is stored
- Parameters:
- Returns: the page which has the editnotice (string)